Monday, April 1, 2013

Login into your account.

Go into your network directory
cd /etc/network

Make a backup of interfaces (Just in case you messed up)
sudo cp interfaces interfaces.bak
or
sudo cp /etc/network/interfaces /etc/network/interfaces.bak

Edit the file using VI
sudo vi /etc/network/interfaces

You should see something similar like the image below:

Edit in VI using your settings just like the image below (Press I for insert mode)

Just in case you aren't able to spot it 

auto eth0
iface eth0 inet static
address 192.168.137.2
netmask 255.255.255.0
gateway 192.168.138.1

Saved it (Press ESC to enter option mode, and input :wq and hit enter)

Done


0 comments:

Post a Comment