route-map permit 10
match ip address 101
!
route-map permit 20
match ip address 102
set ip next-hop 10.105.199.2
!
ip access-list extended 101
10 permit ip any 10.0.0.0 0.255.255.255
!
ip access-list extended 102
10 permit ip 10.105.211.0 0.0.0.255 any
20 permit ip 10.105.221.0 0.0.0.255 any
30 permit ip 10.105.231.0 0.0.0.255 any
40 permit ip 10.105.201.0 0.0.0.255 any
vlan 199
interface VLAN 199
no ip proxy-arp
ip address 10.105.199.1 255.255.255.0
interface GigabitEthernet 1/0/23
sw
switchport access vlan 199
in vlan 1000
ip policy route-map map1
in vlan 211
no ip policy route-map
in vlan 221
ip policy route-map map1
in vlan 231
ip policy route-map map1
in vlan 201
ip policy route-map map1
(0)
在华三(H3C)交换机上,您可以使用以下命令来替代您提供的 Cisco 配置:
route-policy permit node 10
if-match ip address acl 101
apply ip next-hop 10.105.199.2
ip access-list extended 101
10 permit ip any 10.0.0.0 0.255.255.255
ip access-list extended 102
10 permit ip 10.105.211.0 0.0.0.255 any
20 permit ip 10.105.221.0 0.0.0.255 any
30 permit ip 10.105.231.0 0.0.0.255 any
40 permit ip 10.105.201.0 0.0.0.255 any
请注意,这里提供的信息仅作参考,具体情况可能因设备型号、软件版本和网络配置而有所不同。12
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论