
8-11
Figure 8-4
Network diagram for port-based VLAN configuration
Configuration procedure
1) Configure
AP
# Create VLAN 2, VLAN 6 through VLAN 50, and VLAN 100.
<AP> system-view
[AP] vlan 2
[AP-vlan2] quit
[AP] vlan 100
[AP-vlan100] vlan 6 to 50
Please wait... Done.
# Enter Ethernet 1/0/1 interface view.
[AP] interface Ethernet 1/0/1
# Configure Ethernet 1/0/1 as a trunk port and configure its default VLAN ID as 100.
[AP-Ethernet1/0/1] port link-type trunk
[AP-Ethernet1/0/1] port trunk pvid vlan 100
# Configure Ethernet 1/0/1 to deny the packets of VLAN 1 (by default, the packets of VLAN 1 are
permitted to pass through on all the ports).
[AP-Ethernet1/0/1] undo port trunk permit vlan 1
# Configure Ethernet 1/0/1 to permit packets from VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 to
pass through.
[AP-Ethernet1/0/1] port trunk permit vlan 2 6 to 50 100
Please wait... Done.
[AP-Ethernet1/0/1] quit
[AP] quit
2) Configure Device B as you configure AP.
Verification
Verifying the configuration on AP is similar to that of Device B. So only Device A is taken for example
here.
# Display the information about Ethernet 1/0/1 of AP to verify the above configurations.
<AP> display interface ethernet 1/0/1
Ethernet1/0/1 current state: UP
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-0000
Description: Ethernet1/0/1 Interface
Loopback is not set
Media type is twisted pair, promiscuous mode not set
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1522
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
PVID: 100