beautypg.com

Verifying the configuration, Configuring port-based vlan, Introduction to port-based vlan – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 28: Port link type

background image

18

[AC-vlan10] port gigabitethernet 1/0/2

[AC-vlan10] quit

# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.

[AC] interface vlan-interface 5

[AC-Vlan-interface5] ip address 192.168.0.10 24

[AC-Vlan-interface5] quit

# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.

[AC] interface vlan-interface 10

[AC-Vlan-interface10] ip address 192.168.1.20 24

[AC-Vlan-interface10] return

2.

Configure the default gateway of PC A as 192.168.0.10.

3.

Configure the default gateway of PC B as 192.168.1.20.

Verifying the configuration

1.

The PCs can ping each other.

2.

Display brief information about Layer 3 interfaces on the AC to verify the configuration.

display ip interface brief

*down: administratively down

(s): spoofing

Interface Physical Protocol IP Address Description

Vlan-interface5 up up 192.168.0.10 Vlan-inte...

Vlan-interface10 up up 192.168.1.20 Vlan-inte...

Configuring port-based VLAN

Introduction to port-based VLAN

Port-based VLANs group VLAN members by port. A port forwards traffic for a VLAN only after it is
assigned to the VLAN.

Port link type

You can configure the link type of a port as access, trunk, or hybrid. The link types use the following

VLAN tag handling methods:

An access port belongs to only one VLAN and sends traffic untagged. It is usually used to connect
a terminal device unable to recognize VLAN tagged-packets or when there is no need to separate

different VLAN members. As shown in

Figure 6

, Device A is connected to common PCs that cannot

recognize VLAN tagged-packets, and you must configure Device A's ports that connect to the PCs

as access ports.

A trunk port can carry multiple VLANs to receive and send traffic for them. Except traffic of the port
VLAN ID (PVID), traffic sent through a trunk port will be VLAN tagged. Usually, ports connecting

network devices are configured as trunk ports. As shown in

Figure 6

, Device A and Device B need

to transmit packets of VLAN 2 and VLAN 3, and you must configure the ports interconnecting

Device A and Device B as trunk ports and assign them to VLAN 2 and VLAN 3.

Like a trunk port, a hybrid port can carry multiple VLANs to receive and send traffic for them. Unlike
a trunk port, a hybrid port allows traffic of all VLANs to pass through VLAN untagged. Usually,

hybrid ports are configured to connect devices whose support for VLAN tagged-packets you are

uncertain about. As shown in

Figure 6

, Device C connects to a small-sized LAN in which some PCs