LAB9: BGP – IPv6
Disclaimer
This Configuration Guide is designed to assist members to enhance their skills in respective technology area.
LAB 9: Diagram
Note: This Lab was developed on Cisco IOS Version15.2(4) M1 ADVENTERPRISEK9-M.
LAB 9: Configure BGP FOR IPv6:
Task 1:
In the configuration mode of router configure IPv6 BGP Process by following command:
R1:
router bgp 65100 ! (Initiate BGP
neighbor 22:0:1::2 remote-as 65000 ! (Creates a IPv6 BGP peer group)
neighbor 22:0:1::2 ebgp-multihop 5
neighbor 22:0:1::2 update- loopback 1 ! (To form loop to loop indirect peering
address-family ipv6 ! (Enable address family
neighbor 22:0:1::2 activate ! (Enables the exchange of
neighbor 22:0:1::2 soft-reconfiguration inboundwith IPv6 BGP
exit
R2:
router bgp 65000
neighbor 11:0:1::1 remote-as 65100
neighbor 11:0:1::1 ebgp-multihop 5 !
neighbor 11:0:1::1 update-source loopback 1 peers
neighbor 33:0:1::3 remote-as 65000 directly connected.)
neighbor 33:0:1::3 update-source loopback 1
address-family ipv6
neighbor 11:0:1::1 activate
neighbor 11:0:1::1 soft-reconfiguration inbound ! (To store fresh incoming updated
neighbor 33:0:1::3 activate from neighbor.)
neighbor 33:0:1::3 soft-reconfiguration inbound
exit
R3:
router bgp 65000
neighbor 44:0:1::4 remote-as 65200
neighbor 44:0:1::4 ebgp-multihop 5
neighbor 44:0:1::4 update-source loopback 1
neighbor 22:0:1::2 remote-as 65000
neighbor 22:0:1::2 update-source loopback 1
address-family ipv6
neighbor 44:0:1::4 activate
neighbor 44:0:1::4 soft-reconfiguration inbound
neighbor 22:0:1::2 activate
neighbor 22:0:1::2 soft-reconfiguration inbound
exit
R4:
router bgp 65200
neighbor 33:0:1::3 remote-as 65000
neighbor 33:0:1::3 ebgp-multihop 5
neighbor 33:0:1::3 update-source loopback 1
address-family ipv6
neighbor 33:0:1::3 activate
neighbor 33:0:1::3 soft-reconfiguration inbound
exit
In the configuration mode of router configure IPv4 OSPF Process by following command:
R1:
ipv6 router ospf 1 ! (Initiate IPv6 OSPF process with process id 1)
interface serial 2/0
ipv6 ospf 1
interface loopback 1
ipv6 ospf 1 area 0
interface loopback 2
ipv6 ospf 1 area 0
interface loopback 3
ipv6 ospf 1 area 0
exit
R2:
ipv6 router ospf 1
interface serial 2/0
ipv6 ospf 1 area 0
interface ethernet 0/0
ipv6 ospf 1 area 0
interface
ipv6 ospf 1 area 0
interface loopback 2
ipv6 ospf 1 area 0
interface loopback 3
ipv6 ospf 1 area 0
exit
R3:
ipv6 router ospf 1
interface serial2/0
ipv6 ospf 1 area 0
interface ethernet 0/0
ipv6 ospf 1 area 0
interface loopback 1
ipv6 ospf 1
interface loopback 2
ipv6 ospf 1 area 0
interface loopback 3
ipv6 ospf 1 area 0
exit
R4:
ipv6 router ospf 1
interface serial 2/0
ipv6 ospf 1 area 0
interface loopback 1
ipv6 ospf 1 area 0
interface loopback 2
ipv6 ospf 1 area 0
interface loopback 3
ipv6 ospf 1 area 0
exit
Announce the network in BGP Process
R1:
router bgp 65100
address-family ipv6 ! (Enable address family for IPv6 BGP.)
network 11:0:1::0/64 ! (Announce the network in BGP process.)
network 11:0:2::0/64
network 11:0:3::0/64
exit
R2:
router bgp 65000
address-family ipv6
network 22:0:1::0/64
network 22:0:2::0/64
network 22:0:3::0/64
exit
R3:
router bgp 65000
address-family ipv6
network 33:0:1::0/64
network 33:0:2::0/64
network 33:0:3::0/64
exit
R4:
router bgp 65200
address-family
network 44:0:1::0/64
network 44:0:2::0/64
network 44:0:3::0/64
exit
Task 2:
Verify IPv6 OSPF routes by following command:
R2#show ipv6 route
! (Shows router’s routing table and IPv6 routes entries.)
IPv6 Routing Table - default -
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B
O
B
O
B
O
C
L
C
L
C
L
C
L
C
L
B
O
B
O
B
O
O
B
O
B
O
B
O
L
Verify IPv6 BGP neighborship and its details by following command:
BGP neighbor states:
Idle – TCP connectivity issue
Active – Command configuration issue
Established – TCP connectivity established
R2#show bgp ipv6 unicast neighbor
! (show details of IPv6bgp neighbor)
BGP neighbor is 11:0:1::1,
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 5
Local host: 22:0:1::2, Local port: 38536
Foreign host: 11:0:1::1, Foreign port: 179
Connection tableid (VRF): 0
Maximum output segment queue size: 50
Enqueued packets for retransmit: 0, input: 0
Event Timers (current time is 0x138C7):
Timer
Retrans
TimeWait
AckHold
SendWnd
KeepAlive
GiveUp
PmtuAger
DeadWait
Linger
ProcessQ
iss:
irs: 2503198340
sndwnd:
rcvwnd:
SRTT: 413 ms, RTTO: 3205 ms, RTV: 2792 ms, KRTT: 0 ms
minRTT:
Status Flags: active open
Option Flags: nagle, path mtu capable
IP Precedence value : 6
Datagrams (max data segment is 1440 bytes):
Rcvd: 8 (out of order: 0), with data: 4, total data bytes: 218
Sent: 7
TCP Semaphore
BGP neighbor is 33:0:1::3,
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 255
Local host: 22:0:1::2, Local port: 54981
Foreign host:
Connection tableid (VRF): 0
Maximum output segment queue size: 50
Enqueued packets for retransmit: 0, input: 0
Event Timers (current time is 0x138C8):
Timer
Retrans
TimeWait
AckHold
SendWnd
KeepAlive
GiveUp
PmtuAger
DeadWait
Linger
ProcessQ
iss: 3435553471
irs:
sndwnd:
rcvwnd:
SRTT: 330 ms, RTTO: 3159 ms, RTV: 2829 ms, KRTT: 0 ms
minRTT: 0 ms, maxRTT: 1000
Status Flags: active open
Option Flags: nagle, path mtu capable
IP Precedence value : 6
Datagrams (max data segment is 1440 bytes):
Rcvd: 5 (out of order: 0), with data: 2, total data bytes: 76
Sent: 5 (retransmit: 0, fastretransmit:
TCP Semaphore
Verify IPv6 BGP routes
and its details by following command:
R2#show bgp ipv6 unicast
! (Shows IPv6 BGP table where “>” shows best path.)
BGP table version is 13, local router ID is 22.0.3.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found