17
# Configure GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets whose Layer 1 VLAN
ID is 100 and Layer 2 VLAN ID is 11, 12, or 13.
[Router-GigabitEthernet1/0/1.10] vlan-type dot1q vid 100 second-dot1q 11 to 13
# Enable GigabitEthernet 1/0/1.10 to transmit broadcasts and multicasts.
[Router-GigabitEthernet1/0/1.10] vlan-termination broadcast enable
[Router-GigabitEthernet1/0/1.10] quit
# Assign an IP address to GigabitEthernet 1/0/2.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] ip address 1.1.2.11 255.255.255.0
5.
Configure the server group:
# Assign each device in the server group an IP address on the network segment 1.1.2.0/24.
(Details not shown.)
# Specify 1.1.2.11/24 as the gateway IP address for the server group. (Details not shown.)
Verifying the configuration
# Verify that Host A, Host B, and Host C can ping the server group. (Details not shown.)
Configuration example for QinQ termination supporting
PPPoE server
Network requirements
As shown in
:
•
QinQ is enabled on GigabitEthernet 1/0/2 of Layer 2 Switch B.
•
The router acts as a PPPoE server. Hosts in different VLANs access the Internet through the
PPPoE server.
Configure QinQ termination, so that the hosts can access the Internet.
Figure 8 Network diagram
Configuration procedure
# Configure VLANs and QinQ termination. For the configuration procedure, see "
termination configuration example
." (Details not shown.)
Router
L2 Switch B
GE1/0/1.10
1.1.1.11/24
PPPoE server enabled
Service provider network
VLAN 100
Host A
1.1.1.1/24
Host B
1.1.1.2/24
Host C
1.1.1.3/24
VLAN 11
VLAN 12
VLAN 13
L2 Switch A
GE1/0/1
GE1/0/2
GE1/0/3
GE1/0/7
GE1/0/2
QinQ enabled
GE1/0/1
Ser2/1/0
WAN