1. ifconfig & service
内存法
ifconfig eth0 1.2.3.4 netmask 255.0.0.0 up 设置网络接口
文件法
cat /etc/sysconfig/network-scripts/ifcfg-eth0
gedit /etc/sysconfig/network-scripts/ifcfg-eth0
service NetworkManager start
service NetworkManager stop
service NetworkManager restart
2. ping
ping 192.168.1.1
4. route 网关
5. arp
6. dns