Basic Setup of a Static IP for Debian 6xx
You'll first need to find out what your Ethernet device is called.
Please run:
ifconfig
That will bring up a list of Ethernet devices that are currently connected. For this case, we'll go with "eth0"
It's a little different than CentOS and so is the location of the file you need to edit.
etho
is located in /etc/network/interfaces
Use your favorite text editor and run:{for this instance we're using Nano}
nano /etc/network/inferfaces
# The primary network interface
#First IP address
auto eth0
iface eth0 inet static
address x.x.x.77
netmask 255.255.255.0
gateway x.x.x.254
dns-nameservers x.x.x.x
#Second IP address
auto eth0:1
iface eth0:1 inet static
adress x.x.x.78
netmask 255.255.255.0
gateway x.x.x.254
dns-nameservers x.x.x.x
After "/etc/init.d/networking restart"
Now you have your first static IP! In the very near future we plan on adding Video guides as well!
Hope this helps.
Article Posted by:
Rishi Padooman
www.hostnit.com