Thread: Debian Question
View Single Post
  #5  
Old 25th October 2005, 21:30
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe what your looking for is how to configure the IP address on your network device.

Networking info is found in the file '/etc/network/interfaces' file. In order to add IP's you need to edit this file. For example, it probably looks like:

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.1.1.10
netmask 255.0.0.0
gateway 10.1.1.1
Generally, when you are adding additional IP addresses... you create them as "alias" devices to eth0 (unless you want to add them to a second interface card). Aliases are in the form of "eth0:0, eth0:1, etc". So, you will need to add something like the following for *each* additional IP address:

Code:
auto eth0:0
iface eth0:0 inet static
address 10.1.1.100
netmask 255.0.0.0

auto eth0:1
iface eth0:1 inet static
address 10.1.1.101
netmask 255.0.0.0

...etc

Then of course restart networking and verify...

Code:
/etc/init.d/networking restart

ifconfig -a

Hope that helps.
__________________
themachine
5dollarwhitebox.org

Last edited by themachine; 25th October 2005 at 21:33.
Reply With Quote