LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-29-2004, 10:42 PM   #1
illicit
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
Network config debian


Hello guys,

Im a dead set linux n00blor so be patient

Anyway I have manage to install debian and have manage to set up the nics using ifconfig and get a connection to the net and can use apt-get and people can connect to the vent server etc....

However everytime I reboot all the nic settings are lost and I have to set them up again.

How do I stop this from happening.
 
Old 11-29-2004, 11:19 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Set your ip/broadcast/network/gateway in /etc/network/interfaces

-twantrd
 
Old 11-29-2004, 11:28 PM   #3
illicit
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
sif I have any idea what you are talking about.. is this the n00b forum or am I in the wrong place?
 
Old 11-30-2004, 01:07 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
hehe, yes you are in the right forum. Sorry about that, I'll explain more thoroughly. Ok, to make your ip address permanent take a look at '/etc/network/interfaces' file. You can do this with by running the command:

Code:
more /etc/network/interfaces
You will see the lines:

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx

As you can see, I have set eth0 which is your NIC interface to static ip. Now you need an editor to make a change to this file. You have a lot of choices. For beginners, I would suggest using nano. So to edit, do this:

Code:
nano /etc/network/interfaces
Just fill the x's with the numbers that correspond to your network. Then press 'ctrl x' to exit and save the settings. Afterwards, run this command to restart the network making your changes effective:

Code:
/etc/init.d/networking restart
Let me know what other questions you have. This is pretty much how to set an IP address in deb.

-twantrd

Last edited by twantrd; 11-30-2004 at 01:10 AM.
 
Old 11-30-2004, 07:31 PM   #5
illicit
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Cheers man that did the trick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
After being tired with network config I RETURN TO THE good old DEBIAN zvonSully Ubuntu 0 04-21-2005 03:00 PM
Network card config Debian dicou Linux - Newbie 1 05-13-2004 08:45 AM
Debian - Network Config Question ptesone Linux - Networking 4 04-04-2004 11:04 AM
Debian strange behavior about network config Half_Elf Debian 3 04-01-2004 12:07 PM
New Debian Install - No Network Config Culbert Linux - Networking 2 04-16-2003 01:51 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration