# 设定ip rule
ip rule add pref 10 from 192.168.1.120 table 10
ip rule add pref 20 from 192.168.1.121 table 20
#
#设定ip route 各table
ip route replace default via 192.168.1.1 dev wlan0 table 10
ip route replace default via 192.168.1.1 dev wlan1 table 20
#
#设定ip route main table
ip route replace default nexthop via 192.168.1.1 dev wlan0 weight 1 nexthop via \
192.168.1.1 dev wlan1 weight 1
#
# 刷新route cache
ip route flush cache
阅读(2779) | 评论(0) | 转发(0) |