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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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. |
| |||
| -----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----- |
| ||||
| 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 ** ************************************************** ****************** |