Ubuntu Network Adaptor

If you have an additional network adaptor or need to change the ip address of an adaptor follow these command to change the information.

Modify: /etc/network/interfaces
auto eth0
iface eth0 inet static
        address 10.10.1.101
        netmask 255.255.255.0
        network 10.10.1.0
        broadcast 10.10.1.255
        gateway 10.10.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 10.10.1.250
        dns-search domainname.com

Setting up the DNS service, modify: /etc/resolv.conf
search domainname.com
nameserver 10.10.1.250
nameserver 66.35.209.135

Modify the hosts file in /etc/hosts
127.0.0.1          localhost
10.10.1.101     subdomain.domainname.com subdomain
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

After this has been changed then restart the network adapter.
sudo /etc/init.d/networking restart

Comments

Popular posts from this blog

Console over SSH (ONTAP)

Cacti Monitor Server Step by Step Ubuntu

Brocade Zone Setup