beautypg.com

Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual

Page 263

background image

229

# Configure GigabitEthernet 1/0/3 as a trunk port, and assign the port to the translated VLANs.

[SwitchC-GigabitEthernet1/0/3] port link-type trunk

[SwitchC-GigabitEthernet1/0/3] port trunk permit vlan 501 to 503

# Configure GigabitEthernet 1/0/3 as a DHCP snooping trusted and ARP trusted port.

[SwitchC-GigabitEthernet1/0/3] dhcp snooping trust

[SwitchC-GigabitEthernet1/0/3] arp detection trust

[SwitchC-GigabitEthernet1/0/3] quit

4.

Configure Switch D:
# Create the translated VLANs.

system-view

[SwitchD] vlan 501 to 503

# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to the translated VLANs

501 through 503.

[SwitchD] interface gigabitethernet 1/0/1

[SwitchD-GigabitEthernet1/0/1] port link-type trunk

[SwitchD-GigabitEthernet1/0/1] port trunk permit vlan 501 to 503

[SwitchD-GigabitEthernet1/0/1] quit

Verifying the configuration

# Verify VLAN mapping information on the wiring-closet switches, for example, Switch A.

[SwitchA] display vlan mapping

Interface GigabitEthernet1/0/1:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

1 N/A 101 N/A

2 N/A 201 N/A

3 N/A 301 N/A

Interface GigabitEthernet1/0/2:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

1 N/A 102 N/A

2 N/A 202 N/A

3 N/A 302 N/A

# Verify VLAN mapping information on Switch C.

[SwitchC] display vlan mapping

Interface GigabitEthernet1/0/1:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

101-102 N/A 501 N/A

201-202 N/A 502 N/A

301-302 N/A 503 N/A

Interface GigabitEthernet1/0/2:

Outer VLAN Inner VLAN Translated Outer VLAN Translated Inner VLAN

103-104 N/A 501 N/A

203-204 N/A 502 N/A

303-304 N/A 503 N/A