Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual
Page 219

206
[SwitchA-GigabitEthernet2/0/2] quit
# Enable QinQ on downlink port GigabitEthernet 2/0/3.
[SwitchA] interface GigabitEthernet 2/0/3
[SwitchA-GigabitEthernet2/0/3] qinq enable
[SwitchA-GigabitEthernet2/0/3] quit
# Assign GigabitEthernet 2/0/2 and GigabitEthernet 2/0/3 to VLAN 100.
[SwitchA] vlan 100
[SwitchA-vlan100] port GigabitEthernet 2/0/2
[SwitchA-vlan100] port GigabitEthernet 2/0/3
4.
Configure Switch B:
# Add GigabitEthernet 2/0/2 to VLAN 10.
[SwitchB] vlan 10
[SwitchB-vlan10] port GigabitEthernet 2/0/2
[SwitchB-vlan10] quit
# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 10.
[SwitchB] interface GigabitEthernet 2/0/1
[SwitchB-GigabitEthernet2/0/1] port link-type trunk
[SwitchB-GigabitEthernet2/0/1] port trunk permit vlan 10
5.
Configure Switch C:
# Add GigabitEthernet 2/0/2 to VLAN 20.
[SwitchC] vlan 20
[SwitchC-vlan20] port GigabitEthernet 2/0/2
[SwitchC-vlan20] quit
# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 20.
[SwitchC] interface GigabitEthernet 2/0/1
[SwitchC-GigabitEthernet2/0/1] port link-type trunk
[SwitchC-GigabitEthernet2/0/1] port trunk permit vlan 20
Verifying the configuration
With the previous configuration, DHCP client A and DHCP client B can obtain their respective IP
addresses from the DHCP server. You can view information about the DHCP relay agent bindings on
Provider A by using the display dhcp relay security command.