1、S5500V2-SI版本号
H3C Comware Software, Version 7.1.070, Release 6320
H3C S5500V2-34S-EI
2、策略路由配置如下:
需求:192.168.1.0/24网段 访问服务器IP:192.168.1.7~9 ,192.168.1.11~12, 192.168.1.17~18,192.168.1.44,及返回数据包都要经过安全网关设备192.168.8.2
acl advanced 3000
rule 0 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.7 0
rule 5 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.8 0
rule 10 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.9 0
rule 15 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.11 0
rule 20 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.12 0
rule 25 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.17 0
rule 30 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.18 0
rule 35 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.44 0
rule 40 permit ip source 192.168.1.7 0 destination 192.168.1.0 0.0.0.255
rule 45 permit ip source 192.168.1.8 0 destination 192.168.1.0 0.0.0.255
rule 50 permit ip source 192.168.1.9 0 destination 192.168.1.0 0.0.0.255
rule 55 permit ip source 192.168.1.11 0 destination 192.168.1.0 0.0.0.255
rule 60 permit ip source 192.168.1.12 0 destination 192.168.1.0 0.0.0.255
rule 65 permit ip source 192.168.1.17 0 destination 192.168.1.0 0.0.0.255
rule 70 permit ip source 192.168.1.18 0 destination 192.168.1.0 0.0.0.255
rule 75 permit ip source 192.168.1.44 0 destination 192.168.1.0 0.0.0.255
rule 80 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.86 0
rule 85 permit ip source 192.168.1.86 0 destination 192.168.1.0 0.0.0.255
# policy-based-route ipguard permit node 1
if-match acl 3000 apply next-hop 192.168.8.2
#
interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
ip policy-based-route ipguard
#
网络拓扑图:
三层网关设备------安全设备(ipguard)
192.168.8.2
其中:服务器192.168.1.X和安全设备ipguard都是直接连在 三层网关设备上的。
3、检查结果
检查结果策略路由没有生效
[H3C]dis ip policy-based-route interface Vlan-interface 2
Policy-based routing information for interface Vlan-interface2:
Policy name: ipguard
node 1 permit:
if-match acl 3000
apply next-hop 192.168.8.2
Matched: 0
Total matched: 0
[H3C]
1、S5500V2-SI版本号
H3C Comware Software, Version 7.1.070, Release 6320
H3C S5500V2-34S-EI
2、策略路由配置如下:
需求:192.168.1.0/24网段 访问服务器IP:192.168.1.7~9 ,192.168.1.11~12, 192.168.1.17~18,192.168.1.44,及返回数据包都要经过安全网关设备192.168.8.2
acl advanced 3000
rule 0 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.7 0
rule 5 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.8 0
rule 10 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.9 0
rule 15 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.11 0
rule 20 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.12 0
rule 25 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.17 0
rule 30 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.18 0
rule 35 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.44 0
rule 40 permit ip source 192.168.1.7 0 destination 192.168.1.0 0.0.0.255
rule 45 permit ip source 192.168.1.8 0 destination 192.168.1.0 0.0.0.255
rule 50 permit ip source 192.168.1.9 0 destination 192.168.1.0 0.0.0.255
rule 55 permit ip source 192.168.1.11 0 destination 192.168.1.0 0.0.0.255
rule 60 permit ip source 192.168.1.12 0 destination 192.168.1.0 0.0.0.255
rule 65 permit ip source 192.168.1.17 0 destination 192.168.1.0 0.0.0.255
rule 70 permit ip source 192.168.1.18 0 destination 192.168.1.0 0.0.0.255
rule 75 permit ip source 192.168.1.44 0 destination 192.168.1.0 0.0.0.255
rule 80 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.1.86 0
rule 85 permit ip source 192.168.1.86 0 destination 192.168.1.0 0.0.0.255
# policy-based-route ipguard permit node 1
if-match acl 3000 apply next-hop 192.168.8.2
# interface Vlan-interface2
ip address 192.168.1.1 255.255.255.0
ip policy-based-route ipguard
#
网络拓扑图:
三层网关设备------安全设备(ipguard)
192.168.8.2
其中:服务器192.168.1.X和安全设备ipguard都是直接连在 三层网关设备上的。
3、检查结果
检查结果策略路由没有生效
[H3C]dis ip policy-based-route interface Vlan-interface 2
Policy-based routing information for interface Vlan-interface2:
Policy name: ipguard
node 1 permit:
if-match acl 3000
apply next-hop 192.168.8.2
Matched: 0
Total matched: 0
[H3C]
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论