In inter-AS VPN Option C, a BGP LSP needs to be established between ASs, and labeled IPv4 routes need to be exchanged between BGP peers.
system-view
bgp { as-number-plain | as-number-dot }
peer ipv4-address label-route-capability
system-view
interface interface-type interface-number
ip address ip-address { mask | mask-length }
mpls
quit
bgp { as-number-plain | as-number-dot }
peer ipv4-address label-route-capability
In the Option C solution, establish an inter-AS VPN LSP. The related PEs and ASBRs exchange public network routes with the MPLS labels.
The ASBR establishes a common EBGP peer relationship with the remote ASBR to switch labeled IPv4 routes.
The public network routes with the MPLS labels are advertised by the MP-BGP. Based on RFC 3107 (Carrying Label Information in BGP-4), the label mapping information of a route is carried by advertising BGP updates. This feature is implemented through BGP extension attributes, which requires BGP peers to process the labeled IPv4 routes.
By default, BGP peers cannot process labeled IPv4 routes.
peer ipv4-address as-number { as-number-plain | as-number-dot }
peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]
Generally, one or multiple directly connected physical links exist between EBGP peers. If the directly connected physical link(s) are not available, run the peer ebgp-max-hop command to ensure that the TCP connection can be set up between the EBGP peers through multiple hops.
peer ipv4-address label-route-capability [ check-tunnel-reachable ]