LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Start up setting. (https://www.linuxquestions.org/questions/linux-newbie-8/start-up-setting-151527/)

bulzbb 02-28-2004 08:40 AM

Start up setting.
 
Hi, I installed Slackware 9.1 on my box, and do few settings to set up the network connection:

#ifconfig eth0 xx.xx.xx.xx broadcast xx.xx.xx.xx netmask xx.xx.xx.xx
#route add default gw xx.xx.xx.xx

And edited /etc/resolv.conf file. This works fine, and the network runs smoothly.

However, when I restart the system, all these network configuration were gone (except for whatever I written in /etc/resolf.conf). How do I solve this problem, so that the network configuration stays, even after a restart?

Thanks. :)

druuna 02-28-2004 08:47 AM

You could use netconfig, a tool for setting up network related stuff. You can also take a look at /etc/rc.d. Especially the rc.inet1 and rc.inet1.conf files.

Hope this helps.

citrus 02-28-2004 09:18 AM

or you could just add
#ifconfig eth0 xx.xx.xx.xx broadcast xx.xx.xx.xx netmask xx.xx.xx.xx
#route add default gw xx.xx.xx.xx

to you /etc/rc.d/rc.local file and it will boot up upon start before you log in

:)

bulzbb 02-28-2004 09:36 AM

Thanks! :) It's all working fine now. Anyway, is there a specific documentation on netconfig?

When I tried netconfig, the first question is to enter the hostname, can I just enter anything? and what if I dont have a domain yet?


All times are GMT -5. The time now is 12:52 AM.