Ubuntu Networking

Dynamic IP Address Assignment (DHCP Client)

auto eth0
iface eth0 inet dhcp

Static IP Address Assignment

auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1

Restart

sudo ifup eth0
sudo ifdown eth0

Leave a Reply

Your email address will not be published. Required fields are marked *