From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nivedita Singhvi Subject: Re: RE: new /etc/xen/network script Date: Wed, 17 Aug 2005 05:12:14 -0700 Message-ID: <4303299E.3040604@comcast.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Ian Pratt wrote: >>Guh. ifdown doesn't delete the addrs, and once they are, via >>del_addrs, the link up doesn't result in route creation. > > > What distro is this on? > > You're not also setting the address via an ip= line on the kernel > command line, or via an initrd? > > What's the contents of your ifcfg-eth0 file? (you may have multiple > under different profiles) > > Ian (Sorry for the verbosity here) FC3. Not setting address via kernel cmd line. ROOT:hex:/tmp]> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0D:60:C9:52:89 inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20d:60ff:fec9:5289/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1594 errors:0 dropped:0 overruns:0 frame:0 TX packets:222 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:495161 (483.5 KiB) TX bytes:22079 (21.5 KiB) Base address:0x8000 Memory:c0220000-c0240000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1871 errors:0 dropped:0 overruns:0 frame:0 TX packets:1871 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2127980 (2.0 MiB) TX bytes:2127980 (2.0 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 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) ROOT:hex:/tmp]> netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 ROOT:hex:/tmp]> ifdown eth0 + . /etc/init.d/functions ++ TEXTDOMAIN=initscripts ++ umask 022 ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin ++ export PATH ++ '[' -z '' ']' ++ COLUMNS=80 ++ '[' -z '' ']' +++ /sbin/consoletype ++ CONSOLETYPE=pty ++ '[' -f /etc/sysconfig/i18n -a -z '' ']' ++ . /etc/sysconfig/i18n +++ LANG=en_US.UTF-8 +++ SUPPORTED=en_US.UTF-8:en_US:en +++ SYSFONT=latarcyrheb-sun16 ++ '[' pty '!=' pty ']' :0++ '[' -n '' ']' ++ export LANG ++ '[' -z '' ']' ++ '[' -f /etc/sysconfig/init ']' ++ . /etc/sysconfig/init +++ BOOTUP=color +++ GRAPHICAL=yes +++ RES_COL=60 +++ MOVE_TO_COL='echo -en \033[60G' +++ SETCOLOR_SUCCESS='echo -en \033[0;32m' +++ SETCOLOR_FAILURE='echo -en \033[0;31m' +++ SETCOLOR_WARNING='echo -en \033[0;33m' +++ SETCOLOR_NORMAL='echo -en \033[0;39m' +++ LOGLEVEL=3 +++ PROMPT=yes ++ '[' pty = serial ']' ++ '[' color '!=' verbose ']' ++ INITLOG_ARGS=-q + cd /etc/sysconfig/network-scripts + . network-functions ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin ++ export PATH + '[' -f ../network ']' + . ../network ++ NETWORKING=yes ++ HOSTNAME=hex + CONFIG=eth0 + '[' -z eth0 ']' + need_config eth0 + CONFIG=ifcfg-eth0 + '[' -f ifcfg-eth0 ']' + return + '[' -f ifcfg-eth0 ']' + '[' 0 '!=' 0 ']' + source_config ++ basename ifcfg-eth0 ++ sed 's/^ifcfg-//g' + DEVNAME=eth0 + basename ifcfg-eth0 + grep -q '[^g]-' + . ifcfg-eth0 ++ DEVICE=eth0 ++ BOOTPROTO=dhcp ++ ONBOOT=yes ++ TYPE=Ethernet + '[' -r keys-eth0 ']' + case "$TYPE" in + DEVICETYPE=eth + '[' -z eth ']' + '[' -z '' -a -n '' ']' + '[' -z '' ']' + REALDEVICE=eth0 + '[' eth0 '!=' eth0 ']' + ISALIAS=no + '[' -n '' ']' + '[' -n '' ']' + '[' -x /sbin/ifdown-pre-local ']' + OTHERSCRIPT=/etc/sysconfig/network-scripts/ifdown-eth + '[' -x /etc/sysconfig/network-scripts/ifdown-eth ']' + '[' -n '' -a -x /usr/sbin/brctl ']' + . /etc/sysconfig/network ++ NETWORKING=yes ++ HOSTNAME=hex + check_device_down eth0 + echo eth0 + grep -q : + LC_ALL=C + ip -o link ls dev eth0 + grep -q ,UP + return 1 + '[' -n '' -a -z '' ']' + '[' '' = yes ']' + retcode=0 + '[' dhcp = bootp -o dhcp = dhcp ']' ++ pidof -x dhclient + '[' -n 2344 ']' + '[' -f /var/run/dhclient-eth0.pid ']' ++ cat /var/run/dhclient-eth0.pid + kill 2344 + retcode=0 ++ pidof -x dhcpcd + '[' -n '' ']' ++ pidof -x pump + '[' -n '' ']' + '[' eth0 = eth0 ']' + ip link set dev eth0 down + '[' 0 = 0 ']' + retcode=0 + waited=0 + check_device_down eth0 + echo eth0 + grep -q : + LC_ALL=C + ip -o link ls dev eth0 + grep -q ,UP + return 0 + '[' -n '' -a -x /sbin/iwconfig ']' + '[' 0 = 0 ']' + /etc/sysconfig/network-scripts/ifdown-post ifcfg-eth0 + '[' Ethernet = Bridge -a -x /usr/sbin/brctl ']' + '[' -n '' -a -x /sbin/vconfig ']' + exit 0 ROOT:hex:/tmp]> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0D:60:C9:52:89 inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1624 errors:0 dropped:0 overruns:0 frame:0 TX packets:222 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:505277 (493.4 KiB) TX bytes:22079 (21.5 KiB) Base address:0x8000 Memory:c0220000-c0240000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1871 errors:0 dropped:0 overruns:0 frame:0 TX packets:1871 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2127980 (2.0 MiB) TX bytes:2127980 (2.0 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 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) ROOT:hex:/tmp]> netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface ROOT:hex:network-scripts]> cat ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes TYPE=Ethernet