
Cisco IOS XR Training Page 64
© 2012 Jeffrey Fry FryGuy.Net
RP/0/7/CPU0:R1(config-isis)#exit
Now we need to configure an interface to advertise via BGP – here we will
create Loop100 with an IP of 100.100.100.100/32
RP/0/7/CPU0:R1(config)#int loop100
RP/0/7/CPU0:R1(config-if)#ip add 100.100.100.100/32
RP/0/7/CPU0:R1(config-if)#comm
Thu Mar 29 23:12:31.681 UTC
RP/0/7/CPU0:R1(config-if)#exit
Now to configured eBGP.
We will peer with R2 loopback’s (2.2.2.2) and their remote AS of 2.
First we define our BGP processed (ID 1)
RP/0/7/CPU0:R1(config)#
RP/0/7/CPU0:R1(config-if)#router bgp 1
Define the networks we want to advertise
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#address-family ipv4 unicast
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-af)#net 100.100.100.100/32
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-af)#exit
Now we can configure our neighbor
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#nei 2.2.2.2
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#remote-as 2
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#e/jointfilesconvert/356165/bgp-multihop
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#up loopback 0
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#address-family ipv4 un
And finally commit our changes.
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)#comm
Thu Mar 29 23:18:06.455 UTC
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)#exit
RP/0/7/CPU0:R1(config)#exit
RP/0/7/CPU0:R1#
Ok, now that we have that configured – time to look at our routing table, we
should see a route to 200.200.200.200/32.
RP/0/7/CPU0:R1#sh ip route
Thu Mar 29 23:24:25.533 UTC
Codes: C - connected, S - static, R - RIP, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, (!) - FRR Backup path
Kommentare zu diesen Handbüchern