Friday, December 16, 2022

CCIE Service Provider ( SP)_Mock Lab 2

  BGP Design Change ISP1 and ISP2

Question 1.2.

Configuring BGP in all the ISPs (ISP1, ISP2 and ISP3)

Inside ISP1:

1.       Template peer-policy and template peer-session must be used on both RR1 and RR2

2.       There's an IBGP session between both RRs inside each ISP running different cluster-IDs between them

3.       BGP free core must be used inside ISP1 and ISP2 (by enabling MPLS LDP inside them). RR1 and RR2 in ISP1 shouldn't be configuredwith MPLS LDP as they are out of Forwarding Path

4.       No BGP should be enabled on P1 and P2 inside ISP1 and ISP2 as well

5.       No BGP should be enabled at this question for ASBRs on both ISP1 and ISP2 towards RRs

6.       Raising ISIS level2 with area 40 inside ISP3 with mpls ldp auto-config

7.       BGP should be configured between ASBR1-ISP1 and ASBR1-ISP3, ASBR1-ISP1 and ASBR2-ISP3, ASBR1-ISP3 and ASBR2-ISP3, ASBR1-ISP2 and ASBR1-ISP3, ASBR1-ISP2 and ASBR2-ISP3

 

ISP-1, ISP-2 and ISP-3 each requires change in BGP design architecture.

Your tasks are to implement these changes:

a)       For ISP-1 simplify the administration process. To achieve this goal, you must re-configure the BGP RR1 and RR2 by using the template peer–policy and template peer-session commands .These commands must be applied in all iBGP peers and in all BGP address templates that are in use currently. For this question the BGP address families a

I.                     IPv4 unicast

II.                   VPNv4 unicast

III.                 IPv6 unicast and

IV.                VPNv6 unicast

 

b)      For ISP-1 and ISP-2 optimize the processing power of the core routers in order to save routing space. To achieve this goal you must configure the ISP-1 and ISP-2 to the BGP free core.

 

c)       Configure External BGP among ISP-1 and ISP-2 and ISP-3 for ipv4 and ipv6 address families

                     I.            ISP1 ASBR1<--->ISP2 ASBR1

                   II.            ISP1 ASBR1<--->ISP3 ASBR1

                 III.            ISP1 ASBR1<--->ISP3 ASBR2

                IV.            ISP2 ASBR1<--->ISP3 ASBR1

                  V.            ISP2 ASBR1<--->ISP3 ASBR2

                VI.            ISP1 ASBR2<--->ISP2 ASBR2

 

Solution:

NOTES:

 

Tips:

·         IPv4 and IPv6 have consistent BGP session on the topology

·         Advertise all loopback0 on the ASBR1 and ASBR2 in the ISP1, and the same on the ASBR1 and ASBR2 in the ISP2

·         Add two loopback interface on PE1 in the ISP1:

o   loopback12=12.0.0.131/32

o   loopback129=129.12.0.131/32

 

and the same on the PE1 in the ISP2:

o   loopback22=22.0.0.131/32

o   loopback129=129.22.0.131/32

·         Advertise the new loopback on the PE1,and carrier the community information:

o   ISP1: Class-A address community=1:200 Class-B address community=1:300

o   ISP2: Class-A address community=2:200 Class-B address community=2:300

·         IPv4 BGP Path select

Class-A address access each other between the ISP1 and ISP2 use the path as:

o   First: ISP1 ASBR2<--->ISP2 ASBR2

o   Third: ISP1 ASBR1<--->ISP3<--->ISP2 ASBR1

Class-B address access each other between the ISP1 and ISP2 use the path as:

o   First: ISP1 ASBR1<--->ISP3 ASBR2<---> ISP2 ASBR1

o   Secondary: ISP1 ASBR1<--->ISP2 ASBR1

o   Third: ISP1 ASBR2<--->ISP2 ASBR2

 

Notes:

ISP1-RR1 will be configured with cluster: 1.0.0.111, ISP1-RR2 will be configured with cluster: 1.0.0.112

ISP2-RR1 will be configured with cluster: 2.0.0.111, ISP2-RR2 will be configured with cluster: 2.0.0.112

 

In ISP1 the following BGP families will be established:

IPv4-LU, IPv6, VPNv4, VPNv6

 

In ISP2 the following BGP families will be established:

IPv4, IPv6, VPNv4, VPNv6

 

In ISP3 the following BGP families will be established:

IPv4-LU, IPv6

Also in ISP3 mpls ldp autoconfigwill be configured for enabling LDP as a transport label protocol inside ISP3

 

There's a IBGP session (IPv4, IPv6, VPNv4, VPNv6) between both RRs inside each ISP running different cluster-IDs between them.

 

BGP free core must be used inside ISP1 and ISP2 (by enabling MPLS LDP inside them). RR1 and RR2 in ISP1 shouldn't be configuredwith MPLS LDP as they are out of Forwarding Path

 

No BGP should be enabled on P1 and P2 inside ISP1 and ISP2 as well -  as a part of BGP free-core

 

BGP IPv4 LU and IPv6 should be configured between ASBR1-ISP1 and ASBR1-ISP3, ASBR1-ISP1 and ASBR2-ISP3, ASBR1-ISP3 and ASBR2-ISP3, ASBR1-ISP2 and ASBR1-ISP3, ASBR1-ISP2 and ASBR2-ISP3.

 

Also static routes to NH /32 will be configured for preparing transport of Inter-AS for resolving and having labeled path end-to-end between ISP1 and ISP2

 

On IOS-XR IBGP community is sent by default --- we should explicitly send community on EBGP.

on IOS-XR we need to do it for both IBGP and EBGP peering

 

On ISP1 we will configure MPLS LDP for every physical interface

On ISP2 we will not configured here anything but in next question we will remove all the mpls ip configurations from the interface mode and will configure mpls ldp autoconfigon IGP

 

On IOS-XR together with applying address-family ipv4 labeled-unicast we also need globally under the BGP configuration mode configureunder the address-family ipv4 unicast the allocate-label all, otherwise the BGP-LU will not work as expected on IOS-XR platform

 

Regarding BGP cluster-ID:

The bgp cluster-id command is used to assign a cluster ID to a route reflector when the cluster has one or more route reflectors.

 

Multiple route reflectors are deployed in a cluster to increase redundancy and avoid a single point of failure.

 

When multiple route reflectors are configured in a cluster, the same cluster ID is assigned to all route reflectors.

 

This allows all route reflectors in the cluster to recognize updates from peers in the same cluster and reduces the number of updates that need to be stored in BGP routing tables.

 

If you DO put the same cluster ID on all RR's, then it will be used as a loop prevention mechanism.

While this may sound good, it means that if a downstream router loses connection to one RR,the route will NOT pass to the second RR back to the first RR at all.  Current best practice is different cluster ids on each RR.

 

If you have multiple route reflectors that service the same group of clients (i.e. redundant RRs in a cluster)the RRs should all share the same cluster-id.

 

The default cluster-id is your router-id.  So by default they'll be different.

 

//Need to verify if EBGP on ISP3---ISP1---ISP2 need to be raised on both physical links or only on one of them!!!

//Also we need to check regarding different BGP commands that need to be applied

 

RP/0/0/CPU0:ISP1-ASBR1#

 

router bgp 1

 bgp router-id 1.0.0.121

 address-family ipv4 unicast

  network 1.0.0.101/32

  network 1.0.0.102/32

  network 1.0.0.111/32

  network 1.0.0.112/32

  network 1.0.0.121/32

  network 1.0.0.122/32

  network 1.0.0.131/32

  network 1.0.0.132/32

  network 1.0.0.133/32

  allocate-label all

 !

 address-family ipv6 unicast

  network 2001:db8::1:101/128

  network 2001:db8::1:102/128

  network 2001:db8::1:111/128

  network 2001:db8::1:112/128

  network 2001:db8::1:121/128

  network 2001:db8::1:122/128

  network 2001:db8::1:131/128

  network 2001:db8::1:132/128

  network 2001:db8::1:133/128

 !

 neighbor 1.0.0.111

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 1.0.0.112

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::1:111

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::1:112

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

!

 

RP/0/0/CPU0:ISP1-ASBR2#

 

router bgp 1

 bgp router-id 1.0.0.122

 address-family ipv4 unicast

  network 1.0.0.101/32

  network 1.0.0.102/32

  network 1.0.0.111/32

  network 1.0.0.112/32

  network 1.0.0.121/32

  network 1.0.0.122/32

  network 1.0.0.131/32

  network 1.0.0.132/32

  network 1.0.0.133/32

  allocate-label all

 !

 address-family ipv6 unicast

  network 2001:db8::1:101/128

  network 2001:db8::1:102/128

  network 2001:db8::1:111/128

  network 2001:db8::1:112/128

  network 2001:db8::1:121/128

  network 2001:db8::1:122/128

  network 2001:db8::1:131/128

  network 2001:db8::1:132/128

  network 2001:db8::1:133/128

 !

 neighbor 1.0.0.111

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 1.0.0.112

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::1:111

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::1:112

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

!

 

RP/0/0/CPU0:ISP1-PE1#

 

route-policy COMM200

  set community (1:200)

end-policy

!

route-policy COMM300

  set community (1:300)

end-policy

!

router bgp 1

 bgp router-id 1.0.0.131

 address-family ipv4 unicast

  network 12.0.0.0/8 route-policy COMM200

  network 129.12.0.0/16 route-policy COMM300

  allocate-label all

 !

 address-family ipv6 unicast

 !

 neighbor 1.0.0.111

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 1.0.0.112

  remote-as 1

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::1:111

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

 neighbor 2001:db8::1:112

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

!

 

RP/0/0/CPU0:ISP1-PE2#

 

router bgp 1

 bgp router-id 1.0.0.132

 address-family ipv4 unicast

 !

 address-family ipv6 unicast

 !

 neighbor 1.0.0.111

  remote-as 1

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 1.0.0.112

  remote-as 1

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 2001:db8::1:111

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

 neighbor 2001:db8::1:112

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

!

 

RP/0/0/CPU0:ISP1-PE3#

 

router bgp 1

 bgp router-id 1.0.0.133

 address-family ipv4 unicast

 !

 address-family ipv6 unicast

 !

 neighbor 1.0.0.111

  remote-as 1

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 1.0.0.112

  remote-as 1

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 2001:db8::1:111

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

 neighbor 2001:db8::1:112

  remote-as 1

  update-source Loopback0

  address-family ipv6 unicast

  !

 !

!

 

ISP1-RR1#

router bgp 1

 template peer-policy IBGP

  route-reflector-client

  send-community both

 exit-peer-policy

 !

 template peer-session IBGP

  remote-as 1

  update-source Loopback0

 exit-peer-session

 !

 bgp router-id 1.0.0.111

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

neighbor 1.0.0.112 inherit peer-session IBGP

neighbor 1.0.0.121 inherit peer-session IBGP

 neighbor 1.0.0.122 inherit peer-session IBGP

 neighbor 1.0.0.131 inherit peer-session IBGP

 neighbor 1.0.0.132 inherit peer-session IBGP

 neighbor 1.0.0.133 inherit peer-session IBGP

neighbor 2001:DB8::1:112 inherit peer-session IBGP

neighbor 2001:DB8::1:121 inherit peer-session IBGP

 neighbor 2001:DB8::1:122 inherit peer-session IBGP

 neighbor 2001:DB8::1:131 inherit peer-session IBGP

 neighbor 2001:DB8::1:132 inherit peer-session IBGP

 neighbor 2001:DB8::1:133 inherit peer-session IBGP

 !

 address-family ipv4

neighbor 1.0.0.112 activate

neighbor 1.0.0.112 inherit peer-policy IBGP

  neighbor 1.0.0.121 activate

neighbor 1.0.0.121 inherit peer-policy IBGP

  neighbor 1.0.0.121 send-label

  neighbor 1.0.0.122 activate

  neighbor 1.0.0.122 inherit peer-policy IBGP

  neighbor 1.0.0.122 send-label

  neighbor 1.0.0.131 activate

  neighbor 1.0.0.131 inherit peer-policy IBGP

  neighbor 1.0.0.131 send-label

  neighbor 1.0.0.132 activate

  neighbor 1.0.0.132 inherit peer-policy IBGP

  neighbor 1.0.0.133 activate

  neighbor 1.0.0.133 inherit peer-policy IBGP

 exit-address-family

 !

 address-family ipv6

  neighbor 2001:DB8::1:112 activate

  neighbor 2001:DB8::1:112 inherit peer-policy IBGP

  neighbor 2001:DB8::1:121 activate

  neighbor 2001:DB8::1:121 inherit peer-policy IBGP

  neighbor 2001:DB8::1:122 activate

  neighbor 2001:DB8::1:122 inherit peer-policy IBGP

  neighbor 2001:DB8::1:131 activate

  neighbor 2001:DB8::1:131 inherit peer-policy IBGP

  neighbor 2001:DB8::1:132 activate

  neighbor 2001:DB8::1:132 inherit peer-policy IBGP

  neighbor 2001:DB8::1:133 activate

  neighbor 2001:DB8::1:133 inherit peer-policy IBGP

 exit-address-family

!

 

ISP1-RR2#

 

router bgp 1

 template peer-policy IBGP

  route-reflector-client

  send-community both

 exit-peer-policy

 !

 template peer-session IBGP

  remote-as 1

  update-source Loopback0

 exit-peer-session

 !

 bgp router-id 1.0.0.112

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

neighbor 1.0.0.111 inherit peer-session IBGP

 neighbor 1.0.0.121 inherit peer-session IBGP

 neighbor 1.0.0.122 inherit peer-session IBGP

 neighbor 1.0.0.131 inherit peer-session IBGP

 neighbor 1.0.0.132 inherit peer-session IBGP

 neighbor 1.0.0.133 inherit peer-session IBGP

 neighbor 2001:DB8::1:121 inherit peer-session IBGP

 neighbor 2001:DB8::1:122 inherit peer-session IBGP

 neighbor 2001:DB8::1:131 inherit peer-session IBGP

 neighbor 2001:DB8::1:132 inherit peer-session IBGP

 neighbor 2001:DB8::1:133 inherit peer-session IBGP

 !

 address-family ipv4

  neighbor 1.0.0.111 activate

  neighbor 1.0.0.111 inherit peer-policy IBGP

  neighbor 1.0.0.121 activate

  neighbor 1.0.0.121 inherit peer-policy IBGP

  neighbor 1.0.0.121 send-label

  neighbor 1.0.0.122 activate

  neighbor 1.0.0.122 inherit peer-policy IBGP

  neighbor 1.0.0.122 send-label

  neighbor 1.0.0.131 activate

  neighbor 1.0.0.131 inherit peer-policy IBGP

  neighbor 1.0.0.131 send-label

  neighbor 1.0.0.132 activate

  neighbor 1.0.0.132 inherit peer-policy IBGP

  neighbor 1.0.0.133 activate

  neighbor 1.0.0.133 inherit peer-policy IBGP

 exit-address-family

 !

 address-family ipv6

  neighbor 2001:DB8::1:111 activate

  neighbor 2001:DB8::1:111 inherit peer-policy IBGP

  neighbor 2001:DB8::1:121 activate

  neighbor 2001:DB8::1:121 inherit peer-policy IBGP

  neighbor 2001:DB8::1:122 activate

  neighbor 2001:DB8::1:122 inherit peer-policy IBGP

  neighbor 2001:DB8::1:131 activate

  neighbor 2001:DB8::1:131 inherit peer-policy IBGP

  neighbor 2001:DB8::1:132 activate

  neighbor 2001:DB8::1:132 inherit peer-policy IBGP

  neighbor 2001:DB8::1:133 activate

  neighbor 2001:DB8::1:133 inherit peer-policy IBGP

 exit-address-family

!

 

VERIFICATION:

show bgp ipv4 unicast summary

show bgp ipv6 unicast summary

 

show bgp vpnv4 unicast summary

show bgp vpnv6 unicast summary

 

ISP2

RP/0/0/CPU0:ISP2-PE1#

 

!

route-policy COMM200

  set community (2:200)

end-policy

!

route-policy COMM300

  set community (2:300)

end-policy

!

route-policy add-path

  set path-selection backup 1 advertise install

end-policy

!

router bgp 2

 bgp router-id 2.0.0.131

 address-family ipv4 unicast

  network 2.0.100.131/32 route-policy COMM200

  network 22.0.0.131/32 route-policy COMM200

  network 129.22.0.131/32 route-policy COMM300

network 22.0.0.0/8 route-policy COMM200

  network 129.22.0.0/16 route-policy COMM300

 !

 address-family ipv6 unicast

  additional-paths receive

  additional-paths send

  advertise best-external

  additional-paths selection route-policy add-path

 !

 neighbor 2.0.0.111

  remote-as 2

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 2.0.0.112

  remote-as 2

  update-source Loopback0

  address-family ipv4 unicast

  !

 !

 neighbor 2001:db8::2:111

  remote-as 2

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::2:112

  remote-as 2

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

!

ISP2-PE2#

 

!

route-map COMM300 permit 10

 set community 2:300

!

router bgp 2

 bgp router-id 2.0.0.132

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 2.0.0.111 remote-as 2

 neighbor 2.0.0.111 update-source Loopback0

 neighbor 2.0.0.112 remote-as 2

 neighbor 2.0.0.112 update-source Loopback0

 neighbor 2001:DB8::2:111 remote-as 2

 neighbor 2001:DB8::2:111 update-source Loopback0

 neighbor 2001:DB8::2:112 remote-as 2

 neighbor 2001:DB8::2:112 update-source Loopback0

 !

 address-family ipv4

  network 2.0.100.132 mask 255.255.255.255 route-map COMM300

  neighbor 2.0.0.111 activate

  neighbor 2.0.0.111 send-community

  neighbor 2.0.0.111 next-hop-self

  neighbor 2.0.0.112 activate

  neighbor 2.0.0.112 send-community

  neighbor 2.0.0.112 next-hop-self

 exit-address-family

 !

 address-family ipv6

  bgp additional-paths install

  no bgp recursion host

  neighbor 2001:DB8::2:111 activate

  neighbor 2001:DB8::2:111 next-hop-self

  neighbor 2001:DB8::2:112 activate

  neighbor 2001:DB8::2:112 next-hop-self

 exit-address-family

!

 

ISP2-ASBR1#

 

router bgp 2

 bgp router-id 2.0.0.121

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 2.0.0.111 remote-as 2

 neighbor 2.0.0.111 update-source Loopback0

 neighbor 2.0.0.112 remote-as 2

 neighbor 2.0.0.112 update-source Loopback0

 neighbor 2001:DB8::2:111 remote-as 2

 neighbor 2001:DB8::2:111 update-source Loopback0

 neighbor 2001:DB8::2:112 remote-as 2

 neighbor 2001:DB8::2:112 update-source Loopback0

 !

 address-family ipv4

  bgp additional-paths install

  network 2.0.0.101 mask 255.255.255.255

  network 2.0.0.102 mask 255.255.255.255

  network 2.0.0.111 mask 255.255.255.255

  network 2.0.0.112 mask 255.255.255.255

  network 2.0.0.121 mask 255.255.255.255

  network 2.0.0.122 mask 255.255.255.255

  network 2.0.0.131 mask 255.255.255.255

  network 2.0.0.132 mask 255.255.255.255

  neighbor 2.0.0.111 activate

  neighbor 2.0.0.111 send-community

  neighbor 2.0.0.111 next-hop-self

  neighbor 2.0.0.112 activate

  neighbor 2.0.0.112 send-community

  neighbor 2.0.0.112 next-hop-self

 exit-address-family

 !

 address-family ipv6

  bgp additional-paths install

  no bgp recursion host

  network 2001:DB8::2:101/128

  network 2001:DB8::2:102/128

  network 2001:DB8::2:111/128

  network 2001:DB8::2:112/128

  network 2001:DB8::2:121/128

  network 2001:DB8::2:122/128

  network 2001:DB8::2:131/128

  network 2001:DB8::2:132/128

  neighbor 2001:DB8::2:111 activate

  neighbor 2001:DB8::2:111 next-hop-self

  neighbor 2001:DB8::2:112 activate

  neighbor 2001:DB8::2:112 next-hop-self

 exit-address-family

!

 

ISP2-ASBR2#

 

router bgp 2

 bgp router-id 2.0.0.122

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 2.0.0.111 remote-as 2

 neighbor 2.0.0.111 update-source Loopback0

 neighbor 2.0.0.112 remote-as 2

 neighbor 2.0.0.112 update-source Loopback0

 neighbor 2001:DB8::2:111 remote-as 2

 neighbor 2001:DB8::2:111 update-source Loopback0

 neighbor 2001:DB8::2:112 remote-as 2

 neighbor 2001:DB8::2:112 update-source Loopback0

!

 address-family ipv4

  network 2.0.0.101 mask 255.255.255.255

  network 2.0.0.102 mask 255.255.255.255

  network 2.0.0.111 mask 255.255.255.255

  network 2.0.0.112 mask 255.255.255.255

  network 2.0.0.121 mask 255.255.255.255

  network 2.0.0.122 mask 255.255.255.255

  network 2.0.0.131 mask 255.255.255.255

  network 2.0.0.132 mask 255.255.255.255

  neighbor 2.0.0.111 activate

  neighbor 2.0.0.111 send-community

  neighbor 2.0.0.111 next-hop-self

  neighbor 2.0.0.112 activate

  neighbor 2.0.0.112 send-community

  neighbor 2.0.0.112 next-hop-self

 exit-address-family

 !

 address-family ipv6

  bgp additional-paths install

  no bgp recursion host

  network 2001:DB8::2:101/128

  network 2001:DB8::2:102/128

  network 2001:DB8::2:111/128

  network 2001:DB8::2:112/128

  network 2001:DB8::2:121/128

  network 2001:DB8::2:122/128

  network 2001:DB8::2:131/128

  network 2001:DB8::2:132/128

  neighbor 2001:DB8::2:111 activate

  neighbor 2001:DB8::2:111 next-hop-self

  neighbor 2001:DB8::2:112 activate

  neighbor 2001:DB8::2:112 next-hop-self

 exit-address-family

!

 

ISP2-RR1#

 

router bgp 2

 bgp router-id 2.0.0.111

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 2.0.0.121 remote-as 2

 neighbor 2.0.0.121 update-source Loopback0

 neighbor 2.0.0.122 remote-as 2

 neighbor 2.0.0.122 update-source Loopback0

 neighbor 2.0.0.131 remote-as 2

 neighbor 2.0.0.131 update-source Loopback0

 neighbor 2.0.0.132 remote-as 2

 neighbor 2.0.0.132 update-source Loopback0

 neighbor 2001:DB8::2:121 remote-as 2

 neighbor 2001:DB8::2:121 update-source Loopback0

 neighbor 2001:DB8::2:122 remote-as 2

 neighbor 2001:DB8::2:122 update-source Loopback0

 neighbor 2001:DB8::2:131 remote-as 2

 neighbor 2001:DB8::2:131 update-source Loopback0

 neighbor 2001:DB8::2:132 remote-as 2

 neighbor 2001:DB8::2:132 update-source Loopback0

 !

 address-family ipv4

  neighbor 2.0.0.121 activate

  neighbor 2.0.0.121 send-community both

  neighbor 2.0.0.121 route-reflector-client

  neighbor 2.0.0.122 activate

  neighbor 2.0.0.122 send-community both

  neighbor 2.0.0.122 route-reflector-client

  neighbor 2.0.0.131 activate

  neighbor 2.0.0.131 send-community both

  neighbor 2.0.0.131 route-reflector-client

  neighbor 2.0.0.132 activate

  neighbor 2.0.0.132 send-community both

  neighbor 2.0.0.132 route-reflector-client

 exit-address-family

 !

 address-family ipv6

  bgp additional-paths install

  no bgp recursion host

  neighbor 2001:DB8::2:121 activate

  neighbor 2001:DB8::2:121 route-reflector-client

  neighbor 2001:DB8::2:122 activate

  neighbor 2001:DB8::2:122 route-reflector-client

  neighbor 2001:DB8::2:131 activate

  neighbor 2001:DB8::2:131 route-reflector-client

  neighbor 2001:DB8::2:132 activate

  neighbor 2001:DB8::2:132 route-reflector-client

 exit-address-family

!

 

ISP2-RR2#

 

 router bgp 2

 bgp router-id 2.0.0.112

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 2.0.0.121 remote-as 2

 neighbor 2.0.0.121 update-source Loopback0

 neighbor 2.0.0.122 remote-as 2

 neighbor 2.0.0.122 update-source Loopback0

 neighbor 2.0.0.131 remote-as 2

 neighbor 2.0.0.131 update-source Loopback0

 neighbor 2.0.0.132 remote-as 2

 neighbor 2.0.0.132 update-source Loopback0

 neighbor 2001:DB8::2:121 remote-as 2

 neighbor 2001:DB8::2:121 update-source Loopback0

 neighbor 2001:DB8::2:122 remote-as 2

 neighbor 2001:DB8::2:122 update-source Loopback0

 neighbor 2001:DB8::2:131 remote-as 2

 neighbor 2001:DB8::2:131 update-source Loopback0

 neighbor 2001:DB8::2:132 remote-as 2

 neighbor 2001:DB8::2:132 update-source Loopback0

 !

 address-family ipv4

  neighbor 2.0.0.121 activate

  neighbor 2.0.0.121 send-community

  neighbor 2.0.0.121 route-reflector-client

  neighbor 2.0.0.122 activate

  neighbor 2.0.0.122 send-community

  neighbor 2.0.0.122 route-reflector-client

  neighbor 2.0.0.131 activate

  neighbor 2.0.0.131 send-community

  neighbor 2.0.0.131 route-reflector-client

  neighbor 2.0.0.132 activate

  neighbor 2.0.0.132 send-community

  neighbor 2.0.0.132 route-reflector-client

 exit-address-family

 !

 address-family ipv6

  bgp additional-paths install

  no bgp recursion host

  neighbor 2001:DB8::2:121 activate

  neighbor 2001:DB8::2:121 route-reflector-client

  neighbor 2001:DB8::2:122 activate

  neighbor 2001:DB8::2:122 route-reflector-client

  neighbor 2001:DB8::2:131 activate

  neighbor 2001:DB8::2:131 route-reflector-client

  neighbor 2001:DB8::2:132 activate

  neighbor 2001:DB8::2:132 route-reflector-client

 exit-address-family

!

VERIFICATION:

 

show bgp ipv4 unicast summary

show bgp ipv6 unicast summary

 

show bgp vpnv4 unicast summary

show bgp vpnv6 unicast summary

 

ISP3

 

RP/0/0/CPU0:ISP3-ASBR1#

 

router bgp 3

 bgp router-id 3.0.0.121

 address-family ipv4 unicast

  network 3.0.0.121/32

  network 3.0.0.122/32

  allocate-label all

 !

 address-family ipv6 unicast

  network 2001:db8::3:121/128

  network 2001:db8::3:122/128

 !

 neighbor 3.0.0.122

  remote-as 3

  update-source Loopback0

  address-family ipv4 labeled-unicast

   next-hop-self

  !

 !

 neighbor 2001:db8::3:122

  remote-as 3

  update-source Loopback0

  address-family ipv6 unicast

   next-hop-self

  !

 !

!

 

ISP3-ASBR2#

 

router bgp 3

 bgp router-id 3.0.0.122

 bgp log-neighbor-changes

 no bgp default ipv4-unicast

 neighbor 3.0.0.121 remote-as 3

 neighbor 3.0.0.121 update-source Loopback0

 neighbor 2001:DB8::3:121 remote-as 3

 neighbor 2001:DB8::3:121 update-source Loopback0

 !

 address-family ipv4

  network 3.0.0.121 mask 255.255.255.255

  network 3.0.0.122 mask 255.255.255.255

  neighbor 3.0.0.121 activate

  neighbor 3.0.0.121 send-community

  neighbor 3.0.0.121 next-hop-self

  neighbor 3.0.0.121 send-label

 exit-address-family

 !

 address-family ipv6

  network 2001:DB8::3:121/128

  network 2001:DB8::3:122/128

  neighbor 2001:DB8::3:121 activate

  neighbor 2001:DB8::3:121 next-hop-self

 exit-address-family

!

 

 

VERIFICATION:

 

show bgp ipv4 unicast summary

show bgp ipv6 unicast summary

 

show bgp vpnv4 unicast summary

show bgp vpnv6 unicast summary

 

 

VERIFICATION:

 

LDP:

 

ISP1/ISP2/ISP3:

 

IOS/XR:

show mpls ldp neighbor | inc Peer

 

BGP:

 

ISP1/ISP2:

 

On each RR:

show bgp ipv4 all summary

show bgp ipv4 labeled-unicast summary

 

show bgp ipv4 unicast summary

show bgp ipv6 unicast summary

 

show bgp vpnv4 unicast summary

show bgp vpnv6 unicast summary

 

On each PE/ASBR:

show bgp sessions

show bgp all all summary

 

Checking BGP session state:

XR:

show bgp neighbors | inc "BGP neighbor is | BGP state | Address family "

XE:

show  ip bgp neighbors | inc BGP neighbor is | BGP state | Address family

show  bgp ipv6 neighbors | inc BGP neighbor is | BGP state | Address family

 

ISP3:

 

XE:

show bgp ipv6 unicast summary

show bgp ipv4 labeled-unicast summary

show bgp ipv6 unicast summary

show  ip bgp neighbors | inc BGP neighbor is | BGP state | Address family

show  bgp ipv6 neighbors | inc BGP neighbor is | BGP state | Address family

 

XR:

show bgp sessions

show bgp all all summary

show bgp neighbors | inc "BGP neighbor is | BGP state | Address family "

 

Also on each IOS-XE for EBGP LU session we have to check that "mpls bgp forwarding" command was explicitly added to the interface configuration mode

 

 


Clouds & AI Technologies