Ambiguous Dot1q termination configuration example

Network requirements

As shown in Figure 20, configure ambiguous Dot1q termination, so that hosts in different VLANs can communicate with the server group.

Figure 20: Network diagram

Configuration procedure

In this example, L2 switch B uses the factory configuration.

  1. Configure Host A, Host B, and Host C:

    # Assign 1.1.1.1/24, 1.1.1.2/24, and 1.1.1.3/24 to Host A, Host B, and Host C, respectively. (Details not shown.)

    # Specify 1.1.1.11/24 as the gateway IP address for the hosts. (Details not shown.)

  2. Configure Layer 2 Switch A:

    # Create VLAN 11.

    <L2_SwitchA> system-view
    [L2_SwitchA] vlan 11
    

    # Assign GigabitEthernet 2/1/1 to VLAN 11.

    [L2_SwitchA-vlan11] port gigabitethernet 2/1/1
    [L2_SwitchA-vlan11] quit
    

    # Create VLAN 12.

    [L2_SwitchA] vlan 12
    

    # Assign GigabitEthernet 2/1/2 to VLAN 12.

    [L2_SwitchA-vlan12] port gigabitethernet 2/1/2
    [L2_SwitchA-vlan12] quit
    

    # Create VLAN 13.

    [L2_SwitchA] vlan 13
    

    # Assign GigabitEthernet 2/1/3 to VLAN 13.

    [L2_SwitchA-vlan13] port gigabitethernet 2/1/3
    [L2_SwitchA-vlan13] quit
    

    # Configure GigabitEthernet 2/1/7 as a trunk port, and assign the port to VLANs 11 through 13.

    [L2_SwitchA] interface gigabitethernet 2/1/7
    [L2_SwitchA-GigabitEthernet2/1/7] port link-type trunk
    [L2_SwitchA-GigabitEthernet2/1/7] port trunk permit vlan 11 to 13
    
  3. Configure the device:

    # Create Ethernet subinterface GigabitEthernet 2/1/1.10, and assign an IP address to the subinterface.

    <Device> system-view
    [Device] interface gigabitethernet 2/1/1.10
    [Device-GigabitEthernet2/1/1.10] ip address 1.1.1.11 255.255.255.0
    

    # Enable Dot1q termination on GigabitEthernet 2/1/1.10 to terminate VLAN-tagged packets whose Layer 1 VLAN IDs are 11, 12, or 13.

    [Device-GigabitEthernet2/1/1.10] vlan-type dot1q vid 11 to 13
    

    # Enable GigabitEthernet 2/1/1.10 to transmit broadcasts and multicasts.

    [Device-GigabitEthernet2/1/1.10] vlan-termination broadcast enable
    [Device-GigabitEthernet2/1/1.10] quit
    

    # Assign an IP address to GigabitEthernet 2/1/2.

    [Device] interface gigabitethernet 2/1/2
    [Device-GigabitEthernet2/1/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.)