Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
l2
router-id
ip-address
Example:
Router(config)# l2 router-id 10.1.1.3
|
Specifies a router ID (in IP address format) for the PE router to use with VPLS autodiscovery pseudowires.
|
Step 4 |
l2
vfi
vfi-name
autodiscovery
Example:
Router(config)# l2 vfi customerA autodiscovery
|
Creates an L2 VFI, enables the VPLS PE router to automatically discover other PE routers that are part of the same VPLS domain, and enters L2 VFI autodiscovery configuration mode.
|
Step 5 |
vpn
id
vpn-id
Example:
Router(config-vfi)# vpn id 100
|
Specifies a VPN ID.
Use the same VPN ID for the PE routers that belong to the same VPN. Make sure that the VPN ID is unique for each VPN in the service provider network.
Use the
vpn-id argument to specify a number in the range from 1 to 4294967295.
In this example, a VPN ID of 100 is specified.
|
Step 6 |
vpls-id
vpls-id
Example:
Router(config-vfi)# vpls-id 65000:100
|
(Optional) Specifies a VPLS ID.
The VPLS ID is an identifier that is used to identify the VPLS domain. This command is optional because a default VPLS ID is automatically generated using the BGP autonomous system number and the VPN ID configured for the VFI. Only one VPLS ID can be configured per VFI, and the same VPLS ID cannot be configured in multiple VFIs on the same router.
In this example, a VPLS ID of 65000:100 is specified.
|
Step 7 |
exit
Example:
|
Exits L2 VFI autodiscovery configuration mode and returns to global configuration mode.
|
Step 8 | Repeat Step 4 through Step 6 to configure other L2 VFIs and associated VPN and VPLS IDs.
|
--
|
Step 9 |
router
bgp
autonomous-system-number
Example:
Router(config)# router bgp 65000
|
Enters router configuration mode for the specified routing process.
|
Step 10 |
no
bgp
default
ipv4-unicast
Example:
Router(config-router)# no bgp default ipv4-unicast
|
Disables the IPv4 unicast address family for the BGP routing process.
Note
| Routing information for the IPv4 unicast address family is advertised by default for each BGP routing session configured with the
neighbor
remote-as router configuration command unless you configure the
no
bgp
default
ipv4-unicastrouter configuration command before configuring the
neighbor
remote-as command. Existing neighbor configurations are not affected.
|
|
Step 11 |
bgp
log-neighbor-changes
Example:
Router(config-router)# bgp log-neighbor-changes
|
Enables logging of BGP neighbor resets.
|
Step 12 |
bgp
update-delay
seconds
Example:
Router(config-router)# bgp update-delay 1
|
Sets the maximum initial delay period before a BGP-speaking networking device sends its first updates.
|
Step 13 |
neighbor
{ip-address|
peer-group-name}
remote-as
autonomous-system-number
Example:
Router(config-router)# neighbor 10.10.10.1 remote-as 65000
|
Adds the IP address or peer group name of the neighbor in the specified autonomous system to the IPv4 multiprotocol BGP neighbor table of the local router.
If the
autonomous-system-number argument matches the autonomous system number specified in the
router
bgp command, the neighbor is an internal neighbor.
If the
autonomous-system-number argument does not match the autonomous system number specified in the
router
bgp command, the neighbor is an external neighbor.
In this example, the neighbor at 10.10.10.1 is an internal BGP neighbor.
|
Step 14 |
neighbor
{ip-address|
peer-group-name}
update-source
interface-type
interface-number
Example:
Router(config-router)# neighbor 10.10.10.1 update-source loopback 1
|
(Optional) Configures a router to select a specific source or interface to receive routing table updates.
|
Step 15 | Repeat Step 13 and Step 14 to configure other BGP neighbors.
|
--
|
Step 16 |
address-family
l2vpn
[vpls]
Example:
Router(config-router)# address-family l2vpn vpls
|
Specifies the L2VPN address family and enters address family configuration mode.
The optional
vpls keyword specifies that VPLS endpoint provisioning information is to be distributed to BGP peers.
In this example, an L2VPN VPLS address family session is created.
|
Step 17 |
neighbor
ip-address
activate
Example:
Router(config-router-af)# neighbor 10.10.10.1 activate
|
Enables the neighbor to exchange information for the L2VPN VPLS address family with the local router.
Note
| If you have configured a BGP peer group as a neighbor, you do not use this step. BGP peer groups are activated when a BGP parameter is configured. For example, the
neighbor
send-community command in the next step will automatically activate a peer group.
|
|
Step 18 |
neighbor
{ip-address|
peer-group-name}
send-community[both|
standard|
extended]
Example:
Router(config-router-af)# neighbor 10.10.10.1 send-community extended
|
Specifies that a communities attribute should be sent to a BGP neighbor.
|
Step 19 | Repeat Step 17 and Step 18 to activate other BGP neighbors under L2VPN address family.
|
--
|
Step 20 |
end
Example:
Router(config-router-af)# end
|
Exits address family configuration mode and returns to privileged EXEC mode.
|
Step 21 |
show
vfi
Example:
|
(Optional) Displays information about the configured VFI instances.
|
Step 22 |
show
ip
bgp
l2vpn
vpls
{all |
rd
vpn-rd}
Example:
Router# show ip bgp l2vpn vpls all
|
(Optional) Displays information about the L2 VPN VPLS address family.
|