Configure static IP in Ubuntu 14.04.1 LTS

1. Make sure your /etc/network/interfaces file configured like below

#The loopback network interface
auto lo
iface lo inet loopback

#The LAN interface
auto eth0
iface eth0 inet static
address 10.0.0.10
netmask 255.255.255.0
gateway 10.10.0.01
dns-nameservers 10.10.10.25 10.10.10.35

2. sudo ifdown eth0

3. sudo ifup eth0

4. ifconfig

5. ping -c 5 google.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: