- 论坛徽章:
- 30
|
设置网关route add default gw *.*.*.*
设置DNS /etc/resolv.conf
ip ifconfig eth? *.*.*.* netmask 255.255.255.0
ip addr add 192.168.0.1/24 broadcast 192.168.0.255 label eth0 dev eth0
最多支持255张路由表
表255为本地路由表
表254为主路由表
ip route list table table_number
ip route add 0/0 via 192.168.0.4 table main
ip route chg 10.0.0/24 dev dumy
ip route add default scope global
nexthop dev ppp0
nexthop dev ppp1
ip route add nat 192.168.0.1 via 192.168.5.1
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15010/showart_244783.html |
|