Dell 6024 F Switch User Manual


 
302 Configuring Switch Information
www.dell.com | support.dell.com
The following is an example of the CLI commands:
Console (config)# interface ethernet g8
Console (config-if)# switchport mode access
console (config-if)# switchport trunk native vlan 123
Console (config-if)# switchport general pvid 234
Console (config-if)# switchport general allowed vlan add 1,2,5,6
tagged
Console (config-if)# switchport general acceptable-packet-types
tagged-only
Table 7-24. VLAN Port CLI Commands
CLI Command Description
switchport mode {
access | trunk |
general}
Configures a port VLAN membership mode.
switchport trunk
native vlan
vlan-id
Defines the port as a member of the specified
VLAN, and the VLAN ID as the "port default
VLAN ID (PVID)".
switchport general
pvid
vlan-id
Configure the Port VLAN ID (PVID) when the
interface is in general mode.
switchport general
allowed vlan add
vlan-
list
[ tagged |
untagged]
Adds or removes VLANs from a general port.
switchport general
acceptable-packet-
types tagged-only
Discards untagged packets at ingress.
switchport general
ingress-filtering
disable
Disables port ingress filtering.
shutdown Disables interfaces.
set interface active
{ethernet
interface
|
port-channel
port-
channel-number
}
Reactivates an interface that is shutdown due
to security reasons.