
12
[L2_SwitchA] vlan 13
# Assign GigabitEthernet 1/0/3 to VLAN 13.
[L2_SwitchA-vlan13] port gigabitethernet 1/0/3
[L2_SwitchA-vlan13] quit
# Configure GigabitEthernet 1/0/7 as a trunk port, and assign the port to VLANs 11 through 13.
[L2_SwitchA] interface gigabitethernet 1/0/7
[L2_SwitchA-GigabitEthernet1/0/7] port link-type trunk
[L2_SwitchA-GigabitEthernet1/0/7] port trunk permit vlan 11 to 13
3.
Configure the device:
# Create Ethernet subinterface GigabitEthernet 1/0/1.10, and assign an IP address to the
subinterface.
<Device> system-view
[Device] interface gigabitethernet 1/0/1.10
[Device-GigabitEthernet1/0/1.10] ip address 1.1.1.11 255.255.255.0
# Enable Dot1q termination on GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets
whose Layer 1 VLAN IDs are 11, 12, or 13.
[Device-GigabitEthernet1/0/1.10] vlan-type dot1q vid 11 to 13
# Enable GigabitEthernet 1/0/1.10 to transmit broadcasts and multicasts.
[Device-GigabitEthernet1/0/1.10] vlan-termination broadcast enable
[Device-GigabitEthernet1/0/1.10] quit
# Configure an IP address for GigabitEthernet 1/0/2.
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] ip address 1.1.2.11 255.255.255.0
4.
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 device in the server group. (Details not shown.)
Configuration example for Dot1q termination supporting
PPPoE server
Network requirements
As shown in
, the router ac ts as a PPPoE s erver. Hosts in different VLANs access the
Internet through the PPPoE server.
Configure Dot1q termination so that hosts in different VLANs can access the Internet.