1
H3C]ip route-static 0.0.0.0 0 192.168.1.1 //The default priority is not configured as 60. If no detailed route or policy route is matched, the route will be matched out of the public network.
[H3C]ip route-static 0.0.0.0 0 192.168.10.1 preference 70 //Set the priority to 70.
The smaller the priority value, the more preferred. After configuration, the default outgoing interface is 192.168.1.1, and the other link is only for backup. If you have special needs, you can use policy routing.
[H3C]acl number 2000
[H3C-acl-ipv4-basic-2000]rule permit source 192.168.0.0 0.0.0.255
[H3C]policy-based-route 1 permit node 10
[H3C-pbr-1-10]if-match acl 2000
[H3C -pbr-1-10]apply ip-address next-hop 192.168.10.1
[H3C-GigabitEthernet2/0/3]ip policy-based-route 1
null
No comments
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作