Ubuntu Linux: Creating ethernet alias for eth0 network device

Assuming that your eth0 IP is 192.168.1.10 and you would like to create an alias eth0:0 with IP 192.168.1.11. Type the following command:

OR

Verify that alias is up and running using following two command(s):

Permanent configuration

Your ethernet configuration is located in a file called /etc/network/interfaces. If you reboot system you will lost your alias. To make it permanent you need to add it network configuration file:

OR

Append the following configuration:

Save the file and restart system or restart the network:

Please note that you can also use graphical tools located at System > Administration > Networking menu. Or use the following GUI tool to setup aliases, hostname, dns settings etc:

If you want more network aliases, use eth0:1, eth0:2, eth0:N (max upto 254).

Share on FacebookShare on Google+Email this to someoneShare on RedditShare on LinkedInShare on TumblrTweet about this on TwitterShare on StumbleUpon

Leave a Reply

Current ye@r *