一、拓扑图如下

策略路由实验ACL配置

 

 二、进行配置(策略路由走下)

 

 

R3

#
acl number 2000
rule 5 permit source 3.3.3.0 0.0.0.255
rule 10 permit source 35.1.1.0 0.0.0.255
#

 

策略路由实验ACL配置

 

 

 

策略路由实验ACL配置

 

 

 

 

#
traffic behavior 1
redirect ip-nexthop 23.1.1.1
#

 

策略路由实验ACL配置

 

 

#
interface GigabitEthernet0/0/0
ip address 23.1.1.2 255.255.255.0
traffic-policy test outbound
#

 

策略路由实验ACL配置

 

 

#
interface GigabitEthernet0/0/2
ip address 35.1.1.1 255.255.255.0

 

策略路由实验ACL配置

 

 

 

 

#
ospf 1 router-id 3.3.3.3
area 0.0.0.0

network 35.1.1.0 0.0.0.255 

策略路由实验ACL配置

 

 R5

 

#
interface GigabitEthernet0/0/0
ip address 35.1.1.2 255.255.255.0
#

策略路由实验ACL配置

 

 

#
ospf 1
area 0.0.0.0
network 35.1.1.0 0.0.0.255
#

策略路由实验ACL配置

 

 dis ospf peer

策略路由实验ACL配置

 

tracert -a 35.1.1.2 1.1.1.1

 策略路由实验ACL配置

 

 R3

 

 

#
interface GigabitEthernet0/0/0
ip address 23.1.1.2 255.255.255.0

undo traffic-policy test inbound

undo traffic-policy test outbound

#
interface GigabitEthernet0/0/2
ip address 35.1.1.1 255.255.255.0
traffic-policy test inbound
#

策略路由实验ACL配置

 

 R3

dis traffic-policy test

dis traffic-profile all

 

#
acl number 2000
rule 5 permit source 3.3.3.0 0.0.0.255
rule 10 permit source 35.1.1.0 0.0.0.255
#

 

策略路由实验ACL配置

 

interface g0/0/2

undo traffic test inbound

traffic-policy test

dis traffic policy user-defined

 

相关文章:

  • 2021-04-17
  • 2021-05-06
  • 2021-07-09
  • 2021-06-22
  • 2021-12-18
  • 2022-12-23
  • 2021-12-07
  • 2021-11-04
猜你喜欢
  • 2021-05-25
  • 2021-04-27
  • 2021-08-09
  • 2021-11-30
  • 2021-06-27
  • 2021-06-21
  • 2021-05-29
相关资源
相似解决方案