
Cisco IOS XR Training Page 61
© 2012 Jeffrey Fry FryGuy.Net
18. BGP iBGP and eBGP
BGP, this is where it starts to get different with IOS XR.
First up, configuring an iBGP peering with R2’s 150.1.12.2 in AS1 and
advertise our loopback interface.
RP/0/7/CPU0:R1(config)#
RP/0/7/CPU0:R1(config)#router /jointfilesconvert/356165/bgp 1
Let’s define the network we want to advertise, under the address family:
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#address-family ipv4 unicast
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-af)#net 1.1.1.1/32
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-af)#exit
Now, we can configure the neighbor. Notice all the commands for the neighbor
are under the neighbor now – not next to the neighbor.
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#nei 150.1.12.2
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#remote-as 1
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)#exit
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)#comm
Thu Mar 29 22:47:05.147 UTC
RP/0/7/CPU0:R1(config-/jointfilesconvert/356165/bgp)#exit
RP/0/7/CPU0:R1(config)#exit
Now, time to see if we have a neighbor established:
RP/0/7/CPU0:R1#sh /jointfilesconvert/356165/bgp nei 150.1.12.2
Thu Mar 29 22:48:13.338 UTC
BGP neighbor is 150.1.12.2
Remote AS 1, local AS 1, internal link
Remote router ID 2.2.2.2
BGP state = Established, up for 00:00:24
Last read 00:00:24, Last read before reset 00:00:00
Hold time is 180, keepalive interval is 60 seconds
Configured hold time: 180, keepalive: 60, min acceptable hold time: 3
Last write 00:00:24, attempted 19, written 19
Second last write 00:00:24, attempted 53, written 53
Last write before reset 00:00:00, attempted 0, written 0
Second last write before reset 00:00:00, attempted 0, written 0
Last write pulse rcvd Mar 29 22:47:49.296 last full not set pulse count 4
Last write pulse rcvd before reset 00:00:00
Socket not armed for io, armed for read, armed for write
Last write thread event before reset 00:00:00, second last 00:00:00
Last KA expiry before reset 00:00:00, second last 00:00:00
Last KA error before reset 00:00:00, KA not sent 00:00:00
Last KA start before reset 00:00:00, second last 00:00:00
Komentarze do niniejszej Instrukcji