Creating Ethernet Aliases

By | August 27, 2009

If you need to configure more network aliases, you can use the following commands:

vi /etc/network/interfaces

Add the following lines:

auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
address 192.168.1.101
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

Restart the network service:

/etc/init.d/networking restart

Now your machine will response also to 192.168.0.101.

You can use up to 254 aliases for one interface: eth0:1, eth0:2, eth0:N.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.