Compatible Support Forums: restarting network service

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

restarting network service

#1 User is offline   chrisb62 

  • stranger
  • Group: Members
  • Posts: 7
  • Joined: 26-March 03

Posted 26 March 2003 - 06:27 AM

don't know if that subject is appropriate for what i am asking but i'm not THAT linux fluent.

Anyways i was wondering, i have my computer set to obtain an ip automatically at boot, didn't set any static thing. So for example say i boot and i don't have the ehternet plugged in, eventually that boot process times out and it continues booting and i don't get an ip from my router..

so i was wondering, once it boots and then i plug in the ethernet, is there a way to get the ip process to restart and get an ip?
0

#2 User is offline   gfolkert 

  • journeyman
  • Group: Members
  • Posts: 64
  • Joined: 03-January 03

Posted 26 March 2003 - 04:33 PM

nearly every distro I have used has a couple of commands called "ifdown" and "ifup". As "root" do these commands like this:
Code:
ifdown eth0 ; ifup eth0


Or on a RedHat machine, as "root":
Code:
service network restart


There are other versions but the first one almost always works.
0

#3 User is offline   twinsonas 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 01-August 03

Posted 01 August 2003 - 06:47 AM

Quote:
don't know if that subject is appropriate for what i am asking but i'm not THAT linux fluent.

Anyways i was wondering, i have my computer set to obtain an ip automatically at boot, didn't set any static thing. So for example say i boot and i don't have the ehternet plugged in, eventually that boot process times out and it continues booting and i don't get an ip from my router..

so i was wondering, once it boots and then i plug in the ethernet, is there a way to get the ip process to restart and get an ip?


you can also use the following commands:

ifconfig 1.2.3.4 eth0 up then

depending on what flavor of linux ur using, restart the network:

/etc/init.d/network start stop restart (whatever u want to do)
/sbin/init.d/network start stop restart
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users