Click to See Complete Forum and Search --> : What if your network goes down...and then back up...


MBMarduk
02-08-2001, 01:20 PM
...when the network's back on-line you still can't "get on the 'net", because something (DHCP? HTTPD? WHAT??) doesn't KNOW it's back up.
Perhaps if I knew WHAT then I could search for a COMMAND to restart whatever daemon(?) controls this!

Instead if I do "INIT 1" and then "INIT 2" to quickly switch network support off and back on, it works flawlessly.

I've searched my SuSE 6.4 book for answers...NOTHING.
My box doesn't seem to have the ifup and ifdown commands.
I've tried the university help-desk...NON-EXISTENT.
I've posted in 'network-related'...2 posts and no go.
(Thanx heaps Ripley and fandelem)

Any idea if "rcdhclient stop" and "rcdhclient start" could do this?

TIA
-Mike

MBMarduk
02-08-2001, 08:08 PM
I'm using my network card, if that wasn't clear...

:( Man, either I post really pathetic/cryptic questions or you guys just hate me... nearly 7 hours, no posts yet, found it on page 2 Boohoohooo... :(
This ain't BS, I've been looking for an answers to this for more than a month. This MUST be simple to many people...I think it's also distro-independent.

This was my first post: http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=13&t=003425

Any help will be greatly appreciated.
-Mike

cs25x
02-08-2001, 08:19 PM
try ifconfig ?? that gives you a status.
to kill you can do ifconfig ppp0 down

MBMarduk
02-08-2001, 08:33 PM
GREAT, a new command! Could be the ONE...
Now I'll have to wait until the network goes down again so I can try this. OR, I get another big urge to go experimenting with my box. Right now I'm kind'a happy with my comp on the net like this. :)

PS...Auckland? NZ?

Ig0r
02-08-2001, 08:36 PM
To re-initialize your network card (assuming it is eth0), use the commands:

ifdown eth0
ifup eth0

That should do it.

MBMarduk
02-08-2001, 08:41 PM
Originally posted by MBMarduk:
...My box doesn't seem to have the ifup and ifdown commands.
;)
THX for helping though!
-Mike

Strike
02-08-2001, 09:00 PM
Originally posted by MBMarduk:
My box doesn't seem to have the ifup and ifdown commands.
These are functionally equivalent to

ifconfig <interface-name> up
ifconfig <interface-name> down

pin
02-11-2001, 11:15 PM
If you are using DHCP to get an IP address this should work.

su
ps x
kill -HUP "pid of DHCPCD"
dhcpcd