H3C 基于源IP策略路由 下载本文

内容发布更新时间 : 2024/6/26 18:17:11星期一 下面是文章的全部内容请认真阅读。

一:实验步骤:

配置各台设备的ip地址 测试直连的连通性

配置欧式OSPF路由协议 策略路由配置 测试实验结果

二:实验配置命令及其实验结果 OSPF的配置: wcg-RT1:

ospf 1 router-id 1.1.1.1 area 0.0.0.0

network 10.1.14.1 0.0.0.0 network 172.16.1.0 0.0.0.255 network 172.16.2.0 0.0.0.255

wcg-RT2:

ospf 1 router-id 2.2.2.2 area 0.0.0.0

network 10.1.12.1 0.0.0.0 network 10.1.21.1 0.0.0.0 network 10.1.14.2 0.0.0.0

wcg-RT3:

ospf 1 router-id 3.3.3.3 area 0.0.0.0

network 10.1.34.1 0.0.0.0 network 10.1.12.2 0.0.0.0 network 10.1.21.2 0.0.0.0

wcg-RT4:

ospf 1 router-id 4.4.4.4 area 0.0.0.0

network 10.1.34.2 0.0.0.0

在wcg-RT4上查看IP路由表

没有做策略路由的实验结果

基于原ip地址的策略路由 wcg-RT2: acl number 2000

rule 0 permit source 172.16.1.0 0.0.0.255 quit

policy-based-route 1 permit node 10 if-match acl 2000

apply ip-address next-hop 10.1.12.2 quit

acl number 2001

rule 0 permit source 172.16.2.0 0.0.0.255 quit

policy-based-route 1 permit node 20 if-match acl 2001

apply ip-address next-hop 10.1.21.2 quit

interface Serial0/1/0 ip policy-based-route 1

在wcg-RT测试结果

Ping命令测试结果

Debugging ip policy-based-route 调试命令