|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] SuSE 9.3 domU /sbin/ifup workaround
Hi all
I have a SuSE 9.3 domU. It has a eth0 interface, corresponding
to some vif interface in the dom0. Running
ifup eth0
doesn't seem to work. This means I don't get any network.
It seems that /sbin/ifup relies upon /sbin/getcfg but getcfg
does not seem to find the right configuration for the eth0 device.
A attached a patch below with a work around for this. It's
only a work around, because it patches ifup, but I think the
real problem might be with getcfg.
If you want to try this patch, I suggest keeping the original
file around, like so
mv /sbin/ifup /sbin/ifup.orig
cp /sbin/ifup.orig /sbin/ifup
cat patch-ifup | patch /sbin/ifup
hope that helps someone.
--- /sbin/ifup.orig 2005-03-21 16:03:50.000000000 +0000
+++ /sbin/ifup 2005-06-13 14:34:29.000000000 +0000
@@ -127,6 +127,17 @@
INTERFACE=$HWD_INTERFACE_0
case $SCRIPTNAME in
ifup)
+ # XXX HACK STARTS
+ case $INTERFACE in
+ eth[0-9])
+ if [ -z "$HWD_CONFIG_0" \
+ -a -e
/sys/class/net/${INTERFACE}/address ] ; then
+ HWD_CONFIG_0="eth-id-$(cat
/sys/class/net/${INTERFACE}/address)"
+ fi
+ ;;
+ *) ;;
+ esac
+ # XXX HACK ENDS
if [ -z "$CONFIG" -a "$DHCP" = yes ] ; then
# This time we were called from dhcpcd just to finish
setup (hooks,
# routes) and thus must use for sure the same config as
in the first
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] SuSE 9.3 domU /sbin/ifup workaround,
Robbie Dinn <=
|
|
|
|
|