User Manual

11.1.9 Set associated VLAN of an access port (untagged port)
[Syntax]
switchport access vlan vlan-id
no switchport access vlan
[Parameter]
vlan-id : <1-4094>
Associated VLAN ID
[Initial value]
Depends on VLAN preset. Refer to 3.2 Default setting values on page
20.
[Input mode]
interface mode
[Description]
Sets the VLAN ID that is associated as an access port with the applicable interface.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
This command can be set only for a LAN/SFP port or logical interface for which the switchport mode access
command is set.
If this command is applied to a logical interface, the settings of every LAN/SFP port associated with that interface are changed.
If the port type is changed to a trunk port, the setting of this command returns to the default setting.
[Example]
Set VLAN #10 as the VLAN to which LAN port #1 is associated as the access port.
SWP1(config)#interface ge1
SWP1(config-if)#switchport access vlan 10
11.1.10 Set trunk port (tagged port)
[Syntax]
switchport mode trunk [ingress-filter action]
[Keyword]
ingress-filter : Specifies the behavior of the ingress filter
[Parameter]
action : Behavior of the ingress filter
Setting value Description
enable Enable the ingress filter
disable Disable the ingress filter
[Initial value]
Depends on VLAN preset. Refer to 3.2 Default setting values on page 20.
[Input mode]
interface mode
[Description]
Specifies the port type of the applicable interface as an trunk port.
If "ingress-filter" is omitted, "enable" is specified.
If ingress filtering is enabled, frames are forwarded only if the VLAN ID of the received frame matches the VLAN associated
with the interface.
If ingress filtering is disabled, all frames are forwarded.
[Note]
This command can be specified only for LAN/SFP port and logical interface.
Command Reference | L2 switching function | 125