User`s manual

96
4.5.5 CLI Commands of the VLAN
Command Lines of the VLAN port configuration, VLAN configuration and VLAN
table display
Feature
Command Line
VLAN Port Configuration
Port Interface
Configuration
Switch# conf ter
Switch(config)# interface fa5
Switch(config-if)#
VLAN Port PVID
Switch(config-if)# switchport trunk native vlan 2
Set port default vlan id to 2 success
QinQ Tunnel Mode
802.1Q Tunnel =
access
802.1Q Tunnel
Uplink = uplink
Switch(config-if)# switchport dot1q-tunnel
mode Set the interface as an IEEE 802.1Q tunnel
mode
Switch(config-if)# switchport dot1q-tunnel mode
access Set the interface as an access port of IEEE
802.1Q tunnel mode
uplink Set the interface as an uplink port of IEEE
802.1Q tunnel mode
Port Accept Frame
Type
Switch(config-if)# acceptable frame type all
any kind of frame type is accepted!
Switch(config-if)# acceptable frame type
vlantaggedonly
only vlan-tag frame is accepted!
Ingress Filtering
(for fast Ethernet
port 1)
Switch(config-if)# ingress filtering enable
ingress filtering enable
Switch(config-if)# ingress filtering disable
ingress filtering disable
Egress rule
Untagged (for VLAN
2)
Switch(config-if)# switchport access vlan 2
switchport access vlan - success
Egress rule Tagged
(for VLAN 2)
Switch(config-if)# switchport trunk allowed vlan add
2
Display Port
Ingress Rule (PVID,
Ingress Filtering,
Acceptable Frame
Switch# show interface fa1
Interface fastethernet1
Administrative Status : Enable
Operating Status : Not Connected