38   ESR Series Routers Operation Manual 
esr-1000(config)# interface gi1/0/1 
esr-1000(config-if-gi)# switchport forbidden default-vlan 
esr-1000(config-if-gi)# switchport general allowed vlan add 2,64,2000 tagged 
Configuration changes will take effect when the configuration is applied: 
esr-1000# commit 
Configuration has been successfully committed 
esr-1000# confirm 
 
Objective  3:  Configure  gi1/0/1  ports  for  packet  transmission  and  reception  in  VLAN  2,  VLAN  64, 
VLAN 2000 in trunk mode, configure gi1/0/2 port in access mode for VLAN 2 on ESR-100/ESR -200. 
 
Fig. 7.3—Network structure 
Solution: 
Create VLAN 2, VLAN 64, VLAN 2000 on ESR-100/ ESR-200: 
esr(config)# vlan 2,64,2000  
Specify VLAN 2, VLAN 64, VLAN 2000 for gi1/0/1 port: 
esr(config)# interface gi1/0/1 
esr(config-if-gi)# switchport forbidden default-vlan 
esr(config-if-gi)# switchport mode trunk 
esr(config-if-gi)# switchport trunk allowed vlan add 2,64,2000 
Specify VLAN2 to gi1/0/2 port: 
esr(config)# interface gi1/0/1 
esr(config-if-gi)# switchport access vlan 2 
Configuration changes will take effect when the configuration is applied: 
esr# commit 
Configuration has been successfully committed 
esr# confirm