Article Number: 000104748
Mode | VLAN Membership | Frames Accepted | Frames Sent | Ingress Filtering |
Access | One VLAN | Untagged/Tagged | Untagged | Always On |
Trunk | All VLANs that exist in the system (default) | Untagged/Tagged | Tagged and Untagged | Always On |
General | As many as wanted | Tagged or Untagged | Tagged or Untagged | On or Off |
Beginning in Privileged EXEC mode, use the following commands to configure an access mode VLAN interface and, optionally, assign the interface to a VLAN. When a port is in access mode, it can only be a member of one VLAN and accepts tagged packets with the access VLAN ID or untagged packets. Untagged packets are treated as belonging to the access VLAN. Packets received with a VLAN ID other than the access VLAN ID are discarded. When you configure an interface as an access mode port, the interface is automatically made a member of VLAN 1 and removed from all other VLAN memberships. Each interface can be configured separately, or you can configure a range of interfaces with the same settings.
Command | Parameters |
Dell# configure |
Enter configuration mode. |
Dell(config)# interface gi 1/0/1 |
Enter a specific interface. This could be a single physical interface, a range of ports or a port channel interface. |
Dell(config-if-Gi1/0/1)# switchport mode access |
This sets the switchport mode to access. Dell N Series switches are in default switchport mode access out of the box. |
Dell(config-if-Gi1/0/1)# switchport access vlan 100 |
Set the interface as a member of the specified VLAN. By default, access mode ports are members of VLAN 1. |
Dell(config-if-Gi1/0/1)# end |
Leave interface configuration mode and go back to Privilege EXEC mode. |
Dell# show interfaces switchport gi 1/0/1 |
Display information about the port to verify the switchport mode configuration. |
Dell# show interfaces switchport gi1/0/1 Port: Gi1/0/1 VLAN Membership Mode: Access Mode Access Mode VLAN: 100 General Mode PVID: 1 (default) General Mode Ingress Filtering: Enabled General Mode Acceptable Frame Type: Admit All General Mode Dynamically Added VLANs: General Mode Untagged VLANs: 1 General Mode Tagged VLANs: 50,100 General Mode Forbidden VLANs: Trunking Mode Native VLAN: 1 (default) Trunking Mode Native VLAN Tagging: Disabled Trunking Mode VLANs Enabled: All Private VLAN Host Association: none Private VLAN Mapping: Private VLAN Operational Bindings: Default Priority: 0 Protected: Disabled
Beginning in Privileged EXEC mode, use the following commands to configure an interface as a layer 2 trunking interface, which connects two switches. Trunk mode ports support traffic tagged with different VLAN IDs. Untagged received traffic is switched in the native VLAN. A trunk port is automatically configured as a member of all VLANs. You can remove them from membership in specific VLANs. By default, the native VLAN for a trunk port is VLAN 1.
Command | Parameters |
Dell# configure |
Enter configuration mode. |
Dell(config)# interface gi 1/0/1 |
Enter a specific interface. This could be a single physical interface, a range of ports or a port channel interface. |
Dell(config-if-Gi1/0/1)# switchport mode trunk |
Set the switchport mode to trunk. |
Dell(config-if-Gi1/0/1)# switchport trunk allowed vlan all |
By default trunk mode allows all VLANs. This command is helpful when you must return the trunk configuration back to default. |
Dell(config-if-Gi1/0/1)# switchport trunk allowed vlan add 50,100 |
This adds VLANs 50 and 100 to the VLAN allowed list. Only the VLANs on the list are allowed to pass tagged frames. |
Dell(config-if-Gi1/0/1)# switchport trunk allowed vlan remove 50,100 |
This removes the listed VLANs from the allowed list. |
Dell(config-if-Gi1/0/1)# switchport trunk allowed vlan except 50,100 |
This allows all VLANs other than those listed. |
Dell(config-if-Gi1/0/1)# switchport trunk native vlan-id 50 |
This sets the untagged VLAN for the trunk port. Untagged packets received on this interface are switched in the native VLAN. Transmitted packets in this VLAN are sent untagged. |
Dell(config-if-Gi1/0/1)# no switchport mode |
This defaults to the switchport mode (default is access mode). Removing trunk mode. |
Dell(config-if-Gi1/0/1)# end |
Leave interface configuration mode and go back to Privilege EXEC mode. |
Dell# show interfaces switchport gi 1/0/1 |
Display information about the port to verify the switchport mode configuration. |
Dell# show interfaces switchport gi1/0/1 Port: Gi1/0/1 VLAN Membership Mode: Trunk Mode Access Mode VLAN: 1 (default) General Mode PVID: 1 (default) General Mode Ingress Filtering: Enabled General Mode Acceptable Frame Type: Admit All General Mode Dynamically Added VLANs: General Mode Untagged VLANs: 1 General Mode Tagged VLANs: 50,100 General Mode Forbidden VLANs: Trunking Mode Native VLAN: 1 (default) Trunking Mode Native VLAN Tagging: Disabled Trunking Mode VLANs Enabled: All Private VLAN Host Association: none Private VLAN Mapping: Private VLAN Operational Bindings: Default Priority: 0 Protected: Disabled
Beginning in Privileged EXEC mode, use the following commands to configure an interface with full 802.1q support and configure the VLAN membership information for the interface. Except when noted as required (for example, when configuring MAB, Voice VLAN, or 802.1x), it is recommended that operators use either trunk or access mode.
Command | Parameters |
Dell# configure |
Enter configuration mode. |
Dell(config)# interface gi 1/0/1 |
Enter a specific interface. This could be a single physical interface, a range of ports or a port channel interface. |
Dell(config-if-Gi1/0/1)# switchport mode general |
Set the switchport mode to general. |
Dell(config-if-Gi1/0/1)# switchport general allowed vlan add 50,100 tagged |
This sets the port to transmit tagged packets for the VLANs listed. If the command is used without specifying tagged or untagged, the default is untagged. Separate nonconsecutive VLAN IDs with a comma and no spaces. Use a hyphen to designate a range of IDs. (Range: 1-4093) |
Dell(config-if-Gi1/0/1)# switchport general allowed vlan remove 50 |
This sets the list of VLAN IDs to remove. |
Dell(config-if-Gi1/0/1)# switchport general pvid 50 |
(Optional) Set the port VLAN ID. Untagged traffic that enters the switch through this port is tagged with the PVID. The PVID assignment must be to an existing VLAN. |
Dell(config-if-Gi1/0/1)# switchport general allowed vlan add 50 untagged |
This sets the port to pass untagged packets for the specified VLAN. This must match the VLAN set as the PVID. |
Dell(config-if-Gi1/0/1)# switchport general acceptable-frame-type tagged-only |
(Optional) Specifies that the port only accepts tagged frames. Untagged frames are dropped at ingress. |
Dell(config-if-Gi1/0/1)# switchport general ingress-filtering disable |
(Optional) Turn off ingress filtering so that all received tagged frames are forwarded whether or not the port is a member of the VLAN in the tag. |
Dell(config-if-Gi1/0/1)# no switchport mode |
This defaults to the switchport mode (default is access mode). Removing general mode. |
Dell(config-if-Gi1/0/1)# end |
Leave interface configuration mode and go back to Privilege EXEC mode. |
Dell# show interfaces switchport gi 1/0/1 |
Display information about the port to verify the switchport mode configuration. |
Dell# show interfaces switchport gi 1/0/1 Port: Gi1/0/1 VLAN Membership Mode: General Mode Access Mode VLAN: 1 (default) General Mode PVID: 50 General Mode Ingress Filtering: Enabled General Mode Acceptable Frame Type: Admit All General Mode Dynamically Added VLANs: General Mode Untagged VLANs: 50 General Mode Tagged VLANs: 50,100 General Mode Forbidden VLANs: Trunking Mode Native VLAN: 1 (default) Trunking Mode Native VLAN Tagging: Disabled Trunking Mode VLANs Enabled: All Private VLAN Host Association: none Private VLAN Mapping: Private VLAN Operational Bindings: Default Priority: 0 Protected: Disabled
PowerSwitch N1500 Series, PowerSwitch N2000 Series, PowerSwitch N2100 Series, PowerSwitch N3000 Series, Dell EMC PowerSwitch N3100 Series, Dell EMC Networking N3200-ON, PowerSwitch N4000 Series
22 Mar 2024
10
How To