MPLS Layer 3 VPN Setup Guide
MPLS Layer 3 VPN Setup Guide
This chapter describes how to configure Multiprotocol Label Switching (MPLS) Layer 3 virtual private
networks (VPNs) on Cisco Nexus 9508 switches.
• Information About MPLS Layer 3 VPNs, on page 1
• Prerequisites for MPLS Layer 3 VPNs, on page 5
• Guidelines and Limitations for MPLS Layer 3 VPNs, on page 5
• Default Settings for MPLS Layer 3 VPNs, on page 6
• Configuring MPLS Layer 3 VPNs, on page 6
• Provider edge (PE) router—A router that attaches the VPN label to incoming packets that are based on
the interface or subinterface on which they are received. A PE router attaches directly to a CE router.
• Customer edge (CE) router—An edge router on the network of the provider that connects to the PE router
on the network. A CE router must interface with a PE router.
A one-to-one relationship does not necessarily exist between customer sites and VPNs. A site can be a member
of multiple VPNs. However, a site can associate with only one VRF. A customer-site VRF contains all the
routes that are available to the site from the VPNs of which it is a member.
Hub-and-Spoke Topology
A hub-and-spoke topology prevents local connectivity between subscribers at the spoke provider edge (PE)
routers and ensures that a hub site provides subscriber connectivity. Any sites that connect to the same PE
router must forward intersite traffic using the hub site. This topology ensures that the routing at the spoke
sites moves from the access-side interface to the network-side interface or from the network-side interface to
the access-side interface but never from the access-side interface to the access-side interface. A hub-and-spoke
topology allows you to maintain access restrictions between sites.
A hub-and-spoke topology prevents situations where the PE router locally switches the spokes without passing
the traffic through the hub site. This topology prevents subscribers from directly connecting to each other. A
hub-and-spoke topology does not require one VRF for each spoke.
Figure 2: Hub-and-Spoke Topology
As shown in the figure, a hub-and-spoke topology is typically set up with a hub PE that is configured with
two VRFs:
• VRF 2hub with a dedicated link connected to the hub customer edge (CE)
• VRF 2spokes with another dedicated link connected to the hub CE.
Interior Gateway Protocol (IGP) or external BGP (eBGP) sessions are usually set up through the hub PE-CE
links. The VRF 2hub imports all the exported route targets from all the spoke PEs. The hub CE learns all
routes from the spoke sites and readvertises them back to the VRF 2spoke of the hub PE. The VRF 2spoke
exports all these routes to the spoke PEs.
If you use eBGP between the hub PE and hub CE, you must allow duplicate autonomous system (AS) numbers
in the path which is normally prohibited. You can configure the router to allow this duplicate AS number at
the neighbor of VRF 2spokes of the hub PE and also for VPN address family neighbors at all the spoke PEs.
In addition, you must disable the peer AS number check at the hub CE when distributing routes to the neighbor
at VRF 2spokes of the hub PE.
The figure below shows an example of how VPN client sites that run OSPF can connect over an MPLS VPN
backbone.
When you use OSPF to connect PE and CE devices, all routing information learned from a VPN site is placed
in the VPN routing and forwarding (VRF) instance that is associated with the incoming interface. The PE
devices that attach to the VPN use the Border Gateway Protocol (BGP) to distribute VPN routes to each other.
A CE device can learn the routes to other sites in the VPN by peering with its attached PE device. The MPLS
VPN super backbone provides an additional level of routing hierarchy to interconnect the VPN sites that are
running OSPF.
When OSPF routes are propagated over the MPLS VPN backbone, additional information about the prefix
in the form of BGP extended communities (route type, domain ID extended communities) is appended to the
BGP update. This community information is used by the receiving PE device to decide the type of link-state
advertisement (LSA) to be generated when the BGP route is redistributed to the OSPF PE-CE process. In this
way, internal OSPF routes that belong to the same VPN and are advertised over the VPN backbone are seen
as interarea routes on the remote sites.
• The BGP minimum route advertisement interval (MRAI) value for all iBGP and eBGP sessions is zero
and is not configurable.
• In a high scale setup with many BGP routes getting redistributed into EIGRP, modify the EIGRP signal
timer to ensure that the EIGRP convergence time is higher than the BGP convergence time. This process
allows all the BGP routes to be redistributed into EIGRP, before EIGRP signals convergence.
• When OSPF is used as a protocol between PE and CE devices, the OSPF metric is preserved when routes
are advertised over the VPN backbone. The metric is used on the remote PE devices to select the correct
route. Do not modify the metric value when OSPF is redistributed to BGP and when BGP is redistributed
to OSPF. If you modify the metric value, routing loops might occur.
Parameters Default
The Cisco NX-OS implementation of domain IDs and domain tags complies with RFC 4577.
Note The OSPF primary and secondary domain_IDs and the domain tag are available only when MPLS L3VPN
feature is enabled.
Procedure
Step 3 vrf vrf-name Enter the specific VRF instance for OSPF. The
VRF name is an alphanumeric string from 1
Example:
through 32 characters that identifies the VRF.
switch-1(config-router)# vrf pubstest
switch-1(config-router-vrf)#
Step 4 ospf domain-tag as-number Sets the domain tag. The domain tag is an
alphanumeric string from 0 through
Example:
2147483647 that identifies the AS number.
switch-1(config-router-vrf)# domain-tag
9999
nxosv2(config-router-vrf)#
Procedure
Step 3 vrf vrf-name Enter the specific VRF instance for OSPF. The
VRF name is an alphanumeric string from 1
Example:
through 32 characters that identifies the VRF.
switch-1(config-router)# vrf pubstest
switch-1(config-router-vrf)#
Step 4 domain-id { id | type domain-type value value Sets the domain_ID and additional parameters:
| Null }
• id specifies the domain ID in dotted
Example: decimal notation, for example, 1.2.3.4
switch-1(config-router-vrf)# domain-id
19.0.2.0
• type specifies the domain type in four-byte
notation, for example, 0005.
• value specifies the domain value in 6 bytes
of hexadecimal notation, for example,
0x0005.
Procedure
Step 3 vrf vrf-name Enters the specific VRF instance for OSPF. The
VRF name is an alphanumeric string from 1
Example:
through 32 characters that identifies the VRF.
switch-1(config-router)# vrf pubstest
switch-1(config-router-vrf)#
Step 4 domain-id { id | type domain-type value value Sets the domain_ID for the autonomous system.
| Null }
Example:
switch-1(config-router-vrf)# domain-id
19.0.2.0
Note MPLS VPN nonstop forwarding and graceful restart are supported on select
routers and Cisco NX-OS releases. You need to make sure that graceful restart
for BGP and LDP is enabled.
Procedure
Step 6 router bgp as - number Configures a BGP routing process and enters
router configuration mode. The as-number
Example:
argument indicates the number of an
switch(config)# router bgp 1.1 autonomous system that identifies the router
to other BGP routers and tags the routing
information. The AS number can be a 16-bit
integer or a 32-bit integer in the form of a
higher 16-bit decimal number and a lower
16-bit decimal number in xx.xx format.
Step 7 router-id ip-address (Optional) Configures the BGP router ID. This
IP address identifies this BGP speaker. This
Example:
command triggers an automatic notification
switch(config-router)# router-id and session reset for the BGP neighbor
192.0.2.255
sessions.
Step 8 neighbor ip-address remote-as Adds an entry to the iBGP neighbor table. The
as-number ip-address argument specifies the IP address
of the neighbor in dotted decimal notation.
Example:
switch(config-router)# neighbor
209.165.201.1 remote-as 1.1
switch(config-router-neighbor)#
Step 9 address-family { vpnv4 | vpnv6 } unicast Enters address family configuration mode for
configuring routing sessions, such as BGP,
Example:
that uses standard VPNv4 or VPNv6 address
switch(config-router-neighbor)# prefixes.
address-family vpnv4 unicast
switch(config-router-neighbor-af)#
Step 11 show bgp { vpnv4 | vpnv6 } unicast (Optional) Displays information about BGP
neighbors neighbors.
Example:
switch(config-router-neighbor-af)# show
bgp vpnv4 unicast neighbors
Procedure
Step 4 feature-set mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
switch(config)# feature-set mpls l3vpn
switch(config)#
Step 5 vrf context vrf-name Defines the VPN routing instance by assigning
a VRF name and enters VRF configuration
Example:
mode. The vrf-name argument is any
switch(config)# vrf context vpn1 case-sensitive, alphanumeric string up to 32
switch(config-vrf)# characters.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af-ipv4)#
Step 9 maximum routes max-routes [ threshold (Optional) Configures the maximum number
value ] [ reinstall ] of routes that can be stored in the VRF route
table. The max-routes range is from 1 to
Example:
4294967295. The threshold value range is from
switch(config-vrf-af-ipv4)# maximum 1 to 100.
routes 10000
Step 10 import [ vrf default max-prefix ] map (Optional) Configures an import policy for a
route-map VRF to import prefixes from the default VRF
as follows:
Example:
Procedure
Step 2 interface type number Specifies the interface to configure and enters
interface configuration mode as follows:
Example:
switch(config)# interface Ethernet 5/0 • The type argument specifies the type of
interface to be configured.
switch(config-if)#
• The number argument specifies the port,
connector, or interface card number.
Step 3 vrf member vrf-name Associates a VRF with the specified interface
or subinterface. The vrf-name argument is the
Example:
name assigned to a VRF.
switch(config-if)# vrf member vpn1
Step 4 show vrf vrf-name interface (Optional) Displays information about interfaces
associated with a VRF. The vrf-name argument
Example:
Procedure
Step 2 vrf context vrf-name Defines the VPN routing instance by assigning
a VRF name and enters VRF configuration
Example:
mode. The vrf-name argument is any
switch(config)# vrf context vpn1 case-sensitive, alphanumeric string up to 32
switch(config-vrf)# characters.
Step 3 { ip ipv6 } route prefix nexthop Defines static route parameters for every
PE-to-CE session. The prefix and nexthop are
Example:
as follows:
switch(config-vrf)# ip route
192.0.2.1/28 ethernet 2/1 • IPv4—in dotted decimal notation
• IPv6—in hex format.
Step 4 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af)#
switch(config)#
switch(config--router-vrf)#
Step 8 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af)#
Step 9 redistribute static route-map map-name Redistributes static routes into BGP.
Example: The map-name can be any case-sensitive,
switch(config-router-vrf-af)# alphanumeric string up to 63 characters.
redistribute static route-map StaticMap
Step 10 redistribute direct route-map map-name Redistributes directly connected routes into
BGP.
Example:
switch(config-router-vrf-af)# The map-name can be any case-sensitive,
redistribute direct route-map StaticMap alphanumeric string up to 63 characters.
Step 11 show { ipv4 | ipv6 } route vrf vrf-name (Optional) Displays information about routes.
Example: The vrf-name argument is any case-sensitive,
switch(config-router-vrf-af)# show ip alphanumeric string up to 32 characters.
ipv4 route vrf vpn1
Procedure
switch(config)#
Step 3 router bgp as - number Configures a BGP routing process and enters
router configuration mode.
Example:
switch(config)# router bgp 1.1 The as-number argument indicates the number
of an autonomous system that identifies the
switch(config-router)# router to other BGP routers and tags the routing
information passed along. The AS number can
be a 16-bit integer or a 32-bit integer in the form
of a higher 16-bit decimal number and a lower
16-bit decimal number in xx.xx format.
switch(config--router-vrf)#
Step 5 neighbor ip-addressremote-as as-number Adds an entry to the iBGP neighbor table. The
ip-address argument specifies the IP address of
Example:
the neighbor in dotted decimal notation. The
switch(config-router)# neighbor as-number argument specifies the autonomous
209.165.201.1 remote-as 1.1
system to which the neighbor belongs.
switch(config-router-neighbor)#
Step 6 address-family { ipv4 | ipv6 } unicast Enters address family configuration mode for
configuring routing sessions, such as BGP, that
Example:
use standard IPv4 or IPv6 address prefixes.
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af)#
Step 7 show bgp { vpnv4 | vpnv6 } unicast neighbors (Optional) Displays information about BGP
vrf vrf-name neighbors. The vrf-name argument is any
case-sensitive alphanumeric string up to 32
Example:
characters.
switch(config-router-neighbor-af)# show
bgp vpnv4 unicast neighbors
Procedure
switch(config)#
Step 3 router rip instance-tag Enables RIP and enters router configuration
mode.
Example:
switch(config)# router rip Test1 The instance-tag can be any case-sensitive,
alphanumeric string up to 20 characters.
switch(config--router-vrf)#
Step 5 address-family ipv4 unicast Specifies the address family type and enters
address family configuration mode.
Example:
switch(config-router-vrf)# address-family
ipv4 unicast
switch(config-router-vrf-af)#
Step 6 redistribute { bgp as | direct | { egrip | ospf | Redistributes routes from one routing domain
rip } instance-tag | static } route-map into another routing domain.
map-name vrf-name
The as number can be a 16-bit integer or a
Example: 32-bit integer in the form of a higher 16-bit
switch(config-router-vrf-af)# show ip decimal number and a lower 16-bit decimal
rip vrf vpn1 number in xx.xx format. The instance-tag can
Step 7 show ip rip vrf vrf-name (Optional) Displays information about RIP.
Example: The vrf-name argument is any case-sensitive,
switch(config-router-vrf-af)# show ip alphanumeric string up to 32 characters.
rip vrf vpn1
Procedure
switch(config)#
Step 3 router ospf instance-tag Enables OSPF and enters router configuration
mode.
Example:
switch(config)# router ospf Test1 The instance-tag can be any case-sensitive,
alphanumeric string up to 20 characters.
switch(config--router-vrf)#
Step 5 area area-id sham-link source-address (Optional) Configures the sham link on the PE
destination-address interface within a specified OSPF area and
with the loopback interfaces specified by the
Example:
IP addresses as endpoints.
switch(config-router-vrf)# area 1
sham-link 10.2.1.1 10.2.1.2
Step 6 address-family { ipv4 | ipv6 } unicast Specifies the address family type and enters
address family configuration mode.
Example:
switch(config-router)# address-family
ipv4 unicast
switch(config-router-vrf-af)#
Step 7 redistribute { bgp as | direct | { egrip | ospf Redistributes BGP into the EIGRP.
| rip } instance-tag | static } route-map
The autonomous system number of the BGP
map-name
network is configured in this step. BGP must
Example: be redistributed into EIGRP for the CE site to
switch(config-router-vrf-af)# accept the BGP routes that carry the EIGRP
redistribute bgp 1.0 route-map BGPMap information. A metric must also be specified
for the BGP network.
The map-name can be any case-sensitive,
alphanumeric string up to 63 characters.
Step 9 show ip egrip vrf vrf-name (Optional) Displays information about EIGRP
in this VRF.
Example:
switch(config-router-vrf-af)# show ipv4 The vrf-name can be any case-sensitive,
eigrp vrf vpn1 alphanumeric string up to 32 characters
Procedure
Step 3 router eigrp instance-tag Configures an EIGRP instance and enters router
configuration mode.
Example:
switch(config)# router eigrp Test1 The instance-tag can be any case-sensitive,
alphanumeric string up to 20 characters.
Step 6 redistribute bgp as-number route-map Redistributes routes from one routing domain
map-name into another routing domain.
Example: The as number can be a 16-bit integer or a
switch(config-router-vrf-af)# 32-bit integer in the form of a higher 16-bit
redistribute bgp 235354 route-map mtest1 decimal number and a lower 16-bit decimal
number in xx.xx format. The instance-tag can
be any case-sensitive alphanumeric string up to
20 characters
Step 7 show ip ospf instance-tag vrf vrf-name (Optional) Displays information about OSPF.
Example:
switch(config-router-vrf-af)# show ip
rip vrf vpn1
Procedure
Step 3 router bgp instance-tag Configures a BGP routing process and enters
router configuration mode. The as-number
Example:
argument indicates the number of an
switch(config)# router bgp 1.1 autonomous system that identifies the router
switch(config-router)#
to other BGP routers and tags the routing
information passed along. The AS number can
be a 16-bit integer or a 32-bit integer in the
form of a higher 16-bit decimal number and a
lower 16-bit decimal number in xx.xx format.
Step 4 router id ip-address (Optional) Configures the BGP router ID. This
IP address identifies this BGP speaker. This
Example:
command triggers an automatic notification
switch(config-router)# router-id and session reset for the BGP neighbor
192.0.2.255 1
switch(config-router)# sessions.
Step 5 router id ip-address remote-as as-number Adds an entry to the BGP or multiprotocol
BGP neighbor table. The ip-address argument
Example:
specifies the IP address of the neighbor in
switch(config-router)# neighbor dotted decimal notation. The as-number
209.165.201.1 remote-as 1.2
switch(config-router-neighbor)# argument specifies the autonomous system to
which the neighbor belongs.
Step 10 address-family { ipv4 | ipv6 } unicast Enters address family configuration mode for
configuring routing sessions that use standard
Example:
IPv4 or IPv6 address prefixes.
switch(config-router-vrf)#
address-family ipv4 unicast
switch(config-router-vrf-af)#
Step 11 redistribute { direct | { egrip | ospfv3 | Redistributes routes from one routing domain
ospfv3 |rip } instance-tag | static } into another routing domain. The as number
route-map map-name can be a 16-bit integer or a 32-bit integer in
the form of a higher 16-bit decimal number
Example:
and a lower 16-bit decimal number in xx.xx
switch(config-router-af-vrf)# format. The instance-tag can be any
redistribute eigrp Test2 route-map
EigrpMap case-sensitive, alphanumeric string up to 20
characters. The map-name can be any
case-sensitive alphanumeric string up to 63
characters.
Step 12 show bgp { ipv4 | ipv6 } unicast vrf vrf-name (Optional) Displays information about BGP.
The vrf-name argument is any case-sensitive,
Example:
alphanumeric string up to 32 characters.
switch(config-router--vrf-af)# show bgp
ipv4 unicast vrf vpn1vpn1
Procedure
Step 4 feature-set mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
switch(config)# feature-set mpls l3vpn
switch(config)#
Step 5 vrf context vrf-hub Defines the VPN routing instance for the PE
hub by assigning a VRF name and enters VRF
Example:
configuration mode. The vrf-hub argument is
switch(config)# vrf context 2hub any case-sensitive alphanumeric string up to
switch(config-vrf)# 32 characters.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf-af-ipv4)#
Step 9 vrf context vrf-spoke Defines the VPN routing instance for the PE
spoke by assigning a VRF name and enters
Example:
VRF configuration mode. The vrf-spoke
switch(config-vrf-af-ipv4)# vrf context argument is any case-sensitive, alphanumeric
2spokes
string up to 32 characters.
switch(config-vrf)#
Step 10 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af-ipv4)#
Step 12 show running-config vrf vrf-name (Optional) Displays the running configuration
for the VRF.
Example:
switch(config-vrf-af-ipv4)# show The vrf-name argument is any case-sensitive,
running-config vrf 2spokes alphanumeric string up to 32 characters.
.
Note If all CE sites are using the same BGP AS number, you must perform the following tasks:
• Configure either the BGP as-override command at the PE (hub) or the allowas-in command at the
receiving CE router.
• To advertise BGP routes learned from one ASN back to the same ASN, configure the
disable-peer-as-check command at the PE router to prevent loopback.
Procedure
Step 3 feature mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
switch(config)# feature mpls l3vpn
Step 5 router bgp as - number Configures a BGP routing process and enters
router configuration mode.
Example:
switch(config)# router bgp 1.1 The as-number argument indicates the number
switch(config-router)# of an autonomous system that identifies the
router to other BGP routers and tags the
routing information passed along. The AS
number can be a 16-bit integer or a 32-bit
integer in the form of a higher 16-bit decimal
number and a lower 16-bit decimal number in
xx.xx format.
Step 6 neighbor ip-address remote-as Adds an entry to the iBGP neighbor table.
as-number
• The ip-address argument specifies the IP
Example: address of the neighbor in dotted decimal
switch(config-router)# neighbor notation.
209.165.201.1 remote-as 1.2
switch(config-router-neighbor)# • The as-number argument specifies the
autonomous system to which the neighbor
belongs.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IP address family type and enters
address family configuration mode.
Example:
switch(config-router-vrf-neighbor)#
address-family ipv4 unicast
switch(config-router-neighbor-af)#
Step 11 address-family { ipv4 | ipv6 } unicast Specifies the IP address family type and enters
address family configuration mode.
Example:
switch(config-router-vrf-neighbor)#
address-family ipv4 unicast
switch(config-router--vrf-neighbor-af)#
Step 14 neighbor ip-address remote-as as-number Adds an entry to the BGP or multiprotocol
BGP neighbor table for this VRF.
Example:
switch(config-router-vrf)# neighbor • The ip-address argument specifies the IP
33.0.0.33 1 remote-as 150 address of the neighbor in dotted decimal
switch(config-router-vrf-neighbor)# notation.
• The as-number argument specifies the
autonomous system to which the neighbor
belongs.
Step 17 show running-config bgp vrf-name (Optional) Displays the running configuration
for BGP.
Example:
switch(config-router-vrf-neighbor-af)#
show running-config bgp
Note If all CE sites are using the same BGP AS number, you must perform the following tasks:
• Configure either the as-override command at the PE (hub) or the allowas-in command at the receiving
CE router.
• Configure the disable-peer-as-check command at the CE router.
• To advertise BGP routes learned from one ASN back to the same ASN, configure the disable-peer-as-check
command at the PE router to prevent loopback.
Procedure
Step 3 feature mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
switch(config)# feature mpls l3vpn
Step 5 router bgp as - number Configures a BGP routing process and enters
router configuration mode.
Example:
switch(config)# router bgp 1.1 The as-number argument indicates the number
switch(config-router)# of an autonomous system that identifies the
router to other BGP routers and tags the
routing information passed along. The AS
number can be a 16-bit integer or a 32-bit
integer in the form of a higher 16-bit decimal
number and a lower 16-bit decimal number in
xx.xx format.
Step 6 neighbor ip-addressremote-as as-number Adds an entry to the iBGP neighbor table.
Example: • The ip-address argument specifies the IP
switch(config-router)# neighbor address of the neighbor in dotted decimal
209.165.201.1 remote-as 1.2 notation.
switch(config-router-neighbor)# • The as-number argument specifies the
autonomous system to which the neighbor
belongs.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IP address family type and enters
address family configuration mode.
Example:
switch(config-router-vrf-neighbor)#
address-family ipv4 unicast
switch(config-router-neighbor-af)#
Step 11 address-family { ipv4 | ipv6 } unicast Specifies the IP address family type and enters
address family configuration mode.
Example:
switch(config-router-vrf-neighbor)#
address-family ipv4 unicast
switch(config-router--vrf-neighbor-af)#
Step 17 show running-config bgp vrf-name (Optional) Displays the running configuration
for BGP.
Example:
switch(config-router-vrf-neighbor-af)#
show running-config bgp
Procedure
Step 4 feature-set mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
Step 5 vrf context vrf-spoke Defines the VPN routing instance for the PE
spoke by assigning a VRF name and enters
Example:
VRF configuration mode. The vrf-spoke
switch(config)# vrf context spoke argument is any case-sensitive, alphanumeric
switch(config-vrf)# string up to 32 characters.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 address family type and
enters address family configuration mode.
Example:
switch(config-vrf)# address-family ipv4
unicast
switch(config-vrf-af-ipv4)#
Note If all CE sites are using the same BGP AS number, you must perform the following tasks:
• Configure the allowas-in command at the perceiving spoke router.
Procedure
Step 3 feature mpls l3vpn Enables the MPLS Layer 3 VPN feature.
Example:
switch(config)# feature mpls l3vpn
Step 5 router bgp as - number Configures a BGP routing process and enters
router configuration mode.
Example:
Step 6 neighbor ip-addressremote-as as-number Adds an entry to the iBGP neighbor table.
Example: • The ip-address argument specifies the IP
switch(config-router)# neighbor address of the neighbor in dotted decimal
63.63.0.63 remote-as 100 notation.
switch(config-router-neighbor)#
• The as-number argument specifies the
autonomous system to which the neighbor
belongs.
Step 7 address-family { ipv4 | ipv6 } unicast Specifies the IPv4 or IPv6 address family type
and enters address family configuration mode.
Example:
switch(config-router-vrf-neighbor)#
address-family ipv4 unicast
switch(config-router-neighbor-af)#
Procedure
Step 3 hardware profile [ vxlan | mpls] module all Enables MPLS on all the switch modules. .
Example:
switch(config)# hardware profile mpls
module all
Step 4 show hardware profile module [ all | number] Displays the hardware profile of all the modules
or specific module.
Example:
switch(config)# show hardware profile
module all
switch(config)#