L2VPN Protocol-Based CLIs
The L2VPN Protocol-Based CLIs feature provides a set of processes and an improved infrastructure for developing and delivering Cisco IOS software on various Cisco platforms. This feature introduces new commands and modifies or replaces existing commands to achieve a consistent functionality across Cisco platforms and provide cross-Operating System (OS) support.
Configuration information on L2VPN Protocol-Based CLI can be found in the MPLS: Layer 2 Configuration Guide: http://www.cisco.com/en/US/docs/ios-xml/ios/mp_l2_vpns/configuration/xe-3s/l2vpn-prot-based.html
L2VPN Protocol-Based CLI Changes:
The following commands have been modified on the ME3600, ME3800 and ME3600X-24CX switches in Cisco IOS Release 15.3(2)S:
pseudowire-class name
bridge-domain vlan vlan id
The table below lists the legacy commands that will be replaced in future releases. From Cisco IOS Release 15.3(2)S both new and legacy commands will coexist until the legacy commands are deprecated in future releases
Table 51-1 Replacement Commands Introduced in Cisco IOS Release 15.3(2)S
|
Replacement Command Introduced in Cisco IOS Release 15.3(2)S
|
pseudowire-class pw name |
template type pseudowire pw name |
bridge-domain vlan vlan id |
bridge-domain vlan id |
CLI Comparison Examples
The following examples provide a comparison between two L2VPN configurations using existing (legacy) CLIs and the protocol-based CLIs introduced by the L2VPN Protocol-Based CLIs feature.
Legacy
neighbor 10.0.0.1 pw-class PW1
neighbor 10.0.0.2 pw-class PW1
New model–Topology
The following example displays the L2VPN configuration of the Cisco ME3600X-1 switch:
interface GigabitEthernet0/1
switchport trunk allowed vlan none
service instance 2001 ethernet
interface GigabitEthernet0/2
ip address 192.168.4.1 255.255.255.0
member GigabitEthernet0/1 service-instance 2001
member 2.2.2.2 encapsulation mpls
network 1.1.1.1 0.0.0.0 area 0
network 192.168.4.1 0.0.0.0 area 0
ip address 1.1.1.1 255.255.255.255
The following show command displays the status of the L2VPN configuration:
ME3600X-1# show mpls l2transport vc
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
VFI 2001 vfi 2.2.2.2 2001 UP
The following example displays the L2VPN configuration of the Cisco ME3600X-2 switch:
interface GigabitEthernet0/2
ip address 192.168.4.2 255.255.255.0
interface GigabitEthernet0/24
switchport trunk allowed vlan none
service instance 2001 ethernet
member GigabitEthernet0/24 service-instance 2001
member 1.1.1.1 encapsulation mpls
network 2.2.2.2 0.0.0.0 area 0
network 192.168.4.2 0.0.0.0 area 0
ip address 2.2.2.2 255.255.255.255
The following command displays the status of the L2VPN configuration:
ME3600X-2# show mpls l2transport vc
Local intf Local circuit Dest address VC ID Status
------------- -------------------------- --------------- ---------- ----------
VFI 2001 vfi 1.1.1.1 2001 UP