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 |
Set your ip/broadcast/network/gateway in /etc/network/interfaces
-twantrd |
sif I have any idea what you are talking about.. is this the n00b forum or am I in the wrong place?
|
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 # 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 Code:
/etc/init.d/networking restart -twantrd |
Cheers man that did the trick :)
|
All times are GMT -5. The time now is 09:32 PM. |