Switch CLI Reference Guide
- Introduction
- System Commands
- ACL Commands
- Domain Name Server (DNS) Commands
- Energy Efficient Ethernet (EEE) Commands
- Internet Group Management Protocol (IGMP) Commands
- IP Commands
- Link Aggregation Commands
- Loopback Detection Commands
- Link Layer Discovery Protocol Commands
- Monitor (Mirror) Commands
- Port-Based Network Access Control Commands
- Power Over Ethernet Commands
- Quality of Service Commands
- RADIUS Commands
- Remote Network Monitoring (RMON) Commands
- Simple Network Management Protocol (SNMP) Commands
- Simple Network Time Protocol (SNTP) Commands
- Spanning Tree Commands
- Secure Shell Commands
- Syslog Commands
- VLAN Commands
- Voice VLAN Commands
- SonicWall Support
VLAN Commands
Command Objective |
This command creates a VLAN ID and enters into the config- VLAN mode in which VLAN specific configurations are done. This command directly enters into the config-VLAN mode for the specified VLAN ID, if the VLAN is already created.
|
Syntax |
|
Mode | Global Configuration Mode/ Switch Configuration Mode |
Command Objective |
This command statically configures a VLAN entry with the required member ports, untagged ports and/or forbidden ports, and activates the VLAN. The VLAN can also be activated using the vlan active command. |
Syntax |
|
Parameter Description |
|
Mode | Config-VLAN Mode |
Command Objective |
This command exits the current mode and reverts to the mode used prior to the current mode. |
Syntax |
|
Description | This command exits the current mode and reverts to the mode used prior to the current mode. |
Mode | All mode |
Command Objective |
This command configures the PVID on the specified port.The PVID represents the VLAN ID that is to be assigned to untagged frames or priority-tagged or C-VLAN frames received on the port. The PVID is used for port based VLAN type membership classification. This value ranges between 1 and 65535. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration mode (Physical / Port channel) |
Command Objective |
This command configures the type of VLAN dependant BPDU frames such as GMRP BPDU, that the port should accept during the VLAN membership configuration. The no form of the command resets the acceptable frame type for the port to its default value. This configuration does not affect VLAN independent BPDU frames such as GVRP BPDU and STP BPDU. It affects only the VLAN dependent BPDU frames. |
Syntax |
|
Parameter Description |
|
Mode | Interface Configuration mode (Physical / Port channel) |
Command Objective |
This command enables ingress filtering feature on the port. The ingress filtering is applied for the incoming frames received on the port. Only the incoming frames of the VLANs that have this port in its member list are accepted. This configuration does not affect VLAN independent BPDU frames such as GVRP BPDU and STP BPDU. It affects only the VLAN dependent BPDU frames GMRP BPDU. The no form of the command disables ingress filtering feature on the port. All incoming frames received on the port are accepted. |
Syntax |
|
Mode | Interface Configuration mode (Physical / Port channel) |
Command Objective |
This command displays VLAN entry related information of all active VLANs and VLANs (that are not active) for which the port details are configured. The information contain the member ports, untagged ports, forbidden ports, VLAN name and the status of that VLAN entry. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the VLAN global information that is applicable to all VLANs created in the Switch / all contexts. The information contains VLAN status, VLAN oper status, GVRP status, GMRP status, GVRP oper status, GMRP oper status, MAC- VLAN status, subnet-VLAN status, protocol-VLAN status, bridge mode of the Switch, VLAN base bridge mode, VLAN traffic class status, VLAN learning mode, VLAN version number, maximum VLAN ID supported, maximum number of VLANs supported and VLAN unicast MAC learning limit. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays only the list of VLAN features such as traffic class feature, supported in the Switch / all contexts. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the VLAN related port specific information for all interfaces available in the Switch / all contexts. The information contains PVID, acceptable frame type, port mode, filtering utility criteria, default priority value and status of ingress filtering feature, GVRP module, GMRP module, restricted VLAN registration feature, restricted group registration feature, MAC-based VLAN membership, subnet based VLAN membership, protocol-VLAN based membership and port protected feature. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the unicast / broadcast statistics details of all active VLANs and VLANs (that are not active) for which the port details are configured. The statistics details include VLAN ID, number of unicast packets received in the VLAN, number of multicast / broadcast packets received in the VLAN, number of unknown unicast packets flooded in the VLAN, number of known unicast packets forwarded in the VLAN, and number of known broadcast packets forwarded in the VLAN. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays all static / dynamic unicast and multicast MAC entries created in the MAC address table. These entries contain VLAN ID, unicast / multicast MAC address, unicast backbone MAC address of peer backbone edge bridge, member ports, the type of entry (that is static, learnt and so on), and total number of entries displayed. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the total number of static / dynamic unicast and multicast MAC address entries created in the FDB table. The count is displayed for all active VLANs, VLANs (that are not active) for which the port details are configured, and VLANs for which the MAC address table entries are created. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the static multicast MAC address entries created in the FDB table. These entries contain VLAN ID to which multicast MAC address entry is assigned, multicast MAC address, member ports, receiver ports, forbidden ports, the status of entry (that is permanent, static and so on), and total number of entries displayed. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays all dynamically learnt unicast entries from the MAC address table. These entries contain VLAN ID for which unicast MAC address entry is learnt, unicast MAC address, ports through which the entry is learnt, the status of entry (that is permanent, static and so on), the unicast backbone MAC address of peer backbone edge bridge, and total number of entries displayed. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Command Objective |
This command displays the ageing time configured for the MAC address table. This time denotes the interval (in seconds) after which the dynamically learned forwarding information entry and static entry in the MAC address table are deleted. |
Syntax |
|
Parameter Description |
|
Mode | Privileged EXEC Mode |
Syntax |
|
Expected results | Switch port-10 becomes a member of vlan 100 as untagged or access port. |
Syntax |
|
Expected results | Switch port-10 to 20 becomes a member of vlan 100 as untagged or access port. |
Syntax |
|
Expected results | Switch port-10 becomes a member of vlan 100 as tagged or trunk port. |
Syntax |
|
Expected results | Switch port 10 to 20 becomes a member of vlan 100 as tagged or trunk port. |
Syntax |
|
Expected results | Switch port-10 is not able to join vlan 100 as untagged or tagged (cannot become a member of vlan 100). |
Syntax |
|
Expected results | Switch port10 to 20 is not able to join vlan 100 as untagged or tagged (cannot become a member of vlan 100). |
Syntax |
|
Expected results | Switch port-10 becomes a member of vlan 100 as tagged or trunk port and port-11 is not able to join vlan 100 as untagged or tagged (cannot become a member of vlan 100). |
Syntax |
|
Expected results | Switch port 10 to 20 becomes a member of vlan 100 as tagged or trunk port and port 21-30 is not able to join vlan 100 as untagged or tagged (cannot become a member of vlan 100). |
Syntax |
|
Syntax |
|
Was This Article Helpful?
Help us to improve our support portal