From: Bill Nottingham <notting@redhat.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] network-script: use default network device
Date: Tue, 31 Jan 2006 12:32:25 -0500 [thread overview]
Message-ID: <20060131173225.GA2766@devserv.devel.redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
(Warning: I'm not subscribed, please CC me on replies...)
Rather than require config changes if you aren't using eth0, use the
default network device available no matter the name. It can still
be configured if you want a specific network device.
Bill
[-- Attachment #2: xen-default-network.patch --]
[-- Type: text/plain, Size: 1703 bytes --]
diff -ru xen-3.0.0/tools/examples/network-bridge xen-3.0.0-new/tools/examples/network-bridge
--- xen-3.0.0/tools/examples/network-bridge 2006-01-25 15:30:13.000000000 -0500
+++ xen-3.0.0-new/tools/examples/network-bridge 2006-01-31 12:20:25.000000000 -0500
@@ -61,6 +61,7 @@
vifnum=${vifnum:-0}
bridge=${bridge:-xenbr${vifnum}}
+netdev=${netdev:-$(ip route list default scope global| awk '{ print $NF }')}
netdev=${netdev:-eth${vifnum}}
antispoof=${antispoof:-no}
diff -ru xen-3.0.0/tools/examples/xend-config.sxp xen-3.0.0-new/tools/examples/xend-config.sxp
--- xen-3.0.0/tools/examples/xend-config.sxp 2006-01-31 12:23:38.000000000 -0500
+++ xen-3.0.0-new/tools/examples/xend-config.sxp 2006-01-31 12:24:44.000000000 -0500
@@ -70,8 +70,8 @@
#
# (network-script network-bridge)
#
-# Your eth0 is used as the outgoing interface, by default. To use a different
-# one (e.g. eth1) use
+# Your default ethernet device is used as the outgoing interface, by default.
+# To use a different one (e.g. eth1) use
#
# (network-script 'network-bridge netdev=eth1')
#
diff -ru xen-3.0.0/tools/examples/xend-config.sxp.mem-min xen-3.0.0-new/tools/examples/xend-config.sxp.mem-min
--- xen-3.0.0/tools/examples/xend-config.sxp.mem-min 2006-01-06 17:42:59.000000000 -0500
+++ xen-3.0.0-new/tools/examples/xend-config.sxp.mem-min 2006-01-31 12:25:13.000000000 -0500
@@ -70,8 +70,8 @@
#
# (network-script network-bridge)
#
-# Your eth0 is used as the outgoing interface, by default. To use a different
-# one (e.g. eth1) use
+# Your default ethernet device is used as the outgoing interface, by default.
+# To use a different one (e.g. eth1) use
#
# (network-script 'network-bridge netdev=eth1')
#
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2006-01-31 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 17:32 Bill Nottingham [this message]
2006-02-10 1:12 ` [PATCH] network-script: use default network device Ewan Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060131173225.GA2766@devserv.devel.redhat.com \
--to=notting@redhat.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.