restarting network service

This is a discussion about restarting network service in the Linux Networking category; 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.

Linux Networking 361 This topic was started by , . Last reply by ,


data/avatar/default/avatar03.webp

7 Posts
Location -
Joined 2003-03-26
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?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Mar 26
Created
Aug 1
Last Response
0
Likes
2 minutes
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar38.webp

64 Posts
Location -
Joined 2003-01-03
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.

data/avatar/default/avatar10.webp

5 Posts
Location -
Joined 2003-08-01
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