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 05:12:14 -0700 [thread overview]
Message-ID: <4303299E.3040604@comcast.net> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D282BA6@liverpoolst.ad.cl.cam.ac.uk>
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
next prev parent reply other threads:[~2005-08-17 12:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-17 11:44 RE: new /etc/xen/network script Ian Pratt
2005-08-17 12:12 ` Nivedita Singhvi [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-10-14 18:53 Stephan Böni
2005-10-14 23:23 ` Ewan Mellor
2005-10-14 18:29 Stephan Böni
2005-10-14 18:22 Stephan Böni
2005-10-14 17:16 Stephan Böni
2005-10-14 17:55 ` David F Barrera
2005-08-17 16:34 Ian Pratt
2005-08-17 18:17 ` David F Barrera
2005-08-17 13:30 Zhai, Edwin
2005-08-17 12:47 Zhai, Edwin
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:19 Zhai, Edwin
2005-08-17 12:34 ` Nivedita Singhvi
2005-08-17 11:32 Ian Pratt
2005-08-17 11:43 ` Nivedita Singhvi
2005-08-16 16:51 Ian Pratt
2005-08-16 18:53 ` David F Barrera
2005-08-16 16:27 Ian Pratt
2005-08-16 16:41 ` David F Barrera
2005-08-17 10:02 ` Nivedita Singhvi
2005-08-17 11:21 ` Nivedita Singhvi
2005-08-17 11:34 ` Nivedita Singhvi
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=4303299E.3040604@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.