Ifconfig eth0 192.168.120.56 netmask 255.255.255.0 temporarily Configure IP and mask for NIC Eth0
Ifconfig eth0 192.168.120.56 netmask 255.255.255.0 broadcast 192.168.120.255 temporarily configure IP and mask for network card eth0, broadcast address
Route can view the network card's gateway,
Route add default GW 192.168.1.1 Set network card Gateway
In general, need a specific nameserver, will change the/etc/resolv.conf, but after the restart will be invalid, violent some, you can add to this file I attribute, that is, many people use
sudo chattr +i resolv.conf
But the method above is very violent, the better way is to configure in/etc/dhcp/dhcclient.conf, in #prepend domain-name-servers 127.0.0.1; Add a line below:
Prepend domain-name-servers 10.10.103.123,127.0.0.1;
This will be a good solution to the problem.
Some tips on the Linux network card