Thursday, February 3, 2011

Basic Linux Network Setup


Basic Linux Network Setup.

To change IP and make network up:

ifconfig eth0 10.50.110.205 netmask 255.255.255.0 up
This make the NIC to have an ip address

To add default route:

route add default gw 10.50.110.1
This makes the IP packets to flow through the gateway

To resolve name:

vim /etc/resolve.conf   (add nameservers or a local search)


No comments: