From: Nivedita Singhvi <nsnix@comcast.net>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: Ian Pratt <Ian.Pratt@cl.cam.ac.uk>,
xen-devel@lists.xensource.com, "Zhai,
Edwin" <edwin.zhai@intel.com>
Subject: Re: RE: new /etc/xen/network script
Date: Wed, 17 Aug 2005 03:02:20 -0700 [thread overview]
Message-ID: <43030B2C.5020408@comcast.net> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D282B7D@liverpoolst.ad.cl.cam.ac.uk>
Ian Pratt wrote:
> So, ifdown does succeed in taking the interface down. I wander why the routes aren't getting removed?
Are we sure that's the case? I think what is happening is
that the routes are going down, but to bring up peth0
again, we only do a ip link set peth0 up, which creates
an interface route, but does not automatically generate
a default route (since we aren't transferring routes
in this case).
The netstat -rn should confirm that.
> Could you do:
> ifconfig
> netstat -rn
> ifdown eth0
> netstat -rn
> ifconfig
>
> Thanks,
> Ian
I am scratching my head on how the del_addr should
make a difference here, since the ifdown should have
taken down the routes..
There are several ways to clean up, if the above
is correct.
thanks,
Nivedita
>
>
>>-----Original Message-----
>>From: Zhai, Edwin [mailto:edwin.zhai@intel.com]
>>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
>>
>>
>>***Before***
>>[root@vt-edwin ~]# ifconfig
>>
>>eth0 Link encap:Ethernet HWaddr 00:0C:F1:FE:4C:5B
>>
>> inet addr:172.16.219.31 Bcast:172.16.219.255
>>Mask:255.255.255.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>>
>> RX packets:127 errors:0 dropped:0 overruns:0
>>frame:0
>> TX packets:65 errors:0 dropped:0 overruns:0
>>carrier:0
>> collisions:0 txqueuelen:1000
>>
>> RX bytes:18387 (17.9 KiB) TX bytes:6072 (5.9 KiB)
>>
>>
>>
>>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:16 errors:0 dropped:0 overruns:0 frame:0
>>
>> TX packets:16 errors:0 dropped:0 overruns:0
>>carrier:0
>> collisions:0 txqueuelen:0
>>
>> RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB)
>>
>>***After ifdown eth0 ***
>>[root@vt-edwin ~]# ifconfig
>>
>>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:16 errors:0 dropped:0 overruns:0 frame:0
>>
>> TX packets:16 errors:0 dropped:0 overruns:0
>>carrier:0
>> collisions:0 txqueuelen:0
>>
>> RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB)
>>
>>
>>but
>>[root@vt-edwin ~]# ifconfig -a
>>eth0 Link encap:Ethernet HWaddr 00:0C:F1:FE:4C:5B
>> inet addr:172.16.219.31 Bcast:172.16.219.255
>>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
>> RX bytes:25284 (24.6 KiB) TX bytes:6196 (6.0 KiB)
>>
>>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:16 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:1168 (1.1 KiB) TX bytes:1168 (1.1 KiB)
>>
>>veth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
>> 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
>> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>>
>>vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
>> 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
>> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>>
>>Ian Pratt <mailto:m+Ian.Pratt@cl.cam.ac.uk> scribbled on
>>2005年8月16日 23:41:
>>
>>
>>>>ian,
>>>>as the discussion in this thread, service os netwok will
>>
>>break after
>>
>>>>xend start.
>>>>this simple patch can work on my mahine.
>>>>but strange error still occur in xend.log and xend start
>>
>>takes more
>>
>>>>time with ifdown/ifup.
>>>
>>>I guess the patch can't do any harm, but why doesn't ifdown
>>
>>remove the
>>
>>>routes?
>>>
>>>Before starting xend, please can you post the output of the
>>
>>following
>>
>>>sequence:
>>>
>>> ifconfig
>>> ifdown eth0
>>> ifconfig
>>>
>>>Thanks,
>>>Ian
>>>
>>>
>>>
>>>>@@ -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
>>>>
>>>>
>>>>--------------xend.log------------------------
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>set -e
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>OP=start
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>shift
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>for arg in '"$@"'
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>export bridge=xen-br0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>bridge=xen-br0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>for arg in '"$@"'
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>export antispoof=no
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>antispoof=no
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>bridge=xen-br0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>netdev=eth0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>antispoof=no
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>echo '*network start bridge=xen-br0 netdev=eth0 antispoof=no'
>>>>[2005-08-16 23:14:19 xend] INFO (__init__:988) [network-bridge]
>>>>network start bridge=xen-br0 netdev=eth0 antispoof=no [2005-08-16
>>>>23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>
>>case ${OP} in
>>
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>op_start
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>'[' xen-br0 == 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] +
>>>>local bridge=xen-br0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>brctl show
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>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] +
>>>>brctl addbr xen-br0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>brctl stp xen-br0 off
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>brctl setfd xen-br0 0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig xen-br0 up
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>grep -q veth0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig veth0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>grep -q veth0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988)
>>
>>[network-bridge] ++
>>
>>>>ifconfig eth0
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988)
>>
>>[network-bridge] ++
>>
>>>>grep HWadd
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988)
>>
>>[network-bridge] ++
>>
>>>>sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>mac=00:0C:F1:FE:4C:5B
>>>>[2005-08-16 23:14:19 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifdown eth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988)
>>
>>[network-bridge] + ip
>>
>>>>link set eth0 name peth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988)
>>
>>[network-bridge] + ip
>>
>>>>link set veth0 name eth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig peth0 -arp down
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig peth0 hw ether fe:ff:ff:ff:ff:ff
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>ifconfig eth0 hw ether 00:0C:F1:FE:4C:5B
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>del_addrs peth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>local src=peth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988)
>>
>>[network-bridge] + ip
>>
>>>>addr show dev peth0
>>>>[2005-08-16 23:14:20 xend] ERROR (__init__:988) [network-bridge] +
>>>>egrep '^ *inet '
>>>>
>>>>Best Rgds
>>>>Edwin
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Xen-devel mailing list
>>Xen-devel@lists.xensource.com
>>http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2005-08-17 10:02 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-16 16:27 new /etc/xen/network script Ian Pratt
2005-08-16 16:41 ` David F Barrera
2005-08-17 10:02 ` Nivedita Singhvi [this message]
2005-08-17 11:21 ` Nivedita Singhvi
2005-08-17 11:34 ` Nivedita Singhvi
-- strict thread matches above, loose matches on Subject: below --
2005-08-16 16:51 Ian Pratt
2005-08-16 18:53 ` David F Barrera
2005-08-17 11:32 Ian Pratt
2005-08-17 11:43 ` Nivedita Singhvi
2005-08-17 11:44 Ian Pratt
2005-08-17 12:12 ` Nivedita Singhvi
2005-08-17 12:19 Zhai, Edwin
2005-08-17 12:34 ` Nivedita Singhvi
2005-08-17 12:34 Ian Pratt
2005-08-17 12:37 ` Nivedita Singhvi
2005-08-17 16:31 ` David F Barrera
2005-08-17 12:47 Zhai, Edwin
2005-08-17 13:30 Zhai, Edwin
2005-08-17 16:34 Ian Pratt
2005-08-17 18:17 ` David F Barrera
2005-10-14 17:16 Stephan Böni
2005-10-14 17:55 ` David F Barrera
2005-10-14 18:22 Stephan Böni
2005-10-14 18:29 Stephan Böni
2005-10-14 18:53 Stephan Böni
2005-10-14 23:23 ` 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=43030B2C.5020408@comcast.net \
--to=nsnix@comcast.net \
--cc=Ian.Pratt@cl.cam.ac.uk \
--cc=edwin.zhai@intel.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--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.