Thursday, September 16, 2010

How to configure a static IP address in an Ubuntu machine

Edit the /etc/network/interfaces file
sudo nano /etc/network/interfaces

and change the following lines
# The primary network interface
auto eth0
iface eth0 inet dhcp

into a similar pattern as:
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1

No comments:

Post a Comment