This article explains what General Switchport Mode is and how it is implemented on Dell Networking PowerConnect Switches.
Command |
Description |
switchport mode general |
Sets the port type to an 802.1Q VLAN. An 802.1Q VLAN port will allow multiple tagged VLANs. |
switchport general allowed vlan add 101, 102, 310 tagged |
Sets the port to allow only tagged traffic in VLANs 101, 102, 310. Traffic with tags other than 101, 102, 310 will be dropped. |
switchport general allowed vlan add 200 |
Sets the port to allow VLAN 200 traffic out the port as untagged. Any untagged traffic coming into the port would be pushed to the native PVID set on the port. |
switchport general pvid 1 |
Sets the port to put any untagged packets entering the port into VLAN 1. |
switchport general allowed vlan remove 1 |
Used to remove the port membership from VLAN "1". By default all the port on the switch are members of VLAN "1". |
switchport general pvid 4095 |
Sets the port to put any untagged packets entering the port into VLAN 4095 (4095 is the discard VLAN. Setting the PVID to 4095 means that untagged packets are not allowed on this port). |
switchport general acceptable-frame-type tagged-only |
Discards untagged frames at ingress. |
console# configure
console(config)# interface ethernet e11
console(config-if)# switchport mode general
console(config-if)# switchport general allowed vlan add 100 tagged
console(config-if)# switchport general allowed vlan add 200 untagged
console(config-if-1/g1)#switchport general pvid 1
console(config-if)# end
Figure 1: VLAN Port Settings page
Ports - Specifies the Unit and Port included in the VLAN.
Port VLAN Mode - Indicates the port mode. Possible values are:
- General - The port belongs to VLANs, and each VLAN is user-defined as tagged or untagged (full 802.1Q mode).
- Access - The port belongs to a single untagged VLAN. When a port is in Access mode, the packet types which are accepted on the port (packet type) cannot be designated. It is also not possible to enable/disable ingress filtering on an access port.
- Trunk - The port belongs to more than one VLAN, and all ports are tagged (except for an optional single native VLAN).
PVID (1-4093) | 4095 - Assigns a VLAN ID to untagged packets. Possible values are 1-4093 or 4095.
Frame Type - Specifies frame type accepted on the port. Default is Admit All. Possible values are:
- Admit Tag Only - Indicates that only tagged frames are accepted on the port.
- Admit All - Indicates that both tagged and untagged frames are accepted on the port.
Ingress Filtering - Enables or disables Ingress filtering on the port. Ingress filtering discards frames where the VLAN tag does not match the port VLAN membership.
Open the VLAN Port Settings page.
Select the port to which you want to assign settings from the Unit and Port drop menus.
Complete the remaining fields on the page.
Click Apply Changes.
Now the VLAN port settings are defined, and the device is updated.