Under some distros, pump would do the trick.
Otherwise, under SuSE, the easiest is
# rcnetwork restart
which reinialises all network interfaces, and also the DHCP client
running on the interfaces configures to use DHCP.
Yours,
Serge Marelli a écrit :
Hi,
I normally access the Net via the cable.
Sometimes, when I boot my computer, I don't have an IP address. This is
usually because for one reason or the other I've unplugged my
cable-modem. So I plug the modem back in and... nada... still no IP
(even if I wait).
So I usually have to reboot :(
My question : is there a way to force the system to recognize that the
network (cable-modem) plugged to eth0 is back up and that it should
request an IP address (via DHCP)?
Would something like
~ # ifconfig eth0 down
~ # ifconfig eth0 up
work?
Do I have to specify anything to let it know it should use DHCP to get
the IP adress or will it find that info in one of the config files?
(which one for my education?)
Will ipchains or other firewall be affected? Since there was no net on
that card at boot time, were the rules concerning this card enabled?
I may try this before I get an answer, but I'd like to know if there may
be some unforeseen side-effects.
thanks
Serge
--
Brent Frère
Private e-mail: Brent(a)BFrere.net
Postal address: 5, rue de Mamer
L-8280 Kehlen
Grand-Duchy of Luxembourg
European Union
Mobile: +352-021/29.05.98
Fax: +352-26.30.05.96
Home: +352-307.341
URL:
http://BFrere.net