Monday, March 22, 2010

Assign Static Ip in Ubuntu

STEP 1:
Add the following to the below mentioned file and save the file
Edit /etc/network/interfaces
iface eth0 inet static
address 192.168.1.16 //Any IP address
netmask 255.255.255.0
gateway 192.168.1.1
STEP 2:
Inorder to load the new configuration we need to restart the computer or
Try the below commands
ifdown eth0
ifup eth0

No comments: