Two or more different ip addresses on one NIC?
So please tell me which is the best way to assign two or more external (internet) ip addresses to one network card? I have a server. And i one to use on it many ip addresses.
I have Debian Linux 2.6.20.1 etch.
In /etc/network/interfaces i have:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 81.198.23.99
netmask 255.255.255.224
network 81.198.23.0/26
broadcast 81.198.23.192
gateway 81.198.23.97
So, is it ok to make my nic to use also second ip address in this way:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 81.198.23.99
netmask 255.255.255.224
network 81.198.23.0/26
broadcast 81.198.23.192
gateway 81.198.23.97
allow-hotplug eth0:0
iface eth0:0 inet static
address 81.198.23.100
netmask 255.255.255.224
network 81.198.23.0/26
broadcast 81.198.23.192
gateway 81.198.23.97
??? Please tell me cause my server is about 100 miles from me and i don't want to take it down with wrong settings..
Last edited by izvrashenj; 03-30-2007 at 09:34 AM.
|