Skip to content
  • Home
  • About

Recent Posts

  • Hadoop: namenode and datanode
  • Hadoop: track which data block in which data node
  • Hadoop : run a mapreduce job
  • Elasticsearch: Running text search
  • SSH: execute local script on remote machine

Recent Comments

Archives

  • August 2016
  • July 2016
  • December 2015
  • August 2015
  • July 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • May 2014
  • April 2014

Categories

  • apache
  • backup
  • bash
  • debian
  • django
  • dns
  • git
  • grub
  • gui
  • LDAP
  • Linux
  • Linux Hadoop
  • mysql
  • mysqldump
  • nameserver
  • nginx
  • perl
  • python
  • python2.7
  • restore
  • route
  • secureCRT
  • sshd
  • timezone
  • ubuntu
  • Uncategorized
  • vim
  • virtualbox
  • web browser

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

palatana

Wandering technophile

Menu
Widgets
Search

interfaces

Assign static ip in Ubuntu

This was tested in Ubuntu 12.04.4 LTS.

Open interfaces file.

sudo vim /etc/network/interfaces

Add following entries(Assuming eth0 as the physical interface)

auto eth0
iface eth0 inet static
address 172.16.0.172
network 172.16.0.0
netmask 255.255.0.0
broadcast 172.16.0.255
gateway 172.16.0.4
dns-nameservers 172.16.0.5

Change the ip addresses as per your environment.

October 28, 2014dazedmonk ethernet, interfaces, linux, network, static ip, ubuntu Leave a comment
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • palatana
    • Already have a WordPress.com account? Log in now.
    • palatana
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started