To add a static IP Address to an ubuntu server you will need to make 2 changes.
1) Edit /etc/network/interfaces
auto lo eth0 iface lo inet loopback iface eth0 inet static address *your ip address here* netmask *your netmask here should be something like 255.255.255.248* gateway *your gateway ip address here*
2) Edit /etc/resolv.conf
nameserver *your primary nameserver* nameserver *your secondary nameserver*
3) restart networking
/etc/init.d/networking restart
4) run ifconfig
The result of ifconfig should show your updated results.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.