Section 10 of RFC 4364, BGP/MPLS IP Virtual Private Networks (VPNs), describes three potential methods for service providers to interconnect their IP-VPN (Internet Protocol — Virtual Private Network) backbones in order to provide an end-to-end MPLS-VPN where one or more sites of the VPN are connected to different service provider autonomous systems. The purpose of this section is to describe the configuration and troubleshooting for inter-AS VPN model C.
Figure 126 gives an overview of all protocols used when implementing Inter-AS Model C. Inside each AS there is an ISIS adjacency and a link LDP session between each pair of adjacent nodes. As an alternative, OSPF can be used as IGP. Also there is an iBGP session between each PE and the RR. The address family is both VPN-IPv4 for the exchange of customer VPN prefixes and Labeled IPv4 for the exchange of labeled IPv4 prefixes. Note that as an alternative, a full mesh of iBGP sessions can be used in each AS.
The network topology is displayed in Figure 125. The setup consists of two times four (2 x 4) 7750/7710 nodes located in different autonomous systems. There is an AS interconnection from ASBR PE-4 to ASBR PE-8. PE-3 and PE-7 will act as RRs for their AS. It is assumed that an IP-VPN is already configured in each AS. Following configuration tasks should be done first:
The configuration for ASBR PE-4 is displayed below. The advertise-label ipv4 command is required to enable the advertising of labelled IPv4 routes. Note that this command is also required on the RR neighbor in order to propagate the labelled IPv4 routes towards the other PEs in the AS. The address family for labelled IPv4 routes is IPv4 so this family must be enabled for the peering with the RR.
configure router bgp
group "rr"
family ipv4 vpn-ipv4
neighbor 192.0.2.3
advertise-label ipv4
exit
exit
group "remote-as"
family ipv4
type external
peer-as 64497
neighbor 192.168.0.2
advertise-label ipv4
exit
exit
exit all
Note that address family vpn-ipv4 is also required to advertise IPv4 customer routes within the AS. On the RR, the
advertise-label ipv4 command must be specified for each PE neighbor. Also note that address family IPv4 must be enabled. The configuration for RR PE-3 is displayed below.
configure router bgp
group "rr-clients"
family ipv4 vpn-ipv4
neighbor 192.0.2.1
advertise-label ipv4
exit
neighbor 192.0.2.2
advertise-label ipv4
exit
neighbor 192.0.2.4
advertise-label ipv4
exit
exit
exit all
On the remaining PE nodes in AS 64496, the advertise-label ipv4 command must be specified on the RR neighbor. Also the IPv4 family must be enabled.
configure router bgp
group rr
family ipv4 vpn-ipv4
neighbor 192.0.2.3
advertise-label ipv4
exit
exit
exit all
A:PE-4# show router bgp neighbor 192.168.0.2
===============================================================================
BGP Neighbor
===============================================================================
-------------------------------------------------------------------------------
Peer : 192.168.0.2
Group : remote-as
-------------------------------------------------------------------------------
Peer AS : 64497 Peer Port : 179
Peer Address : 192.168.0.2
Local AS : 64496 Local Port : 51262
Local Address : 192.168.0.1
Peer Type : External
State : Established Last State : Active
Last Event : recvKeepAlive
Last Error : Cease
Local Family : IPv4
Remote Family : IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Flaps : 4
Recd. Paths : 0
IPv4 Recd. Prefixes : 0 IPv4 Active Prefixes : 0
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 0 VPN-IPv4 Active Pfxs : 0
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0
Input Queue : 0 Output Queue : 0
i/p Messages : 37 o/p Messages : 39
i/p Octets : 891 o/p Octets : 891
i/p Updates : 4 o/p Updates : 4
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : ipv4
Auth key chain : n/a
Bfd Enabled : Disabled
Local Capability : RtRefresh MPBGP 4byte ASN
Remote Capability : RtRefresh MPBGP 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : None Specified / Inherited
-------------------------------------------------------------------------------
Neighbors : 1
===============================================================================
A:PE-4#
configure router policy-options
prefix-list "pe_sys"
prefix 192.0.2.128/25 longer
exit
policy-statement "pe-sys-to-bgp"
entry 10
from
prefix-list "pe-sys"
exit
to
protocol bgp
exit
action accept
exit
exit
exit
exit all
configure router bgp
group remote-as
neighbor 192.168.0.2
export "pe-sys-to-bgp"
exit
exit
exit all
A:PE-4# show router bgp routes
===============================================================================
BGP Router ID:192.0.2.4 AS:64496 Local AS:64496
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best
===============================================================================
BGP IPv4 Routes
===============================================================================
Flag Network LocalPref MED
Nexthop VPNLabel
As-Path
-------------------------------------------------------------------------------
u*>i 192.0.2.129/32 None 20
192.168.0.2 -
64497
u*>i 192.0.2.130/32 None 10
192.168.0.2 -
64497
u*>i 192.0.2.131/32 None 10
192.168.0.2 -
64497
u*>? 192.0.2.132/32 None None
192.168.0.2 -
64497
-------------------------------------------------------------------------------
Routes : 4
===============================================================================
A:PE-4#
A:PE-4# show router bgp routes 192.0.2.129/32 hunt
===============================================================================
BGP Router ID:192.0.2.4 AS:64496 Local AS:64496
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best
===============================================================================
BGP IPv4 Routes
===============================================================================
-------------------------------------------------------------------------------
RIB In Entries
-------------------------------------------------------------------------------
Network : 192.0.2.129/32
Nexthop : 192.168.0.2
From : 192.168.0.2
Res. Nexthop : 192.168.0.2
Local Pref. : None Interface Name : int-PE-4-PE-8
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 20
Community : No Community Members
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.132
IPv4 Label : 131065
Flags : Used Valid Best IGP
AS-Path : 64497
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
Network : 192.0.2.129/32
Nexthop : 192.0.2.4
To : 192.0.2.3
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 20
Community : No Community Members
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.3
IPv4 Label : 131062
Origin : IGP
AS-Path : 64497
-------------------------------------------------------------------------------
Routes : 2
===============================================================================
A:PE-4#
A:PE-4# show router bgp inter-as-label
===============================================================================
BGP Inter-AS labels
===============================================================================
NextHop Received Advertised Label
Label Label Origin
-------------------------------------------------------------------------------
192.0.2.1 0 131065 Internal
192.168.0.2 131064 131061 External
192.168.0.2 131065 131062 External
192.168.0.2 131066 131060 External
192.168.0.2 131067 131063 External
192.0.2.2 0 131064 Internal
192.0.2.3 0 131066 Internal
192.0.2.4 0 131067 Edge
===============================================================================
A:PE-4#
A:PE-4# show router route-table
===============================================================================
Route Table (Router: Base)
===============================================================================
Dest Prefix Type Proto Age Pref
Next Hop[Interface Name] Metric
-------------------------------------------------------------------------------
192.0.2.1/32 Remote ISIS 02h24m15s 18
192.168.3.1 20
192.0.2.2/32 Remote ISIS 02h24m15s 18
192.168.3.1 10
192.0.2.3/32 Remote ISIS 02h27m29s 18
192.168.4.1 10
192.0.2.4/32 Local Local 02h27m35s 0
system 0
192.0.2.129/32 Remote BGP 00h03m54s 170
192.168.0.2 0
192.0.2.130/32 Remote BGP 00h03m54s 170
192.168.0.2 0
192.0.2.131/32 Remote BGP 00h03m54s 170
192.168.0.2 0
192.0.2.132/32 Remote BGP 00h03m54s 170
192.168.0.2
...
===============================================================================
A:PE-4#
configure router bgp
group "remote-as-rr"
family vpn-ipv4
multihop 10
peer-as 64497
neighbor 192.0.2.131
exit
exit
exit all
A:PE-3# show router bgp neighbor 192.0.2.131
===============================================================================
BGP Neighbor
===============================================================================
-------------------------------------------------------------------------------
Peer : 192.0.2.131
Group : remote-as-rr
-------------------------------------------------------------------------------
Peer AS : 64497 Peer Port : 179
Peer Address : 192.0.2.131
Local AS : 64496 Local Port : 49714
Local Address : 192.0.2.3
Peer Type : External
State : Established Last State : Active
Last Event : recvKeepAlive
Last Error : Unrecognized Error
Local Family : VPN-IPv4
Remote Family : VPN-IPv4
Hold Time : 90 Keep Alive : 30
Active Hold Time : 90 Active Keep Alive : 30
Cluster Id : None
Preference : 170 Num of Flaps : 0
Recd. Paths : 1
IPv4 Recd. Prefixes : 0 IPv4 Active Prefixes : 0
IPv4 Suppressed Pfxs : 0 VPN-IPv4 Suppr. Pfxs : 0
VPN-IPv4 Recd. Pfxs : 1 VPN-IPv4 Active Pfxs : 0
Mc IPv4 Recd. Pfxs. : 0 Mc IPv4 Active Pfxs. : 0
Mc IPv4 Suppr. Pfxs : 0 IPv6 Suppressed Pfxs : 0
IPv6 Recd. Prefixes : 0 IPv6 Active Prefixes : 0
VPN-IPv6 Recd. Pfxs : 0 VPN-IPv6 Active Pfxs : 0
VPN-IPv6 Suppr. Pfxs : 0 L2-VPN Suppr. Pfxs : 0
L2-VPN Recd. Pfxs : 0 L2-VPN Active Pfxs : 0
MVPN-IPv4 Suppr. Pfxs: 0 MVPN-IPv4 Recd. Pfxs : 0
MVPN-IPv4 Active Pfxs: 0
Input Queue : 0 Output Queue : 0
i/p Messages : 14 o/p Messages : 14
i/p Octets : 370 o/p Octets : 370
i/p Updates : 1 o/p Updates : 1
TTL Security : Disabled Min TTL Value : n/a
Graceful Restart : Disabled Stale Routes Time : n/a
Advertise Inactive : Disabled Peer Tracking : Disabled
Advertise Label : None
Auth key chain : n/a
Bfd Enabled : Disabled
Local Capability : RtRefresh MPBGP ORFSendExComm ORFRecvExComm 4byte ASN
Remote Capability : RtRefresh MPBGP ORFSendExComm ORFRecvExComm 4byte ASN
Import Policy : None Specified / Inherited
Export Policy : None Specified / Inherited
-------------------------------------------------------------------------------
Neighbors : 1
===============================================================================
A:PE-3#
A:PE-1# ping router 1 10.2.2.2
PING 10.2.2.2 56 data bytes
64 bytes from 10.2.2.2: icmp_seq=1 ttl=64 time=7.50ms.
64 bytes from 10.2.2.2: icmp_seq=2 ttl=64 time=3.77ms.
64 bytes from 10.2.2.2: icmp_seq=3 ttl=64 time=3.80ms.
64 bytes from 10.2.2.2: icmp_seq=4 ttl=64 time=3.77ms.
64 bytes from 10.2.2.2: icmp_seq=5 ttl=64 time=3.78ms.
---- 10.2.2.2 PING Statistics ----
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min = 3.77ms, avg = 4.52ms, max = 7.50ms, stddev = 1.49ms
A:PE-1# show router ldp bindings prefix 192.0.2.4/32 active
===============================================================================
Legend: (S) - Static
===============================================================================
LDP Prefix Bindings (Active)
===============================================================================
Prefix Op IngLbl EgrLbl EgrIntf/LspId EgrNextHop
-------------------------------------------------------------------------------
192.0.2.4/32 Push -- 131069 1/1/2 192.168.1.2
192.0.2.4/32 Swap 131068 131069 1/1/2 192.168.1.2
-------------------------------------------------------------------------------
No. of Prefix Bindings: 2
===============================================================================
A:PE-1#
A:PE-1# show router bgp routes 192.0.2.129/32 hunt
===============================================================================
BGP Router ID:192.0.2.1 AS:64496 Local AS:64496
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best
===============================================================================
BGP IPv4 Routes
===============================================================================
-------------------------------------------------------------------------------
RIB In Entries
-------------------------------------------------------------------------------
Network : 192.0.2.129/32
Nexthop : 192.0.2.4
From : 192.0.2.3
Res. Nexthop : 192.168.1.2
Local Pref. : 100 Interface Name : int-PE-1-PE-2
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : 20
Community : No Community Members
Cluster : 1.1.1.1
Originator Id : 192.0.2.4 Peer Router Id : 192.0.2.3
IPv4 Label : 131062
Flags : Used Valid Best IGP
AS-Path : 64497
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Routes : 1
===============================================================================
A:PE-1#
A:PE-1# show router bgp routes vpn-ipv4 10.2.2.2/32 hunt
===============================================================================
BGP Router ID:192.0.2.1 AS:64496 Local AS:64496
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best
===============================================================================
BGP VPN-IPv4 Routes
===============================================================================
-------------------------------------------------------------------------------
RIB In Entries
-------------------------------------------------------------------------------
Network : 10.2.2.2/32
Nexthop : 192.0.2.129
Route Dist. : 64497:1 VPN Label : 131070
From : 192.0.2.3
Res. Nexthop : n/a
Local Pref. : 100 Interface Name : NotAvailable
Aggregator AS : None Aggregator : None
Atomic Aggr. : Not Atomic MED : None
Community : target:64496:1
Cluster : No Cluster Members
Originator Id : None Peer Router Id : 192.0.2.3
Flags : Used Valid Best IGP
AS-Path : 64497
VPRN Imported : 1
-------------------------------------------------------------------------------
RIB Out Entries
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Routes : 1
===============================================================================
A:PE-1#