Switchport Access Vlan; Switchport Forbidden Vlan - Planet SGS-6341 Series Command Manual

Gigabit ethernet l3 stackable managed switch with 10gbe uplink
Table of Contents

Advertisement

12.1.25 switchport access vlan

Command:
switchport access vlan <vlan-id>
no switchport access vlan
Function:
Add the current Access port to the specified VLAN. The "no switchport access vlan" command
deletes the current port from the specified VLAN, and the port will be partitioned to VLAN1.
Parameter:
<vlan-id> is the VID for the VLAN to be added the current port, valid range is 1 to 4094.
Command mode:
Port Mode.
Default:
All ports belong to VLAN1 by default.
Usage Guide:
Only ports in Access mode can join specified VLANs, and an Access port can only join one VLAN at
a time.
Example:
Add some Access port to VLAN100.
Switch(config)#interface ethernet 1/0/8
Switch(Config-If-Ethernet1/0/8)#switchport mode access
Switch(Config-If-Ethernet1/0/8)#switchport access vlan 100
Switch(Config-If-Ethernet1/0/8)#exit

12.1.26 switchport forbidden vlan

Command:
switchport forbidden vlan {WORD | all | add WORD | except WORD | remove WORD}
Function:
Configure the forbidden vlan for a port. Note that this command can only be used to configure on
trunk or hybrid ports and the port with GVRP not enabled. No command cancels the forbidden
vlanlist for a port.
Parameter:
WORD: Set vlan List to allowed vlan, and the late configuration will cover the previous configuration;
all: Set all VLANs to allowed vlan;
add WORD: Add vlanList to the existent allowed vlanList;
except WORD: Set all VLANs to allowed vlan except the configured vlanList;
12-63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sgs-6341-24t4x

Table of Contents