restarting network service

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 ...




Topic Options
#1570 - 03/26/03 05:27 AM restarting network service
chrisb62 Offline
stranger

Registered: 03/26/03
Posts: 7
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?

Top
Advertisement
#1576 - 03/26/03 03:33 PM Re: restarting network service
gfolkert Offline
journeyman

Registered: 01/03/03
Posts: 64
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.

Top
#2506 - 08/01/03 06:47 AM Re: restarting network service
twinsonas Offline
stranger

Registered: 08/01/03
Posts: 5
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

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
x86 OS, RAM, & Virtual Machines
by Myke
12/22/09 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Who's Online
0 Registered (), 242 Guests and 40 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91397 Members
24 Forums
59262 Topics
189787 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22