6.1.3.5
switchport access vlan
Description
With this command, you assign an VLAN to an interface and configure the port VLAN identifier
(PVID) for it.
Requirement
You are in the Interface configuration mode.
The command prompt is as follows:
cli(config-if-$$$)#
Syntax
Call up the command with the following parameters:
switchport access vlan <vlan-id(1-4094)>
The parameter has the following meaning:
Parameter
Description
Range of values / note
vlan-id
Number of the addressed VLAN
1 ... 4094
Result
The Interface is added to the VLAN as an untagged port and the corresponding VLAN ID is
set.
Further notes
You can reset the setting to the default with the
no switchport access vlan
command.
You display the setting and other information with the
show vlan port config
command.
6.1.3.6
no switchport access vlan
Description
With this command, you reset the setting for the port VLAN identifier (PVID) for an interface
to the default value.
The default value is 1.
Requirement
You are in the interface configuration mode.
The command prompt is as follows:
Network structures
6.1 VLAN
SCALANCE XB-200/XC-200/XF-200BA/XP-200/XR-300WG Command Line Interface
182
Configuration Manual, 07/2017, C79000-G8976-C361-06