PBR routing policy configuration

 

 

1, the first to use dynamic protocol allows network interoperability. OSPF or RIP protocol may be used.

2, arranged to float on the external network R1 default and static routes, the primary route to go R3.

ip route 0.0.0.0 0.0.0.0 193.1.1.2
ip route 0.0.0.0 0.0.0.0 202.1.1.2 100
ip route 193.1.2.0 255.255.255.0 193.1.1.2
ip route 202.1.2.0 255.255.255.0 202.1.1.2

3, arranged on the routing policy PBR R1, requires 192.168.0.0/24 and 192.168.1.0/24 go R3 , 192.168.3.0/24 and 192.168.4.0/24 go R4

4, configure ACL:

access-list 1 permit 192.168.0.0 0.0.0.255
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 2 permit 192.168.3.0 0.0.0.255
access-list 2 permit 192.168.4.0 0.0.0.255

5, configure route-map

route-map xpl permit 10
 match ip address 1
 set ip next-hop 193.1.1.2

route-map xpl permit 20
 match ip address 2
 set ip next-hop 202.1.1.2

6, the routing policy applied to an interface, the network interface data flows.

the FastEthernet0 interface / 0
 IP address 192.168.5.2 255.255.255.252
 IP Policy route XPL-Map

interface the FastEthernet0 /. 1
 IP address 192.168.4.1 255.255.255.0
 IP Policy route XPL-Map
. 7, Note: To configure a default route on R1 weight distribution, so within the network to know the path to the external network. Also out online to configure static routes, such data flow within the network will come back.

Guess you like

Origin www.cnblogs.com/xpl520/p/12124500.html