On Fri, 2002-03-01 at 07:11, Thierry ITTY wrote: > > for some reason, i sometimes have to change its ip address. usually, with > former releases or versions of rh, i just modify > /etc/sysconfig/network-scripts/ifcfg-eth0 changing ip address, network, > broadcast and mask to fit my needs, then a /etc/rc.d/init.d/network > restart, et voila... > > with rh 72 (even tried with last kernel package) this doesn't work. what > happens is that the NIC keeps the same old address. but if i reboot instead > of just restarting the network, then the new address is taken. thought of a > problem of some active connections or servers but it's not that.
Apply the initscripts errata update. I believe they fix this problem. IIUC, 'ifconfig' and 'route' will probably be depreciated someday in favor of the 'ip' tool, part of the iproute2 package. I think useful information is here: http://lartc.org/ 'ip' can manipulate all of the kernel's interface and routing features, which 'ifconfig' and 'route' can not. If you change the configuration of an interface, and restart the network service on 7.2, look at the output of: ip addr show > what's strange now is that i can ping both 192.168.1.1 (which is the old > address i wanted to remove but still appears) and 172.16.1.1 (which is the > new address i want but doesn't appear) The 'ip' command above will show you what you want to know. > i think this looks like a bug ? In the initscripts, yes.
signature.asc
Description: This is a digitally signed message part