From mboxrd@z Thu Jan 1 00:00:00 1970 From: David F Barrera Subject: Re: RE: new /etc/xen/network script Date: Tue, 16 Aug 2005 11:41:37 -0500 Message-ID: <1124210498.4598.7.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: Ian Pratt , xen-devel@lists.xensource.com, "Zhai, Edwin" List-Id: xen-devel@lists.xenproject.org I, too, am having network related issues. I am now seeing this problem on a FC3 box, which previously had worked just fine. The networking is working fine before I enter 'xend start'. No changes are made to the network-bridge script that comes with the source, and the machine has only only nic, eth0. ifconfig before 'xend start': [root@dbarrera ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0D:60:F0:C5:C8 inet addr:9.53.94.235 Bcast:9.53.94.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:99 errors:0 dropped:0 overruns:0 frame:0 TX packets:88 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12299 (12.0 KiB) TX bytes:11426 (11.1 KiB) Base address:0x2000 Memory:e8100000-e8120000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2216 (2.1 KiB) TX bytes:2216 (2.1 KiB) [root@dbarrera ~]# brctl show bridge name bridge id STP enabled interfaces [root@dbarrera ~]# when 'xend start' is entered, these messages appear on console: store_evtchn =3D 16 XENBUS xs_read_watch: 0 ifconfig AFTER 'xend start'eth0 Link encap:Ethernet HWaddr 00:0D:60= :F0:C5:C8 inet addr:9.53.94.235 Bcast:9.53.94.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:380 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:28046 (27.3 KiB) TX bytes:426 (426.0 b) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2216 (2.1 KiB) TX bytes:2216 (2.1 KiB) peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:9.53.94.235 Bcast:9.53.94.255 Mask:255.255.255.0 UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:501 errors:0 dropped:0 overruns:0 frame:0 TX packets:111 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:44601 (43.5 KiB) TX bytes:12036 (11.7 KiB) Base address:0x2000 Memory:e8100000-e8120000 vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:380 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:426 (426.0 b) TX bytes:28046 (27.3 KiB) xen-br0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:375 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:22208 (21.6 KiB) TX bytes:0 (0.0 b) [root@dbarrera ~]# brctl show bridge name bridge id STP enabled interfaces xen-br0 8000.feffffffffff no peth0 vif0.0 xen-br0 is up, but networking is dead. This is different from the previou= s issues where xen-br0 was not coming up, but when started manually networking resumed. On 2 other machines, networking is up and working, Dom0 has networking ru= nning correctly, but when I start a domU, it does not=20 have networking. I have 3 similar machines, only one of which has a domU = with working network; the other two don't, even though they have very similar setups. This *may* end up being a setup issue (alt= hough these same setups worked before), but I can't figure out what that = could be--everything looks like it is supposed to be.=20 > So, ifdown does succeed in taking the interface down. I wander why the = routes aren't getting removed? >=20 > Could you do: > ifconfig > netstat -rn > ifdown eth0 > netstat -rn > ifconfig >=20 > Thanks, > Ian > =20 >=20 > > -----Original Message----- > > From: Zhai, Edwin [mailto:edwin.zhai@intel.com]=20 > > Sent: 16 August 2005 16:57 > > To: Ian Pratt > > Cc: xen-devel@lists.xensource.com; ian.pratt@cl.cam.ac.uk > > Subject: RE: new /etc/xen/network script > >=20 > >=20 > > ***Before*** > > [root@vt-edwin ~]# ifconfig =20 > > =20 > > eth0 Link encap:Ethernet HWaddr 00:0C:F1:FE:4C:5B =20 > > =20 > > inet addr:172.16.219.31 Bcast:172.16.219.255 =20 > > Mask:255.255.255.0 =20 > > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 =20 > > =20 > > RX packets:127 errors:0 dropped:0 overruns:0=20 > > frame:0 =20 > > TX packets:65 errors:0 dropped:0 overruns:0=20 > > carrier:0 =20 > > collisions:0 txqueuelen:1000 =20 > > =20 > > RX bytes:18387 (17.9 KiB) TX bytes:6072 (5.9 KiB) =20 > > =20 > > =20 > > =20 > > lo Link encap:Local Loopback =20 > > =20 > > inet addr:127.0.0.1 Mask:255.0.0.0 =20 > > =20 > > UP LOOPBACK RUNNING MTU:16436 Metric:1 =20 > > =20 > > RX packets:16 errors:0 dropped:0 overruns:0 frame:0=20 > > =20 > > TX packets:16 errors:0 dropped:0 overruns:0=20 > > carrier:0 =20 > > collisions:0 txqueuelen:0 =20 > > =20 > > RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB)=20 > >=20 > > ***After ifdown eth0 *** > > [root@vt-edwin ~]# ifconfig =20 > > =20 > > lo Link encap:Local Loopback =20 > > =20 > > inet addr:127.0.0.1 Mask:255.0.0.0 =20 > > =20 > > UP LOOPBACK RUNNING MTU:16436 Metric:1 =20 > > =20 > > RX packets:16 errors:0 dropped:0 overruns:0 frame:0=20 > > =20 > > TX packets:16 errors:0 dropped:0 overruns:0=20 > > carrier:0 =20 > > collisions:0 txqueuelen:0 =20 > > =20 > > RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB) =20 > > =20 > >=20 > > but > > [root@vt-edwin ~]# ifconfig -a > > eth0 Link encap:Ethernet HWaddr 00:0C:F1:FE:4C:5B =20 > > inet addr:172.16.219.31 Bcast:172.16.219.255 =20 > > Mask:255.255.255.0 > > BROADCAST MULTICAST MTU:1500 Metric:1 > > RX packets:182 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:66 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:1000=20 > > RX bytes:25284 (24.6 KiB) TX bytes:6196 (6.0 KiB) > >=20 > > lo Link encap:Local Loopback =20 > > inet addr:127.0.0.1 Mask:255.0.0.0 > > UP LOOPBACK RUNNING MTU:16436 Metric:1 > > RX packets:16 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0=20 > > RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB) > >=20 > > veth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 =20 > > BROADCAST MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0=20 > > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > >=20 > > vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF =20 > > BROADCAST MULTICAST MTU:1500 Metric:1 > > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > > collisions:0 txqueuelen:0=20 > > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > >=20 > > Ian Pratt scribbled on=20 > > 2005=E5=B9=B48=E6=9C=8816=E6=97=A5 23:41: > >=20 > > >> ian, > > >> as the discussion in this thread, service os netwok will=20 > > break after=20 > > >> xend start. > > >> this simple patch can work on my mahine. > > >> but strange error still occur in xend.log and xend start=20 > > takes more=20 > > >> time with ifdown/ifup. > > >=20 > > > I guess the patch can't do any harm, but why doesn't ifdown=20 > > remove the=20 > > > routes? > > >=20 > > > Before starting xend, please can you post the output of the=20 > > following > > > sequence: > > >=20 > > > ifconfig > > > ifdown eth0 > > > ifconfig > > >=20 > > > Thanks, > > > Ian > > >=20 > > >=20 > > >> @@ -192,6 +192,7 @@ > > >> ifconfig p${netdev} -arp down > > >> ifconfig p${netdev} hw ether fe:ff:ff:ff:ff:ff > > >> ifconfig ${netdev} hw ether ${mac} > > >> + del_addrs p${netdev} > > >> add_to_bridge ${bridge} vif0.0 > > >> add_to_bridge ${bridge} p${netdev} > > >> ip link set vif0.0 up > > >>=20 > > >>=20 > > >> --------------xend.log------------------------ > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> set -e > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> OP=3Dstart > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> shift > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> for arg in '"$@"' > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> export bridge=3Dxen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> bridge=3Dxen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> for arg in '"$@"' > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> export antispoof=3Dno > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> antispoof=3Dno > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> bridge=3Dxen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> netdev=3Deth0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> antispoof=3Dno > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> echo '*network start bridge=3Dxen-br0 netdev=3Deth0 antispoof=3Dno= ' > > >> [2005-08-16 23:14:19 xend] INFO (__init__:988) [network-bridge]=20 > > >> network start bridge=3Dxen-br0 netdev=3Deth0 antispoof=3Dno [2005-= 08-16=20 > > >> 23:14:19 xend] ERROR (__init__:988) [network-bridge] +=20 > > case ${OP} in > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> op_start > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> '[' xen-br0 =3D=3D null ']' [2005-08-16 23:14:19 xend] ERROR > > >> (__init__:988) [network-bridge] + create_bridge xen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> local bridge=3Dxen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> brctl show > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> grep -q xen-br0 > > >> [2005-08-16 23:14:19 xend] INFO (__init__:988) EVENT> xend.start 0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> brctl addbr xen-br0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> brctl stp xen-br0 off > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> brctl setfd xen-br0 0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig xen-br0 up > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> grep -q veth0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig veth0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> grep -q veth0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988)=20 > > [network-bridge] ++=20 > > >> ifconfig eth0 > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988)=20 > > [network-bridge] ++=20 > > >> grep HWadd > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988)=20 > > [network-bridge] ++=20 > > >> sed -e 's/.*\(..:..:..:..:..:..\).*/\1/' > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> mac=3D00:0C:F1:FE:4C:5B > > >> [2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifdown eth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988)=20 > > [network-bridge] + ip=20 > > >> link set eth0 name peth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988)=20 > > [network-bridge] + ip=20 > > >> link set veth0 name eth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig peth0 -arp down > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig peth0 hw ether fe:ff:ff:ff:ff:ff > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> ifconfig eth0 hw ether 00:0C:F1:FE:4C:5B > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> del_addrs peth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> local src=3Dpeth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988)=20 > > [network-bridge] + ip=20 > > >> addr show dev peth0 > > >> [2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] += =20 > > >> egrep '^ *inet ' > > >>=20 > > >> Best Rgds > > >> Edwin > >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel --=20 Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides