Thursday, June 21, 2012

UBUNTU: How to change IP Address for new clone server?

1. Manually configure your network interface file:
    sudo nano /etc/network/interfaces
Once your prefered editor opens the file you want to enter the following information (changing your addresses where necessary):
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here)
* Be sure to save your changes.

2. Manually configure your dns configuration file:
    # sudo nano /etc/resolv.conf

Once your preferred editor opens the file you want to enter the following information (changing your addresses where necessary):
# Generated by NetworkManager
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)
* Be sure to save your changes.

3. Manually restart your network interface with the new settings:
    # sudo /etc/init.d/networking restart


..

0 comments:

Post a Comment