Linux : How to setup Static IP Address in Ubuntu 10.10

Setup Static IP Address

If you want to setup a Static IP Address in your system , Modify the file   /etc/network/interfaces.   If your First Ethernet   Interface is eth0 ,see the following Example.   Just add the following lines in the file with the help of an Editor and Restart the network or system.

auto eth0
iface eth0 inet static
address 192.168.0.25
netmask 255.255.255.0
gateway 192.168.0.1

after modifing the file

$ sudo /etc/int.d/networking restart

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.