
Cisco IOS XR Training Page 67
© 2012 Jeffrey Fry FryGuy.Net
Here is the first difference with IOS XR – eBGP peers must have a Route-
Policy (route-map) configured to permit routes in and out of them.
Instead of a route-map like IOS, IOS XR uses a Route Policy Language (RPL) –
that is more powerful and easier than IOS. Let’s configure a very simple one
to pass everything:
RP/0/7/CPU0:R1(config)#route-policy PASS
RP/0/7/CPU0:R1(config-rpl)#pass
RP/0/7/CPU0:R1(config-rpl)#exit
RP/0/7/CPU0:R1(config)#commit
Thu Mar 29 23:28:08.400 UTC
Cool – that was easy. Now lets apply that to the eBGP neighbor:
RP/0/7/CPU0:R1(config)#router /jointfilesconvert/356165/bgp 1
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#nei 2.2.2.2
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#address-family ipv4 unicast
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#route-policy PASS out
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#route-policy PASS in
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#commit
Thu Mar 29 23:28:32.865 UTC
Now, lets look at the routing table for BGP
RP/0/7/CPU0:R1#sh route ipv4 bgp
Thu Mar 29 23:29:43.865 UTC
B 200.200.200.200/32 [20/0] via 2.2.2.2, 00:01:06
RP/0/7/CPU0:R1#
Cool, we have a route to R2’s Loopback100 interface. PING time!
RP/0/7/CPU0:R1#ping 200.200.200.200 sou loop100
Thu Mar 29 23:30:10.013 UTC
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.200.200.200, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/3/5 ms
RP/0/7/CPU0:R1#
Look at that, we have connectivity!
A similar IOS config would look like this:
router /jointfilesconvert/356165/bgp 1
no synchronization
/jointfilesconvert/356165/bgp log-neighbor-changes
network 100.100.100.100 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 2
neighbor 2.2.2.2 e/jointfilesconvert/356165/bgp-multihop 255
neighbor 2.2.2.2 route-map PASS in
neighbor 2.2.2.2 route-map PASS out
Commenti su questo manuale