Monday 4 January 2010

How to set a static IP in Ubuntu

sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.10
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
sudo /etc/init.d/networking restart

No comments:

Post a Comment