Cisco Router IOS XR Bedienungsanleitung Seite 70

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 105
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 69
Cisco IOS XR Training Page 70
© 2012 Jeffrey Fry FryGuy.Net
Now that we have the policy committed with no errors, we can apply it to the
neighbor. We could have waited to commit, but I chose to commit there to
make sure all was OK.
RP/0/7/CPU0:R1(config)#router /jointfilesconvert/356165/bgp 1
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#neighbor 2.2.2.2
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#address-family ipv4 un
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#route-policy R2Loopbacks in
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#exit
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#exit
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#exi
RP/0/7/CPU0:R1(config)#commit
Fri Mar 30 13:27:01.945 UTC
RP/0/7/CPU0:R1(config)#
Now, lets look at our BGP routing table:
RP/0/7/CPU0:R1#sh ip route /jointfilesconvert/356165/bgp
Fri Mar 30 13:27:22.601 UTC
B 200.100.200.100/32 [20/0] via 2.2.2.2, 00:14:28
RP/0/7/CPU0:R1#
There we go, only getting the 200.100.200.100/32 from R2 now.
In IOS this would have looked like:
R1(config)#ip prefix-list R2Loopbacks permit 200.100.200.100/32
R1(config)#route-map R2Loopbacks
R1(config-route-map)#match ip add prefix-list R2Loopbacks
R1(config-route-map)#exit
R1(config)#router /jointfilesconvert/356165/bgp 1
R1(config-router)#nei 2.2.2.2 route-map R2Loopbacks in
R1(config-router)#^Z
R1#sh ip route b
*Mar 30 14:08:53.048: %SYS-5-CONFIG_I: Configured from console by console
(After a few minutes waiting for BGP)
R1#sh ip route /jointfilesconvert/356165/bgp
200.100.200.0/32 is subnetted, 1 subnets
B 200.100.200.100 [20/0] via 2.2.2.2, 00:00:20
R1#
While that might not be so bad, the power of RPL grows. This is just a quick
intro; future posts will have more and more about RPL. Some other things that
we might see are:
route-policy check ASPath
if as-path passes-through ‘65500’ then
drop
else
pass
endif
end-policy
Seitenansicht 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 104 105

Kommentare zu diesen Handbüchern

Keine Kommentare