1.ifconfig - 配置查看网络接口
配置eth0的IP地址:
#ifconfig eth0 172.20.3.102 netmask 255.255.0.0
激活eth0设备:
#ifconfig eth0 up
禁用eth0设备:
#ifconfig eth0 down
查看指定接口配置:
#ifconfig eth0
查看所有接口配置:
#ifconfig
2.route - 配置路由
配置默认网关:
#route add default gw 172.20.3.254