Tags

, , , ,

Open up /etc/network/interfaces with a text editor.

nano /etc/network/interfaces

 

Static

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

 

Dynamic

auto eth0
 iface eth0 inet dhcp

 

After editing the configuration file. Save and exit the text editor.

Restart networking service.

service networking restart

 

or you can just ifdown and ifup the interface.

ifdown eth0
ifup eth0
Advertisements