Layer 2 VPN Model
AToM supports the following Layer 2 technologies over MPLS:
• Ethernet
• 802.1Q VLAN
• ATM AAL5 frames
• ATM cells
• Frame Relay
• PPP
• HDLC
Here Some example notes of :
• Implementing AToM for like to like circuits
• Implementing AToM for any to any circuits
• Local switching
Implementing AToM for Like to Like Circuits
Configuring AAL5 over MPLS
PE1(config)#interface ATM3/0.100 point-to-point
PE1(config-subif)# pvc 1/100 l2transport
PE1(cfg-if-atm-l2trans-pvc)# encapsulation aal5snap
PE2(config)#interface ATM3/0.100 point-to-point
PE2(config-subif)# pvc 1/100 l2transport
PE2(cfg-if-atm-l2trans-pvc)# encapsulation aal5snap
PE1(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.102 100 encapsulation mpls
PE2(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.101 100 encapsulation mpls
Configuring ATM Cell over MPLS
PE1(config)#interface ATM3/0.100 point-to-point
PE1(config-subif)# pvc 1/100 l2transport
PE1(cfg-if-atm-l2trans-pvc)# encapsulation aal0
PE2(config)#interface ATM3/0.100 point-to-point
PE2(config-subif)# pvc 1/100 l2transport
PE2(cfg-if-atm-l2trans-pvc)# encapsulation aal0
PE1(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.102 100 encapsulation mpls
PE2(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.101 100 encapsulation mpls
Ethernet over MPLS
Port mode:
PE1(config)#interface FastEthernet5/0
PE1(config-if)#xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)#interface FastEthernet5/0
PE2(config-if)#xconnect 10.10.10.101 100 encapsulation mpls
Vlan Mode:
PE1(config)#interface FastEthernet5/0.100
PE1(config-subif)# encapsulation dot1Q 100
PE1(config-subif)# no cdp enable
PE1(config-subif)# xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)#interface FastEthernet5/0.100
PE2(config-subif)# encapsulation dot1Q 100
PE2(config-subif)# no cdp enable
PE2(config-subif)# xconnect 10.10.10.101 100 encapsulation mpls
Configuring Ethernet over MPLS:
PE1(config)#vlan 100
PE1(config-vlan)#state active
PE1(config-vlan)#exit
PE1(config)#interface fastEthernet 4/1
PE1(config-if)#switchport
PE1(config-if)#switchport access vlan 100
PE1(config-if)#switchport mode access
PE1(config-if)#exit
PE1(config)#interface vlan 100
PE1(config-if)#xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)#vlan 100
PE2(config-vlan)#state active
PE2(config-vlan)#exit
PE2(config)#interface fastEthernet 4/1
PE2(config-if)#switchport
PE2(config-if)#switchport access vlan 100
PE2(config-if)#switchport mode access
PE2(config-if)#exit
PE2(config)#interface vlan 100
PE2(config-if)#xconnect 10.10.10.101 100 encapsulation mpls
Configuring Ethernet over MPLS—dot1q Mode
PE1(config)#vlan 10
PE1(config-vlan)#state active
PE1(config-vlan)#exit
PE1(config)#interface FastEthernet4/12
PE1(config-if)#switchport
PE1(config-if)# switchport access vlan 10
PE1(config-if)# switchport trunk encapsulation dot1q
PE1(config-if)# switchport trunk allowed vlan 100,200
PE1(config-if)# switchport mode dot1q-tunnel
PE1(config-if)#exit
PE1(config)#interface vlan 10
PE1(config-if)#xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)#vlan 10
PE2(config-vlan)#state active
PE2(config-vlan)#exit
PE2(config)#int fastEthernet 4/12
PE2(config-if)#switchport
PE2(config-if)# switchport trunk encapsulation dot1q
PE2(config-if)# switchport trunk allowed vlan 100,200
PE2(config-if)# switchport mode dot1q-tunnel
PE2(config-if)#exit
PE2(config)#interface vlan 10
PE2(config-if)#xconnect 10.10.10.101 100 encapsulation mpls
Configuring PPP over MPLS
PE1(config)# interface Serial2/1
PE1(config-if)#encapsulation ppp
PE1(config-if)# xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)# interface Serial2/1
PE2(config-if)#encapsulation ppp
PE2(config-if)# xconnect 10.10.10.102 100 encapsulation mpls
Configuring Frame Relay over MPLS—DLCI Mode
PE1(config)#frame-relay switching
PE1(config)#interface Serial2/1
PE1(config-if)# encapsulation frame-relay
PE1(config-if)# frame-relay intf-type dce
PE1(config-if)#exit
PE1(config)#connect FR Serial2/1 100 l2transport
PE1(config-fr-pw-switching)# xconnect 10.10.10.102 100 encapsulation mpls
PE2(config)#frame-relay switching
PE2(config)#interface Serial2/1
PE2(config-if)# encapsulation frame-relay
PE2(config-if)# frame-relay intf-type dce
PE2(config-if)#exit
PE2(config)#connect FR Serial2/1 100 l2transport
PE2(config-fr-pw-switching)# xconnect 10.10.10.101 100 encapsulation mpls
L2 VPN—Any to Any Interworking
Ethernet to VLAN Interworking
PE1(config)#pseudowire-class Eth-VLAN
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ethernet
PE2(config)#pseudowire-class VLAN-Eth
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking Ethernet
PE1(config)#interface Ethernet0/0
PE1(config-if)#xconnect 10.10.10.102 100 pw-class Eth-VLAN
PE2(config)#interface Ethernet0/0.10
PE2(config-subif)# encapsulation dot1Q 10
PE2(config-subif)# xconnect 10.10.10.101 100 pw-class VLAN-Eth
Frame Relay to AAL5 Interworking
PE1(config)#pseudowire-class AAL5-FR
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class FR-AAL5
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config-subif)#interface ATM6/0.100 point-to-point
PE1(config-subif)# pvc 1/100 l2transport
PE1(cfg-if-atm-l2trans-pvc)#encapsulation aal5snap
PE1(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.102 100 pw-class AAL5-FR
PE2(config)#frame-relay switching
PE2(config)#interface POS3/0
PE2(config-if)# no ip address
PE2(config-if)# encapsulation frame-relay
PE2(config-if)# clock source internal
PE2(config-if)# frame-relay intf-type dce
PE2(config-if)#connect FR POS3/0 100 l2transport
PE2(config-fr-pw-switching)#xconnect 10.10.10.101 100 pw-class FR-AAL5
Frame Relay to PPP Interworking
PE1(config)#pseudowire-class FR-PPP
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class PPP-FR
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config-if)#interface Serial1/0
PE1(config-if)#no ip address
PE1(config-if)#encapsulation frame-relay
PE1(config-if)#frame-relay intf-type dce
PE1(config-if)#exit
PE1(config)#connect FR Serial1/0 100 l2transport
PE1(config-fr-pw-switching)#xconnect 10.10.10.101 100 pw-class FR-PPP
PE2(config-if)#interface Serial1/0
PE2(config-subif)#encapsulation ppp
PE2(config-subif)#xconnect 10.10.10.102 100 pw-class PPP-FR
Frame Relay to VLAN Interworking
PE1(config)#pseudowire-class FR-VLAN
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class VLAN-FR
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config-pw-class)#interface Serial2/1
PE1(config-if)# no ip address
PE1(config-if)# encapsulation frame-relay
PE1(config-if)# frame-relay intf-type dce
PE1(config-if)#connect FR Serial2/1 100 l2transport
PE1(config-fr-pw-switching)#xconnect 10.10.10.101 100 pw-class FR-VLAN
PE2(config-pw-class)#interface Ethernet0/0.10
PE2(config-subif)# encapsulation dot1Q 10
PE2(config-subif)#xconnect 10.10.10.102 100 pw-class VLAN-FR
PE1(config)#pseudowire-class AAL5-VLAN
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class VLAN-AAL5
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config)#interface ATM3/0.100 point-to-point
PE1(config)#mtu 1500
PE1(config-subif)# pvc 1/100 l2transport
PE1(cfg-if-atm-l2trans-pvc)# encapsulation aal5snap
PE1(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.102 100 pw-class AAL5-VLAN
PE2(config)#interface FastEthernet5/0.100
PE2(config-subif)# encapsulation dot1Q 100
PE2(config-subif)# xconnect 10.10.10.102 100 pw-class VLAN-AAL5
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class VLAN-FR
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config-pw-class)#interface Serial2/1
PE1(config-if)# no ip address
PE1(config-if)# encapsulation frame-relay
PE1(config-if)# frame-relay intf-type dce
PE1(config-if)#connect FR Serial2/1 100 l2transport
PE1(config-fr-pw-switching)#xconnect 10.10.10.101 100 pw-class FR-VLAN
PE2(config-pw-class)#interface Ethernet0/0.10
PE2(config-subif)# encapsulation dot1Q 10
PE2(config-subif)#xconnect 10.10.10.102 100 pw-class VLAN-FR
AAL5 to VLAN Interworking
PE1(config)#pseudowire-class AAL5-VLAN
PE1(config-pw-class)# encapsulation mpls
PE1(config-pw-class)# interworking ip
PE2(config)#pseudowire-class VLAN-AAL5
PE2(config-pw-class)# encapsulation mpls
PE2(config-pw-class)# interworking ip
PE1(config)#interface ATM3/0.100 point-to-point
PE1(config)#mtu 1500
PE1(config-subif)# pvc 1/100 l2transport
PE1(cfg-if-atm-l2trans-pvc)# encapsulation aal5snap
PE1(cfg-if-atm-l2trans-pvc)#xconnect 10.10.10.102 100 pw-class AAL5-VLAN
PE2(config)#interface FastEthernet5/0.100
PE2(config-subif)# encapsulation dot1Q 100
PE2(config-subif)# xconnect 10.10.10.102 100 pw-class VLAN-AAL5
Local Switching
Configuring Frame Relay to Frame Relay Local Switching
PE1(config)#frame-relay switching
PE1(config)#interface Serial2/0
PE1(config-if)# no ip address
PE1(config-if)# encapsulation frame-relay
PE1(config-if)# frame-relay interface-dlci 100 switched
PE1(config-fr-dlci)# frame-relay intf-type dce
PE1(config-fr-dlci)# exit
PE1(config-if)#interface Serial2/2
PE1(config-if)# no ip addressPE1(config-if)# encapsulation frame-relay
PE1(config-if)# frame-relay interface-dlci 101 switched
PE1(config-fr-dlci)# frame-relay intf-type dce
PE1(config-fr-dlci)# exit
PE1(config)#connect FR Serial2/0 100 Serial2/2 101
Local Switching—Ethernet to Ethernet
PE1(config)# connect Ethernet fastEthernet 5/0 fastEthernet 1/
Local Switching—ATM to ATM
PE1(config-if)#pvc 1/100 l2transport
PE1(config-if)#exit
PE1(config)#interface atm 4/0
PE1(config-if)# pvc 1/100 l2transport
PE1(config-if)#exit
PE1(config)#connect ATM atm 3/0 1/100 atm 4/0 1/100
Local Switching—Ethernet to Frame Relay
PE1(config)#frame-relay switching
PE1(config-if)#interface Serial2/2
PE1(config-if)# no ip address
PE1(config-if)# encapsulation frame-relay
PE1(config-fr-dlci)# frame-relay intf-type dce
PE1(config-fr-dlci)# exit
PE1(config)# connect ETH-FR fastEthernet 5/0 s2/2 100 interworking ip
Source :MPLS Configuration on Cisco IOS Software
No comments:
Post a Comment