Add an additional IP address to your server

Valic —  June 2, 2010 — Leave a comment

Step 1. Open the network configuration file (pico /etc/network/interfaces)

Check the name of your network interface. You should see a line similar to this one: “iface eth0 inet static”. In my case the name is eth0.

Add these lines to the end of the file:

auto eth0:1

iface eth0:1 inet static

address 192.168.1.3

netmask 255.255.255.0

broadcast 192.168.1.255

network 192.168.1.0

Replace eth0 by your network interface name. If you are adding multiple IP addresses to the same system, you can increase the number after “eth0:”.

Stept 2. Activate the new virtual network interface

ifup eth0:1

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

No Comments

Be the first to start the conversation.

Leave a Reply