Chapter 4: Commands for CLI configuration
88
NS4750-24S-4T-4X-V2 Managed Switch Command Guide
To configure
access VLAN ID
for specific interface
Example:
To configure
access VLAN ID
(5) for
GigabitEthernet X/X
Switch# configure terminal
Switch (config)#
interface GigabitEthernet X/X
Switch (config-if) #
switchport access vlan 5
switchport forbidden vlan add
Command:
switchport forbidden vlan add <vlan_list>
switchport
Switching mode characteristics
forbidden
Adds or removes forbidden VLANs from the current list of forbidden
VLANs
vlan
Add or modify VLAN entry in forbidden table.
add
Add to existing list.
<vlan_list>
VLAN IDs
Default:
1
Usage Guide:
To add
forbidden VLAN ID
for specific interface
Example:
To add
forbidden VLAN ID
(5) for
GigabitEthernet X/X
Switch# configure terminal
Switch (config)#
interface GigabitEthernet X/X
Switch (config-if) #
switchport forbidden vlan add 5
switchport forbidden vlan remove
Command:
switchport forbidden vlan remove <vlan_list>
switchport
Switching mode characteristics
forbidden
Adds or removes forbidden VLANs from the current list of forbidden
VLANs
vlan
Add or modify VLAN entry in forbidden table.
remove
Remove from existing list.
<vlan_list>
VLAN IDs
Default:
1
Usage Guide:
To remove
forbidden VLAN ID
for specific interface
Example:
To remove
forbidden VLAN ID
(5) for
GigabitEthernet X/X
Switch# configure terminal