[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple IP Addresses on A Single NIC



"Miranda, Joel Louie M" <jmiranda@pd.state.gov> writes:

> ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0 up
> ifconfig eth0:1 192.168.0.2 netmask 255.255.255.0 up
> 
> And so on... 

And to automate at startup, do it with /etc/network/interfaces :

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
	address 192.168.0.73
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
#	gateway 192.168.0.250

# The second network card -
# (network, broadcast and gateway are optional)
auto eth0:0
iface eth0:0 inet static
	address 192.168.1.73
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255


-- 
Groupe Morbihannais d'Utilisateurs de Logiciels Libres http://www.tuxbihan.org
Identifiant Jabber: pp@amessage.de

Patrick Percot.



Reply to: