Unix Technical Forum

Restart network after changin rc.inet1.conf?

This is a discussion on Restart network after changin rc.inet1.conf? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I was told by Thomas to make edit the rc.inet1.conf file, puttting in an IP addr, etc. Do I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 09:54 AM
A-B C.
 
Posts: n/a
Default Restart network after changin rc.inet1.conf?

I was told by Thomas to make edit the rc.inet1.conf file, puttting in an IP
addr, etc.

Do I have to re-boot to get this to take effect or is there a less drastic way
to "re-start" the network. In other words, when does my eth0 actually "take
on" the new IP address? (Or am I talking gibberish?)

Thanks,

Al

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 09:54 AM
Menno Duursma
 
Posts: n/a
Default Re: Restart network after changin rc.inet1.conf?

On Thu, 22 Apr 2004 08:43:17 -0700, A-B C. wrote:

> I was told by Thomas to make edit the rc.inet1.conf file, puttting in an IP
> addr, etc.


You where informed correctly.
(Although just running "netconfig" might be easier, and should do as well.)

> Do I have to re-boot to get this to take effect or is there a less drastic way
> to "re-start" the network.


Yes, there is try:

/etc/rc.d/rc.inet1 start

> In other words, when does my eth0 actually "take on" the new IP address?


After "ifconfig" has run.

> (Or am I talking gibberish?)


I don't think so.
If your box is a DHCP client the "dhcpcd" will set stuff up though.

--
-Menno.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 09:54 AM
Alan Hicks
 
Posts: n/a
Default Re: Restart network after changin rc.inet1.conf?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, A-B C. dared to utter,
> Do I have to re-boot to get this to take effect or is there a less drastic way
> to "re-start" the network.


There's a much less drastic way. In fact, there's several.

man ifconfig

Just setup that nic the way you want it. And then,

man route

Setup the route properly. This assumes you want to do this manually.
You may have luck just running /etc/rc.d/rc.inet1, though I don't
reccommend that. Your other option is to change to runlevel 1, then
back to whatever runlevel you want (typically 3 or 4).

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAh/qPL3KiNGOqr6ERAhFPAKDMcgGXc2bPZVGz0tsmFYWtpsAsFwCg wQvf
jJKiGbfkJzXQpeo5ZEW8qCU=
=H3fJ
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 09:55 AM
Eef Hartman
 
Posts: n/a
Default Re: Restart network after changin rc.inet1.conf?

A-B C. <atakeoutcanton@adams-blaketakeout.com> wrote:
> I was told by Thomas to make edit the rc.inet1.conf file, puttting in an IP
> addr, etc.


For eth0 or eth1 ?

> Do I have to re-boot to get this to take effect or is there a less drastic way
> to "re-start" the network. In other words, when does my eth0 actually "take
> on" the new IP address? (Or am I talking gibberish?)


The /etc/rc.d/rc.inet1 _script_ uses the parameters of that .conf file,
it is normally run at bootup, but you can run it by hand too.
When eth0 is already UP, you may have to take it down first:
ifconfig eth0 down
and then
/etc/rc.d/rc.inet1
will bring all configured (in the .conf file) interfaces up.

PS: the script CAN bring the network down too, by adding the parameter "stop"
to it, this doesn't always work, though.

The parameter "start" which other people gave you, CAN be added, but it
currently is the default too, so it is not needed (yet?).
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com