Hallo,
I have running xen-4.2/linux-3.8 (compiled) on any hosts.
- dell pe r720: drac, eth0-3:igb squeeze -> boot_xen:ok net:ok bridge:ok
- dell pe R620: drac=eth0, eth1-3:tg3 wheezy -> boot_xen:ok net:ok
bridge:fail
So i running "xend start" (or "xenbridges start")
on my patient (R620 with broadcom tg3)
network will be lost:
RTNETLINK answers: File exists
Failed to bring up eth1.
It seen to be a problem near scripts/network-bridge:do_ifup()
workaround seen to be: simple add "ifconfig $1 up"
Whats going wrong?
Which direction should I look now? (my(config), tg3, wheezy, ...)
details below.
Regards Torsten
# egrep -v "#|^$" /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 194.95.57.54
netmask 255.255.255.224
gateway 194.95.57.33
- testbed:
shutdown -r -y +3 &
export LANG=C
num=1; dev=eth1
gw=194.95.57.33
log=/var/tmp/diag.xen_net.log
sleep=15
(echo start; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
/etc/init.d/xenbridges start $num;
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
sleep $sleep;date; echo test1 ifdown; ifdown $dev ; sleep 3; ifup $dev;
echo "enum=$?"
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
sleep $sleep;date; echo test2 ifdown; ifdown $dev ; sleep 3; ifup $dev;
echo "enum=$?"
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
sleep $sleep;date; echo test3 ifconfig up; ifconfig $dev up
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
sleep $sleep;date; echo test4 ifdown; ifdown $dev ; sleep 3; ifup $dev;
echo "enum=$?"
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
sleep $sleep;date; echo test5 ifconfig,route; ifconfig $dev up; route add
default gw $gw;
brctl show; ifconfig $dev | grep MTU; netstat -rn; ping -c 3 -q $gw |
grep loss
)>> $log 2>&1
shutdown -c
- result:
# more $log
start
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
0.0.0.0 194.95.57.33 0.0.0.0 UG 0 0 0 eth1
194.95.57.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
start bridge=eth1
Waiting for peth1 to negotiate link...........(link isnt in running state)
Failed to bring up eth1.
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
BROADCAST MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
connect: Network is unreachable
Sat Jun 8 19:21:09 CEST 2013
test1 ifdown
ifdown: interface eth1 not configured
RTNETLINK answers: File exists
Failed to bring up eth1.
enum=0
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
BROADCAST MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
connect: Network is unreachable
Sat Jun 8 19:21:27 CEST 2013
test2 ifdown
ifdown: interface eth1 not configured
RTNETLINK answers: File exists
Failed to bring up eth1.
enum=0
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
BROADCAST MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
connect: Network is unreachable
Sat Jun 8 19:21:45 CEST 2013
test3 ifconfig up
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
194.95.57.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
Sat Jun 8 19:22:02 CEST 2013
test4 ifdown
ifdown: interface eth1 not configured
RTNETLINK answers: File exists
Failed to bring up eth1.
enum=0
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
194.95.57.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
Sat Jun 8 19:22:22 CEST 2013
test5 ifconfig,route
bridge name bridge id STP enabled interfaces
eth1 8000.90b11c208db6 no peth1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
0.0.0.0 194.95.57.33 0.0.0.0 UG 0 0 0 eth1
194.95.57.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
# more /var/tmp/network-bridge.log
...
+ for i in ''`seq ${maxtries}`''
+ ifconfig peth1
+ grep -q RUNNING
+ echo -n .
+ sleep 1
+ ''['' 10 -eq 10 '']''
+ echo -n ''(link isnt in running state)''
+ echo
+ add_to_bridge eth1 peth1
+ local bridge=eth1
+ local dev=peth1
+ ''['' -e /sys/class/net/eth1/brif/peth1 '']''
+ brctl addif eth1 peth1
+ ip link set peth1 up
+ do_ifup eth1
+ ''['' eth1 ''!='' eth1 '']''
+ ifup eth1
RTNETLINK answers: File exists
+ ''['' no = yes '']''
+ release_lock network-bridge
+ _setlockfd network-bridge
...
- summary
- start: eth1 up
- test1: eth1 down
- test3: eth1 up (<1sec)
- following test brought no changes:> local maxtries=20
> sleep 10