June 30, 2006 Chapter 7: Second Level Commands
SG1-UM-8500-03 7-65
Example 1: create mpls L2 VPN based on Martini draft for redirection
Example 2: create mpls L2 VPN based on Martini draft for ternination
Using the no mpls l2transport interface command
This command detects an MPLS l2vpn interface based on Martini.
Usage
no mpls l2transport interface <destination> <vc-id>
Parameter(s)
<destination>
This specifies the LDP IP address of the remote PE; it should be a valid IP address.
<vc-id>
This assigns a VC ID to the virtual circuit between the system and the remote PE.
Example: delete MPLS L2 VPN based on Martini draft
Using mpls l2transport route command
It redirects all interface traffic through MPLS l2vpn tunnel based on Martini. The maximum number of mpls
l2transport routes in the system is 2,000.
Usage
mpls l2transport route interface <Ethernet | VLAN> <slot>/<port number>/
[<sub-interface number>] <destination> <vc-id>
Parameter(s)
<slot number>
This is the SCC slot number; valid number range is 0 to 2.
<port number>
This is the SCC port number; valid number range is 1 to 3.
<sub-interface>
This is the SCC sub-interface number; valid number range is 2 to 4095.
<destination>
This specifies the LDP IP address of the remote PE; it should be a valid IP address.
Host(config)# mpls ip Ethernet 0\1
Host(config)# mpls l2transport interface 194.90.1.4 200
Host(config)# mpls ip Ethernet 0\1
Host(config)# mpls l2transport interface 194.90.1.4 200 type Ethernet
Host(config)# no mpls l2transport interface
Host(config)# no mpls l2transport interface 194.90.1.4 200
Host(config)# mpls l2transport route interface