D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 12 QinQ Configuration
12-29
12.3.2.4 Configuration Steps
z Configure Switch A
Step 1: Create provider VLAN 101 and VLAN 201 to distinguish the traffic of
different services
DES-7200#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
DES-7200(config)#vlan 101
DES-7200(config-vlan)#exit
DES-7200(config)#vlan 201
DES-7200(config-vlan)#exit
Step 2: On the downlink port of access switch, configure flexible QinQ for
adding outer VLAN Tag on the basis of C-Tag
DES-7200(config)#interface range gigabitEthernet 0/1-2
DES-7200(config-if-range)# switchport mode dot1q-tunnel
! Configure Gi 0/1 and Gi 0/2 as Tunnel ports
DES-7200(config-if-range)# switchport dot1q-tunnel allowed vlan add untagged
101,201
! Add provider VLAN 101 and VLAN 201 into the allowed VLAN list of Tunnel
port, and configure to strip the provider Tag when the peer packets return to the
Tunnel port.
DES-7200(config-if-range)# dot1q outer-vid 101 register inner-vid 101-200
! Configure to add the tag of vlan 101 (S-tag) to vlan 101-200 (C-tag) data
frames entering Tunnel port for transmission over the provider network
DES-7200(config-if-range)# dot1q outer-vid 201 register inner-vid 201-300
! Configure to add the tag of vlan 201 (S-tag) to vlan 201-300 (C-tag) data
frames entering Tunnel port for transmission over the provider network.
Step 3: Configure Uplink port
DES-7200(config)# interface gigabitEthernet 0/3
DES-7200(config-if-GigabitEthernet 0/3)#switchport mode uplink
Note
Outer Tag VLAN (including Native VLAN) shall be allowed on
Tunnel port, and packets of such VLAN shall be allowed to
pass the Internet-accessing interface. In this example, the
Native VLAN of Tunnel port is the default VLAN1, which is
allowed by default.