LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network config debian (https://www.linuxquestions.org/questions/linux-newbie-8/network-config-debian-260776/)

illicit 11-29-2004 10:42 PM

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. :D

twantrd 11-29-2004 11:19 PM

Set your ip/broadcast/network/gateway in /etc/network/interfaces

-twantrd

illicit 11-29-2004 11:28 PM

sif I have any idea what you are talking about.. is this the n00b forum or am I in the wrong place?

twantrd 11-30-2004 01:07 AM

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

illicit 11-30-2004 07:31 PM

Cheers man that did the trick :)


All times are GMT -5. The time now is 09:32 PM.