Configure IP Address in Ubuntu / Debian

Edit the following file from the terminal:
sudo vim /etc/network/interfaces (enter in your password when asked)

Make sure iface eth0 inet static is present if you want to enter in a static IP address

Next, Change the Address, NetMask, Network, Broadcast and Gateway to match your network configuration. When you are finished, just hit ESC followed by :wq <enter> to save.

Restart your network to apply your settings.

sudo /etc/init.d/networking restart

Advertisement

Tags:

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 )

Connecting to %s


Follow

Get every new post delivered to your Inbox.