H3C Technologies H3C S12500 Series Switches User Manual

Page 213

Advertising
background image

200

<L2_SwitchB> system-view

[L2_SwitchB] interface GigabitEthernet 4/0/2

[L2_SwitchB-GigabitEthernet4/0/2] port link-type trunk

[L2_SwitchB-GigabitEthernet4/0/2] port trunk permit vlan 100

# Configure VLAN 100 as the PVID of GigabitEthernet 4/0/2, enable QinQ on the port to add

outer VLAN tag 100 to the received packets.

[L2_SwitchB-GigabitEthernet4/0/2] port trunk pvid vlan 100

[L2_SwitchB-GigabitEthernet4/0/2] qinq enable

[L2_SwitchB-GigabitEthernet4/0/2] quit

# Configure GigabitEthernet 4/0/1 as a trunk port and assign the port to VLAN 100.

[L2_SwitchB] interface GigabitEthernet 4/0/1

[L2_SwitchB-GigabitEthernet4/0/1] port link-type trunk

[L2_SwitchB-GigabitEthernet4/0/1] port trunk permit vlan 100

4.

Configure Layer 3 Switch C:
# Create VLAN-interface 100 and assign an IP address to the interface.

<L3_SwitchC> system-view

[L3_SwitchC] vlan 100

[L3_SwitchC-vlan100] quit

[L3_SwitchC] interface vlan-interface 100

[L3_SwitchC-Vlan-interface100] ip address 1.1.1.11 255.255.255.0

# Configure VLAN-interface 100 to remove the outermost two layers of VLAN tags for packets
whose outermost VLAN tag is 100, and configure the interface to add inner VLAN tag 11, 12, or

13 to packets before sending them out.

[L3_SwitchC-Vlan-interface100] second-dot1q 11 to 13

[L3_SwitchC-Vlan-interface100] quit

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

[L3_SwitchC] interface GigabitEthernet 3/0/1

[L3_SwitchC-GigabitEthernet3/0/1] port link-type trunk

[L3_SwitchC-GigabitEthernet3/0/1] port trunk permit vlan 100

[L3_SwitchC-GigabitEthernet3/0/1] quit

# Create VLAN-interface 2 and assign an IP address to the interface.

[L3_SwitchC] vlan 2

[L3_SwitchC-vlan2] quit

[L3_SwitchC] interface vlan-interface 2

[L3_SwitchC-Vlan-interface2] ip address 1.1.2.11 255.255.255.0

[L3_SwitchC-Vlan-interface2] quit

# Assign GigabitEthernet 3/0/2 to VLAN 2.

[L3_SwitchC] interface GigabitEthernet 3/0/2

[L3_SwitchC-GigabitEthernet3/0/2] port access vlan 2

5.

Use the factory configuration of Layer 2 Switch D.

6.

Assign each server in the server group an IP address on the network segment 1.1.2.0/24 and
configure the gateway IP address as 1.1.2.11/24.

Advertising
This manual is related to the following products: