Manuals

Manuals
VLAN Commands: Dell PowerConnect Switch User's Guide

Back to Contents Page

VLAN Commands:
Dell PowerConnect Switch User's Guide

vlan database

vlan

interface vlan

switchport ingress-filtering

switchport acceptable-frame-types

switchport mode

switchport gvrp

switchport allowed vlan

switchport native vlan

switchport forbidden vlan

show vlan

show interfaces switchport


A VLAN is a group of ports that can be located anywhere in the network, but communicate as though they belong to the same physical segment. This section describes commands used to create VLAN groups, add port members, specify how VLAN tagging is used, and enable automatic VLAN registration for the selected interface.


vlan database

Use this command to enter VLAN database mode. All commands in this mode will take effect immediately.

Default Setting

None

Command Mode

Global Configuration

Command Usage

  • Use the VLAN database command mode to add, change, and delete VLANs. After finishing configuration changes, you can display the VLAN settings by entering the show vlan command.
  • Use the interface vlan command mode to define the port membership mode and add or remove ports from a VLAN. The results of these commands are written to the running-configuration file, and you can display this file by entering the show running-config command.

Example

Console(config)#vlan database
Console(config-vlan)#

Related Commands

show vlan


vlan

Use this command to configure a VLAN. Use the no form to restore the default settings or delete a VLAN.

Syntax

vlan vlan-id [name vlan-name] media ethernet [state {suspend | active}]
no vlan vlan-id [name | state]

  • vlan-id - ID of the configured VLAN. (Range: 1-4094, no leading zeroes)
  • name - Keyword to be followed by the VLAN name.
    • vlan-name - ASCII string 1 to 32 characters.
  • media ethernet - Ethernet media type.
  • state - Keyword to be followed by the VLAN state.
    • active - VLAN is operational.
    • suspend - VLAN is suspended. Suspended VLANs do not pass packets.

Default Setting

By default only VLAN 1 exists and is active.

Command Mode

VLAN Database Configuration

Command Usage

  • When no vlan vlan-id is used, the VLAN is deleted.
  • When no vlan vlan-id name is used, the VLAN name is removed.
  • When no vlan vlan-id state is used, the VLAN returns to the default state (i.e., active).
  • VLAN 1 cannot be suspended, but any other VLAN can be suspended.
  • You can configure up to 255 VLANs on this switch.

Example

The following example adds a VLAN, using vlan-id 105 and name RD5. The VLAN is activated by default.

Console(config)#vlan database
Console(config-vlan)#vlan 105 name RD5 media ethernet
Console(config-vlan)#

Related Commands

show vlan


interface vlan

Use this command to enter interface configuration mode for VLANs, and configure a physical interface.

Syntax

interface vlan vlan-id

vlan-id - ID of the configured VLAN. (Range: 1-4094, no leading zeroes)

Default Setting

None

Command Mode

Global Configuration

Example

The following example shows how to set the interface configuration mode to VLAN 1, and then assign an IP address to the VLAN:

Console(config)#interface vlan 1
Console(config-if)#ip address 192.168.1.254 255.255.255.0
Console(config-if)#

Related Commands

shutdown


switchport ingress-filtering

Use this command to enable ingress filtering for an interface. Use the no form to restore the default.

Syntax

switchport ingress-filtering
no switchport ingress-filtering

Default Setting

Disabled

Command Mode

Interface Configuration (Ethernet, Port Channel)

Command Usage

  • Ingress filtering only affects tagged frames.
  • If ingress filtering is disabled, the interface will accept any VLAN-tagged frame if the tag matches a VLAN known to the switch (except for VLANs explicitly forbidden on this port).
  • If ingress filtering is enabled, incoming frames tagged for VLANs which do not include this ingress port in their member set will be discarded.
  • Ingress filtering does not affect VLAN independent BPDU frames, such as GVRP or STA. However, they do affect VLAN dependent BPDU frames, such as GMRP.

Example

The following example shows how to set the interface to port 1 and then enable ingress filtering:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport ingress-filtering
Console(config-if)#


switchport acceptable-frame-types

Use this command to configure the acceptable frame types for a port. Use the no form to restore the default.

Syntax

switchport acceptable-frame-types {all | tagged}
no switchport acceptable-frame-types

  • all - The port passes all frames, tagged or untagged.
  • tagged - The port only passes tagged frames.

Default Setting

All frame types

Command Mode

Interface Configuration (Ethernet, Port Channel)

Command Usage

When set to receive all frame types, any received frames that are untagged are assigned to the default VLAN.

Example

The following example shows how to restrict the traffic passed on port 1 to tagged frames:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport acceptable-frame-types tagged
Console(config-if)#

Related Commands

switchport mode


switchport mode

Use the switchport mode command to configure the VLAN membership mode for a port. Use the no form to restore the default.

Syntax

switchport mode {trunk | hybrid}
no switchport mode

  • trunk - Specifies a port as an end-point for a VLAN trunk. A trunk is a direct link between two switches, so the port transmits and receives tagged frames that identify the source VLAN. However, note that frames belonging to the port’s default VLAN (i.e., associated with the PVID) are sent untagged.
  • hybrid - Keyword that specifies a hybrid VLAN interface. The port may receive or transmit tagged or untagged frames.

Default Setting

All ports are in hybrid mode with the PVID set to VLAN 1.

Command Mode

Interface Configuration (Ethernet, Port Channel)

Example

The following shows how to set the configuration mode to port 1, and then set the switchport mode to hybrid:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport mode hybrid
Console(config-if)#

Related Commands

switchport acceptable-frame-types


switchport gvrp

Use this command to enable GVRP for a port. Use the no form to disable it.

Syntax

switchport gvrp
no switchport gvrp

Default Setting

Disabled

Command Mode

Interface Configuration (Ethernet, Port Channel)

Example

Console(config)#interface ethernet 1/1
Console(config-if)#switchport gvrp
Console(config-if)#


switchport allowed vlan

Use this command to configure VLAN groups on the selected interface. Use the no form to restore the default.

Syntax

switchport allowed vlan {add vlan-list [tagged | untagged] | remove vlan-list}
no switchport allowed vlan

  • add vlan-list - List of VLAN identifiers to add.
  • remove vlan-list - List of VLAN identifiers to remove.
  • vlan-list - Separate nonconsecutive VLAN identifiers with a comma and no spaces; use a hyphen to designate a range of IDs. Do not enter leading zeros. (Range: 1-4094)

Default Setting

All ports are assigned to VLAN 1 by default.
The default frame type is untagged.

Command Mode

Interface Configuration (Ethernet, Port Channel)

Command Usage

  • If switchport mode is set to trunk, then you can only assign an interface to VLAN groups as a tagged member.
  • Frames are always tagged within the switch. The tagged/untagged parameter used when adding a VLAN to an interface tells the switch whether to keep or remove the tag from a frame on egress.
  • If none of the intermediate network devices nor the host at the other end of the connection supports VLANs, the interface should be added to these VLANs as an untagged member. Otherwise, it is only necessary to add at most one VLAN as untagged, and this should correspond to the native VLAN for the interface.
  • If a VLAN on the forbidden list for an interface is manually added to that interface, the VLAN is automatically removed from the forbidden list for that interface.

Example

The following example shows how to add VLANs 2, 5 and 6 to the allowed list as tagged VLANs for port 1:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport allowed vlan add 2,5,6 tagged
Console(config-if)#


switchport native vlan

Use this command to configure the PVID (i.e., default VID) for a port. Use the no form to restore the default.

Syntax

switchport native vlan vlan-id
no switchport native vlan

vlan-id - Default VLAN ID for a port. (Range: 1-4094, no leading zeroes)

Default Setting

VLAN 1

Command Mode

Interface Configuration (Ethernet, Port Channel)

Command Usage

  • If an interface is not a member of VLAN 1 and you assign its PVID to this VLAN, the interface will automatically be added to VLAN 1 as an untagged member. For all other VLANs, an interface must first be configured as an untagged member before you can assign its PVID to that group.
  • If acceptable frame types is set to all or switchport mode is set to hybrid, the PVID will be inserted into all untagged frames entering the ingress port.

Example

The following example shows how to set the PVID for port 1 to VLAN 3:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport native vlan 3
Console(config-if)#


switchport forbidden vlan

Use this command to configure forbidden VLANs. Use the no form to remove the list of forbidden VLANs.

Syntax

switchport forbidden vlan {add vlan-id | remove vlan-id}
no switchport forbidden vlan

  • add vlan-id - VLAN ID to add.
  • remove vlan-id - VLAN ID to remove.

(Range: 1-4094, no leading zeroes)

Default Setting

No VLANs are included in the forbidden list.

Command Mode

Interface Configuration (Ethernet, Port Channel)

Command Usage

  • This command prevents a VLAN from being automatically added to the specified interface via GVRP.
  • If a VLAN has been added to the set of allowed VLANs for an interface, then you cannot add it to the set of forbidden VLANs for that same interface.

Example

The following example shows how to prevent port 1 from being added to VLAN 3:

Console(config)#interface ethernet 1/1
Console(config-if)#switchport forbidden vlan add 3
Console(config-if)#


show vlan

Use this command to show VLAN information.

Syntax

show vlan [id vlan-id | name vlan-name]

  • name - Keyword to be followed by the VLAN ID.
    • vlan-id - ID of the configured VLAN. (Range: 1-4094, no leading zeroes)
  • name - Keyword to be followed by the VLAN name.
    • vlan-name - ASCII string 1 to 32 characters.

Default Setting

Shows all VLANs.

Command Mode

Normal Exec, Privileged Exec

Example

The following example shows how to display information for VLAN 1:

Console#show vlan id 1
VLAN Type    Name             Status    Ports/Channel groups
---- ------- ---------------- --------- ---------------------------------------
   1  Static      DefaultVlan    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/10
                                        Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
                                        Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
                                        Eth1/21 Eth1/22 Eth1/23 Eth1/24
Console#

Please read all restrictions and disclaimers.


 Back to Contents Page

Laptops | Desktops | Business Laptops | Business Desktops | Workstations | Servers | Storage | Services | Monitors | Printers | LCD TVs | Electronics
© 2012 Dell | About Dell | Terms & Conditions | Unresolved Issues | Privacy Statement | Ads and Emails | Dell Recycling | Contact | Site Map | Feedback
AT | AU | BE | BR | CA | CH | CL | CN | CO | DE | DK | ES | FR | HK | IE | IN | IT | JP | KR | ME | MX | MY | NL | NO | PA | PR | RU | SE | SG | UK | VE | ALL

snWEB2