Model Name
Please Input the code of command to be execute(0-39): 16
Key Word:
Q(quit)
(19)policy
Debug policy routing
Please Input the code of command to be execute(0-25): 19
Will you execute it? [Y]:y
6.15.7 PBR configution example
router configure
!
interface FastEthernet0/0
ip address 10.1.1.3 255.255.255.0
no ip directed-broadcast
ip policy route-map pbr
!
interface FastEthernet0/0.13
ip address 13.1.1.3 255.255.255.0
no ip directed-broadcast
encapsulation dot1Q 13
bandwidth 100000
delay 1
!
interface FastEthernet0/0.14
ip address 14.1.1.3 255.255.255.0
no ip directed-broadcast
encapsulation dot1Q 14
!
interface Serial0/0
ip address 11.1.1.1
no ip directed-broadcast
!
ip access-list standard net1
permit 10.1.1.2 255.255.255.255
!
ip access-list standard net2
permit 10.1.1.4 255.255.255.255
!
ip access-list standard net3
permit 10.1.1.21 255.255.255.255
!
route-map pbr 10 permit
match ip address net1
set ip next-hop 13.1.1.99
!
route-map pbr 20 permit
match ip address net2
set ip next-hop 14.1.1.99
!
route-map pbr 30 permit
match ip address net3
set ip next-hop 13.1.1.99 14.1.1.99 load-balance
!
route-map pbr 40 permit
set ip default next-hop 13.1.1.99
- 295 -