martes, 16 de agosto de 2016

PBR

ip access-list extended PBR-ACL
 permit ip host 192.168.110.10 any
 match ip address PBR-ACL

route-map PBR-RP permit 10
 match ip address PBR-ACL
 set ip next-hop 10.10.10.1

interface Ethernet0/1
 description LAN
 ip address 192.168.110.1 255.255.255.0
 ip flow ingress
 ip policy route-map PBR-RP
end

BR1#sh ip policy
Interface      Route map
Ethernet0/1    PBR-RP

BR1#sh route-map PBR-PR
route-map PBR-PR not found
BR1#sh route-map PBR-RP
route-map PBR-RP, permit, sequence 10
  Match clauses:
    ip address (access-lists): PBR-ACL
  Set clauses:
    ip next-hop 10.10.10.1
  Policy routing matches: 26 packets, 2640 bytes

BR1# debug ip policy
Policy routing debugging is on
BR1#
*Aug 17 02:05:50.288: IP: s=192.168.110.10 (Ethernet0/1), d=192.168.100.1, len 1                      00, FIB policy match
*Aug 17 02:05:50.288: IP: s=192.168.110.10 (Ethernet0/1), d=192.168.100.1, len 1                      00, PBR Counted
*Aug 17 02:05:50.288: IP: s=192.168.110.10 (Ethernet0/1), d=192.168.100.1, g=10.                      10.10.1, len 100, FIB policy routed

*Aug 17 02:10:28.741: IP: s=192.168.110.20 (Ethernet0/1), d=192.168.100.1, len 100, FIB policy rejected(no match) - normal forwarding
*Aug 17 02:10:28.743: IP: s=192.168.110.20 (Ethernet0/1), d=192.168.100.1, len 100, FIB policy rejected(no match) - normal forwarding
*Aug 17 02:10:28.743: IP: s=192.168.110.20 (Ethernet0/1), d=192.168.100.1, len 100, FIB policy rejected(no match) - normal forwarding


No hay comentarios:

Publicar un comentario