Appendix A Sample Configlets
ERS with 2:1 VLAN Translation
ERS with 2:1 VLAN Translation
Configuration
Configlets
•Service: L2VPN/Metro Ethernet
•Feature: ERS with VLAN 2:1 translation
•Device configuration:
–The
–The
–L2VPN
–C3750ME (FA1/0/5 – GI1/1/1)
|
| |
vlan 567 | vlan 779 | |
exit |
| exit |
! |
| ! |
interface FastEthernet1/0/5 | interface FastEthernet8/34 | |
no cdp enable | switchport trunk allowed vlan | |
no keepalive | ! | |
no ip address | interface Vlan779 | |
switchport | no ip address | |
switchport access vlan 567 | description L2VPN ERS 2 to 1 vlan | |
switchport mode | translation | |
switchport trunk allowed vlan none | xconnect 99.99.8.99 89033 encapsulation | |
switchport nonegotiate | mpls | |
no shutdown | ||
mac |
| |
! |
|
|
interface GigabitEthernet1/1/1 |
| |
no ip address |
| |
switchport trunk allowed vlan 1,123,567 |
| |
switchport vlan mapping |
| |
234 | 779 |
|
! |
|
|
mac |
| |
| ||
deny any host 0100.0ccc.cccc |
| |
deny any host 0100.0ccc.cccd |
| |
deny any host 0100.0ccd.cdd0 |
| |
deny any host 0180.c200.0000 |
| |
permit any any |
| |
|
|
|
Comments | • | VLAN translation is only for L2VPN |
| • In this case, the 2:1 VLAN translation occurs on the | |
|
| (uplink) port. |
| • | The customer VLAN 123 and the provider VLAN 234 (as part of Q inQ) are translated to a new |
|
| provider VLAN 779. |
|
| Cisco IP Solution Center Metro Ethernet and L2VPN User Guide, 4.2 |
|
|
|
|
|
| |||
|
|
|
|
| |
|
|
|
|