ok,
if you have a network card, you always have at least 2 interfaces listed: the physical nic, and the loopback. you want to configure the nic, not the loopback, so leave interface lo alone.
first you need to find the name of your interface. it is usually eth0, eth1, etc.
login and run
to list your interfaces. look for the one with an ipaddress as that is likely the one you want.Code:ifconfig
lets assume that your interface is eth0. if you wanted to set the interface for DHCP, then use this:
now if you want a static IP of 192.168.100.2 and your gateway address is 192.168.100.1Code:auto lo iface lo inet auto auto eth0 iface eth0 inet dhcp
then you want to use this:
Code:auto lo iface lo inet auto auto eth0 iface eth0 inet static address 192.168.100.2 netmask 255.255.255.0 gateway 192.168.100.1
Bookmarks