|
Command or Action |
Purpose |
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode. |
|
router bgp autonomous-system-number
Example:
Router(config)# router bgp 65000
|
Enters router configuration mode for the specified routing process. |
|
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. |
|
|
bgp log-neighbor-changes
Example:
Router(config-router)# bgp log-neighbor-changes
|
Enables logging of BGP neighbor resets. |
|
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.
|
|
neighbor {ip-address| peer-group-name} update-source interface-type interface-number
Example:
Router(config-router)# neighbor 10.10.10.1 update-source loopback1
|
(Optional) Configures a router to select a specific source or interface to receive routing table updates.
- This example uses a loopback interface. The advantage to this configuration is that the loopback interface is not affected by the effects of a flapping interface.
|
|
Repeat Step 6 and Step 7 to configure other BGP neighbors
|
-- |
|
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.
|
|
neighbor {ip-address | peer-group-name} 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. |
|
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.
- In this example, an extended communities attribute is sent to the neighbor at 10.10.10.1.
|
|
Repeat Step 10 and Step 11 to activate other BGP neighbors under an L2VPN address family.
|
-- |
|
exit-address-family
Example:
Router(config-router-af)# exit-address-family
|
Exits address family configuration mode and returns to router configuration mode. |
|
exit
Example:
Router(config-router)# exit
|
Exits router configuration mode. |
|
exit
Example:
Router(config)# exit
|
Exits privileged EXEC mode. |
|
show vfi
Example:
Router# show vfi
|
(Optional) Displays information about the configured VFI instances. |
|
show ip bgp l2vpn vpls {all | rd vpn-rd}
Example:
Router# show ip bgp l2vpn vpls all
|
(Optional) Displays information about the Layer2 VPN VPLS address family. |