Setup static IP in Debian OS {Debian 6xx}

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


 

nano /etc/network/interfaces
 
 
# 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

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

{cPanel} Viewing cron jobs through SSH

You can use the command crontab -lTo view all od "root" cron jobs.To be more user specific,...

{cPanel + CentOS} How to install cPanel on a CentOS server via ssh?

{cPanel + CentOS} How to install cPanel on a CentOS server via ssh?   Please follow the...

How do I assign additional IP addresses in RedHat/CentOS?

  To assign a new range of addresses to your server you'll need to create a RANGE file. To...

Recover Centos root Passwod

1. Boot the system and when you see the following message "Press any key to enter the menu",...