Setting multiple IPs on Linux or in this case Debian is rather straight forward… All the network info is stored in the file /etc/network/interfaces and you just need to add the info to the file…
Before making changes to this file, I recommend you check your values at least 3 times! If you have made a mistake and trying to do it from a remote location, YOU WILL LOCK YOURSELF OUT!
This is a sample configuration with device eth0 having the IP address of 192.168.1.2 on a Class C Network with 192.168.1.1 as the default gateway.
/etc/network/interfaces:
# /etc/network/interfaces – configuration file for ifup(8), ifdown(8)
# the loopback interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
In order to add multiple IPs to the same interface, In this case eth0 You need to add it in the following method…
auto eth0:0
iface eth0:0 inet static
address 192.168.1.3
netmask 255.255.255.0
broadcast 192.168.1.255
auto eth0:1
iface eth0:1 inet static
address 192.168.1.4
netmask 255.255.255.0
broadcast 192.168.1.255
auto eth0:2
iface eth0:2 inet static
address 192.168.1.5
netmask 255.255.255.0
broadcast 192.168.1.255
Thats it, after you have made all the necessary changes, you need to restart the networking by issueing the following command…
# /etc/init.d/networking restart
Popularity: 4% [?]
You Should Also Check Out This Post:
- Wordpress Find and Replac String
- How to do an IOS Upgrade via TFTP
- How Reliable is your Hard Disk?
- CCDE Design Track Certification
- Adding Nameservers on Sun Solaris
More Active Posts:
- Make BisonCam work on Windows Vista (92)
- 301 Redirect WordPress Posts To New Domain (16)
- Disabling livecall.exe on Windows Live Messenger (WLM) (14)
- Live Messenger - "Show what I'm listening to" Doesn't work (13)
- Hydrogen Powered Car (7)
- AdobeUpdater.exe CPU Resource Hog (5)
- How to gain ROOT access to a Linux Box within 10 Seconds (4)
- TechForums Update (3)
- Google Maps Directions New York To London (2)
- Perfect Email System (2)



My name is Nish Vamadevan, I live in London. I’m a Network Systems Administrator, and Freelance IT Consultant. I’d like to think of myself and a creative and a resourceful person when it’s come to Computers and Technology.
I have been working in the freelance IT sector for over 6 years and have done various Network Deployments, System Administration and Building, maintaining, managing websites for Small / Medium companies..
Apparently, Microsoft has given all these fatures for free…
Check out the following link for more info.
http://www.microsoft.com/presspass/press/2007/may07/05-06WLHotmailLaunchPR.mspx