Manage network interface
ifconfig eth0 down
ifconfig eth0 up
Use service command would bring up/down all the network interface. Use service command to control the internet adapter would also update the routing table.
service network status
service network stop
service network start
Network configuration file
We can modify the ifcfg-* configure file and bounce the network card to make the changes effective.
Below is the example of the ifcfg-eth0 file:
GATEWAY value can be overwrite by the ifcfg-* file.
namesserver value can be overwritten by the parameter “DNS*” in the ifcfg-* file.