LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2004, 08:40 AM   #1
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Rep: Reputation: 15
Question 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.
 
Old 02-28-2004, 08:47 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 02-28-2004, 09:18 AM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
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

 
Old 02-28-2004, 09:36 AM   #4
bulzbb
Member
 
Registered: Feb 2004
Posts: 50

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting directory permissions at start redrobin77 Fedora 1 11-05-2005 01:26 PM
I need help setting up ADSL to start at boot. Please :). beejayzed Mandriva 1 09-21-2005 05:12 PM
Setting which DE to start? tkarkkainen Linux - Software 4 03-22-2004 01:28 AM
Where to start with setting up a LAN? Megamieuwsel Linux - Networking 3 09-11-2003 01:50 PM
RH8 Setting up firewall - how to start? melmore Linux - Networking 2 12-21-2002 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration