How to set up eth0 interface using interfaces file

Define physical interface eth0 in file /etc/network/interfaces.

Open file /etc/network/interfaces for editing.

DHCP:

auto eth0
iface eth0 inet dhcp

no DHCP:

iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.10
Categories: Linux Tags: , , , ,
%d bloggers like this: