分类: LINUX
2010-08-11 18:59:18
ifconfig eth0 119.147.14.164 netmask 255.255.255.128
route add default gw 119.147.14.129 # 增加默认路由
ifconfig eth0:1 119.147.14.193 netmask 255.255.255.128
/sbin/route add -net 119.147.14.128/25 gw 119.147.14.129 eth0
/sbin/route add -net 119.147.14.0/25 gw 119.147.14.129 eth0 # 增加一个网段的路由
/sbin/route add -host 58.26.126.33/32 gw 119.147.14.129 eth0 # 增加主机路由
netstat -nr # 如何读懂路由表