Saturday, December 26, 2009

Change DHCP to Static IP in Ubuntu

sudo vi /etc/network/interfaces

Change

auto eth0
iface eth0 inet dhcp

To

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

No comments:

Post a Comment