Set Static IP for Ubuntu 12.04

1. Edit /etc/network/interfaces and put the IP address along with other information
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.14.0.102
netmask 255.255.224.0
gateway 192.14.0.1
dns-search example.com
dns-nameservers 192.14.0.194 192.14.0.180
2. use netstat -r to verify that you have default route.
If no, you need add one by using:
sudo route add default gw [ip_address_for_default_gateway]
3.check whether you have entries in /etc/resolve.conf file.For example,
nameserver 192.14.0.194
nameserver 192.14.0.180
search example.com EXAMPLE.COM

No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...