|
8-11Figure 8-4 Network diagram for port-based VLAN configurationConfiguration procedure1) Configure AP# Create VLAN 2, VLAN 6 through VLAN 50, and VLAN 100. system-view[AP] vlan 2[AP-vlan2] quit[AP] vlan 100[AP-vlan100] vlan 6 to 50Please 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 arepermitted 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 topass through.[AP-Ethernet1/0/1] port trunk permit vlan 2 6 to 50 100Please wait... Done.[AP-Ethernet1/0/1] quit[AP] quit2) Configure Device B as you configure AP.VerificationVerifying the configuration on AP is similar to that of Device B. So only Device A is taken for examplehere.# Display the information about Ethernet 1/0/1 of AP to verify the above configurations. display interface ethernet 1/0/1Ethernet1/0/1 current state: UPIP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-0000Description: Ethernet1/0/1 InterfaceLoopback is not setMedia type is twisted pair, promiscuous mode not set100Mbps-speed mode, full-duplex modeLink speed type is autonegotiation, link duplex type is autonegotiationFlow-control is not enabledThe Maximum Frame Length is 1522Broadcast MAX-ratio: 100%Unicast MAX-ratio: 100%Multicast MAX-ratio: 100%PVID: 100
PreviousNext |