Configuration procedure, Configuring l2 switch, Configuring l3 switch – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 126: Configuring ac

Advertising
background image

116

Configuration procedure

Configuring L2 switch

# Create VLAN 1001.

<L2 switch> system-view

[L2 switch] vlan 1001

[L2 switch-vlan1001] quit

# Configure GigabitEthernet 1/0/1 as an access port, and configure the port to permit packets from
VLAN 1001 to pass through.

[L2 switch] interface GigabitEthernet 1/0/1

[L2 switch-GigabitEthernet1/0/1] port link-type access

[L2 switch-GigabitEthernet1/0/1] port access vlan 1001

[L2 switch-GigabitEthernet1/0/1] quit

# Configure GigabitEthernet 1/0/2 as a trunk port, and configure the port to send the packets from
VLAN 1001 with VLAN tags kept.

[L2 switch] interface GigabitEthernet 1/0/2

[L2 switch-GigabitEthernet1/0/2] port link-type trunk

[L2 switch-GigabitEthernet1/0/2] port trunk permit vlan 1001

[L2 switch-GigabitEthernet1/0/2] quit

Configuring L3 switch

# Create VLAN 100.

<L3 switch> system-view

[L3 switch] vlan 100

[L3 switch-vlan100] quit

# Configure GigabitEthernet 1/0/5 as an access port, configure the port to permit packets from VLAN
100 to pass through, and enable QinQ on the port.

[L3 switch] interface GigabitEthernet 1/0/5

[L3 switch-GigabitEthernet1/0/5] port link-type access

[L3 switch-GigabitEthernet1/0/5] port access vlan 100

[L3 switch-GigabitEthernet1/0/5] qinq enable

[L3 switch-GigabitEthernet1/0/5] quit

# Configure GigabitEthernet 1/0/6 as a trunk port, and configure the port to send the packets from

VLAN 100 with VLAN tags kept.

[L3 switch] interface GigabitEthernet 1/0/6

[L3 switch-GigabitEthernet1/0/6] port link-type trunk

[L3 switch-GigabitEthernet1/0/6] port trunk permit vlan 100

[L3 switch-GigabitEthernet1/0/6] quit

Configuring AC

# Create VLANs 100, 1001, 200, and 2001.

<AC> system-view

[AC] vlan 100

[AC-vlan100] vlan 1001

[AC-vlan1001] vlan 200

[AC-vlan200] vlan 2001

[AC-vlan2001] quit

Advertising