Step 1
|
enable
|
Enables
privileged EXEC mode.
|
Step 2
|
configure
terminal
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3
|
router
bgp
autonomous-system-number
Device(config)# router bgp 65000
|
Enters router
configuration mode for the specified routing process.
|
Step 4
|
no
bgp
default
ipv4-unicast
Device(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 using the
neighbor
remote-as router configuration command unless you
configure the
no
bgp
default
ipv4-unicast router configuration command before
configuring the
neighbor
remote-as command. Existing neighbor
configurations are not affected.
|
|
Step 5
|
bgp
log-neighbor-changes
Device(config-router)# bgp log-neighbor-changes
|
Enables logging
of BGP neighbor resets.
|
Step 6
|
neighbor
{ip-address
|
peer-group-name }
remote-as
autonomous-system-number
Device(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 device.
-
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 7
|
neighbor
{ip-address
|
peer-group-name }
update-source
interface-type
interface-number
Device(config-router)# neighbor 10.10.10.1 update-source loopback1
|
(Optional)
Configures a device to select a specific source or interface to receive routing
table updates.
|
Step 8
|
Repeat Steps
6 and 7 to configure other BGP neighbors.
|
|
Step 9
|
address-family
l2vpn
[vpls ]
Device(config-router)# address-family l2vpn vpls
|
Specifies the
L2VPN address family and enters address family configuration mode.
-
The
optional
vpls keyword
specifies that the VPLS endpoint provisioning information is to be distributed
to BGP peers.
-
In this
example, an L2VPN VPLS address family session is created.
|
Step 10
|
neighbor
{ip-address |
peer-group-name }
activate
Device(config-router-af)# neighbor 10.10.10.1 activate
|
Enables the
exchange of information with a BGP neighbor.
|
Step 11
|
neighbor
{ip-address |
peer-group-name }
send-community {both |
standard |
extended }
Device(config-router-af)# neighbor 10.10.10.1 send-community extended
|
Specifies
that a communities attribute should be sent to a BGP neighbor.
|
Step 12
|
Repeat Steps
10 and 11 to activate other BGP neighbors under an L2VPN address family.
|
|
Step 13
|
exit-address-family
Device(config-router-af)# exit-address-family
|
Exits address
family configuration mode and returns to router configuration mode.
|
Step 14
|
end
Device(config-router)# end
|
Exits router
configuration mode and returns to privileged EXEC mode.
|
Step 15
|
show
l2vpn
vfi
|
Displays
information about the Layer 2 VPN (L2VPN) virtual forwarding instances (VFI).
|
Step 16
|
show
ip
bgp
l2vpn
vpls
{all |
rd
route-distinguisher }
Device# show ip bgp l2vpn vpls all
|
Displays
information about the L2VPN VPLS address family.
|