Today, the lobby will bring the experimental documents of DatacomIP to all students. Brother Jun certified it as excellent! I believe it will be of great help to everyone!

Today, the lobby will bring the experimental documents of DatacomIP to all students. Brother Jun certified it as excellent! I believe it will be of great help to everyone!
01 Global PBR experiment
Topology map

Write static next hop
[R1]ip route-static 8.8.8.8 32 12.1.1.2 //Go to 8.8.8.8 static route
Create acl add rule
[R1]acl 2001
[R1-acl-basic-2001]rule 5 permit source 12.1.1.1 0
[R1-acl-basic-2001]rule 10 permit source 13.1.1.1 0
Create PBR, match acl, modify next hop
[R1]policy-based-route outISP2 permit node 10 //Create policy routing entry 10
[R1-policy-based-route-outISP2-10]if-match acl 2001 //Match acl 2001
[R1-policy-based-route-outISP2-10]apply ip-address next-hop 13.1.1.3 //Apply the next address is 13.1.1.3
//apply ip-address default next-hop 13.1.1.3
//If there is no Default keyword. It is the PBR that takes precedence. If there is one, the routing table takes precedence.
[R1]dis policy-based-route
policy-based-route : outISP2
Node 10 permit :
if-match acl 2001
apply ip-address next-hop 13.1.1.3
Call policy routing globally
[R1]ip local policy-based-route outISP2
Configure ISP backhaul routing
[ISP-2]ip route-static 0.0.0.0 0 13.1.1.1
[ISP-1]ip route-static 0.0.0.0 0 12.1.1.1
View the route from 12.1.1.1 to 8.8.8.8
<R1>tracert -a 12.1.1.1 8.8.8.8
traceroute to 8.8.8.8(8.8.8.8), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 13.1.1.3 30 ms 20 ms 20 ms
[R1-GigabitEthernet0/0/1]shutdown
[R1]tracert -a 12.1.1.1 8.8.8.8
traceroute to 8.8.8.8(8.8.8.8), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 12.1.1.2 40 ms 20 ms 20 ms
Result: PBR priority is higher than the routing table. If the next hop of PBR fails, it will be forwarded according to the original routing table.
02 Use MQC mode to realize data offloading under the interface
Topology map

Configure static routes to R2 and R3 (MQC depends on the routing table)
[R1]ip route-static 0.0.0.0 0 12.1.1.2
[R1]ip route-static 0.0.0.0 0 13.1.1.3
Create ACL and configure NAT
[R1]acl 2000
[R1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255
[R1-GigabitEthernet0/0/0]nat outbound 2000
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000
Define traffic classification
[R1]acl 2003
[R1-acl-basic-2003]rule permit source 192.168.1.101 0
[R1]traffic classifier PC3
[R1-classifier-PC3]if-match acl 2003
[R1]acl 2004
[R1-acl-basic-2004]rule permit source 192.168.1.102 0
[R1]traffic classifier PC4
[R1-classifier-PC4]if-match acl 2004
Define traffic behavior
[R1]traffic behavior PC3
[R1-behavior-PC3]redirect ip-nexthop 13.1.1.3
[R1]traffic behavior PC4
[R1-behavior-PC4]redirect ip-nexthop 12.1.1.2
Define flow policy
[R1]traffic policy test
[R1-trafficpolicy-test]classifier PC3 behavior PC3
[R1-trafficpolicy-test]classifier PC4 behavior PC4
Use flow policy under interface
[R1-GigabitEthernet0/0/2]traffic-policy test inbound
R3 R4 ping 8.8.8.8 View path


02 Use MQC mode to realize data offloading under the interface
Topology map

[SW1]acl 3000 //Create advanced acl
[SW1-acl-adv-3000]rule permit ip source 192.168.1.102 0 destination 12.1.1.2 0 //Matching entries
[SW1]traffic classifier 4denyR2 //Create traffic classifier
[SW1-classifier-4denyR2]if-match acl 3000 //Flow classifier matching advanced acl
[SW1]traffic behavior 4denyR2 //Create traffic behavior
[SW1-behavior-4denyR2]deny //The popular behavior is deny
[SW1]traffic policy 4denyR2 //Create a traffic policy
[SW1-trafficpolicy-4denyR2]classifier 4denyR2 behavior 4denyR2 //Traffic behavior flow classification matching
[SW1]vlan 1
[SW1-vlan1]traffic-policy 4denyR2 inbound //Call the traffic policy under vlan
The flow strategy was successfully applied! !


