How To Add Additionaly Static IP To Ubuntu Server

There are number reasons why the client do require additional static IP address. Getting the secondary IP address which is one of the simple process these days if it is done for the right reasons and done correctly.  You doesn’t need any additional hardware such as NIC cards but with the help of the user you will be creating virtual adapters as the secondary IP will be routing through the primary IP. The below mentioned information will help you to give a complete information  about how to add additional static IP to ubuntu server.

1) vi /etc/network/interfaces, here you will see the already configured IP
—————————
auto eth0
iface eth0 inet static
address  192.168.0.20
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 109.203.116.1
—————————
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.254
dns-search mynetwork.com

2) Copy above lines and paste under these after doing following changes.
———————————————————————————
auto eth0:1 # change eth0 to eth0:1
iface eth0:1 inet static # change eth0 to eth0:1
address 192.168.0.21 # mention another IP and rest of the lines will be same
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 109.203.116.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.254
dns-search mynetwork.com
———————————————————————————

3) Once it is pasted, then save the file and quite

4) Make sure you restart the networking service for changes
The below mentioned command will execute the restarts the service.
———————————
#/etc/init.d/networking restart
———————————

5) For better service we have to verify the settings with the commands by
————
#ifconfig
————

This entry was posted in Dedicated Hosting and tagged . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>