Skip to content

Ubuntu Server – Add Static IP Address

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*
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.

Posted in Linux.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK


(required, but never shared)

or, reply to this post via trackback.