Step 1
|
enable
|
Enables privileged EXEC mode.
|
Step 2
|
configure
terminal
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
interface
gigabitethernet
slot
/
subslot
/
port
.
[subinterface ]
Router(config)# interface GigabitEthernet1/0/0.200
|
Specifies the Gigabit Ethernet subinterface and enters interface configuration mode.
|
Step 4
|
encapsulation
dot1q
vlan-id
second-dot1q
{any | vlan-id [,vlan-id [-vlan-id ]]}
Router(config-if)# encapsulation dot1q 200 second-dot1q 1000-2000,3000,3500-4000
|
Defines the matching criteria to map Q-in-Q ingress frames on an interface to the appropriate service instance.
|
Step 5
|
interface
pseudowire
number
Router(config-if)# interface pseudowire 100
|
Specifies the pseudowire interface and enters interface configuration mode.
|
Step 6
|
encapsulation
mpls
Router(config-if)# encapsulation mpls
|
Specifies that Multiprotocol Label Switching (MPLS) is used as the data encapsulation method.
|
Step 7
|
neighbor
peer-address
vcid-value
Router(config-if)# neighbor 10.0.0.1 123
|
Specifies the peer IP address and virtual circuit (VC) ID value of the Layer 2 VPN (L2VPN) pseudowire.
|
Step 8
|
exit
|
Exits interface configuration mode.
|
Step 9
|
interface
gigabitethernet
slot
/
subslot
/
port
.
[subinterface ]
Router(config)# interface GigabitEthernet1/0/0.201
|
Specifies the next Gigabit Ethernet interface and enters interface configuration mode.
|
Step 10
|
encapsulation
dot1q
vlan-id
second-dot1q
{any | vlan-id [,vlan-id [-vlan-id ]]}
Router(config-if)# encapsulation dot1q 201 second-dot1q any
|
Defines the matching criteria to map Q-in-Q ingress frames on an interface to the appropriate service instance.
|
Step 11
|
interface
pseudowire
number
Router(config-if)# interface pseudowire 100
|
Specifies the pseudowire interface and enters interface configuration mode.
|
Step 12
|
encapsulation
mpls
Router(config-if)# encapsulation mpls
|
Specifies that Multiprotocol Label Switching (MPLS) is used as the data encapsulation method.
|
Step 13
|
neighbor
peer-address
vcid-value
Router(config-if)# neighbor 10.0.0.1 123
|
Specifies the peer IP address and virtual circuit (VC) ID value of the Layer 2 VPN (L2VPN) pseudowire.
|
Step 14
|
exit
|
Exits interface configuration mode.
|
Step 15
|
l2vpn xconnect
context
context-name
Router(config)# l2vpn xconnect context con1
|
Creates a Layer 2 VPN (L2VPN) cross connect context and enters xconnect configuration mode.
|
Step 16
|
member pseudowire
interface-number
Router(config-xconnect)# member pseudowire 100
|
Specifies a member pseudowire to form a Layer 2 VPN (L2VPN) cross connect.
|
Step 17
|
member gigabitethernet
interface-number
Router(config-xconnect)# member GigabitEthernet1/0/0.201
|
Specifies the location of the Gigabit Ethernet
member interface.
|
Step 18
|
end
Router(config-xconnect)# end
|
Exits to privileged EXEC mode.
|