![Cisco Catalyst 2350 Скачать руководство пользователя страница 470](http://html.mh-extra.com/html/cisco/catalyst-2350/catalyst-2350_command-reference-manual_67583470.webp)
2-446
Catalyst 2350 Switch Command Reference
OL-19055-01
Chapter 2 Catalyst 2350 Cisco IOS Commands
switchport access
switchport access
Use the
switchport access
interface configuration command to configure a port as a static-access port.
If the switchport mode is set to
access
, the port operates as a member of the specified VLAN.
switchport access vlan
vlan-id
no switchport access vlan
Syntax Description
Defaults
The default access VLAN and trunk interface native VLAN is a default VLAN corresponding to the
platform or interface hardware.
Command Modes
Interface configuration
Command History
Usage Guidelines
The
no switchport access
command resets the access mode VLAN to the appropriate default VLAN for
the device.
The port must be in access mode before the
switchport access vlan
command can take effect.
An access port can be assigned to only one VLAN.
Examples
This example shows how to change a switched port interface that is operating in access mode to operate
in VLAN 2 instead of the default VLAN:
Switch(config-if)#
switchport access vlan 2
You can verify your setting by entering the
show interfaces
interface-id
switchport
privileged EXEC
command and examining information in the Administrative Mode and Operational Mode rows.
Related Commands
vlan
vlan-id
Configure the interface as a static access port with the VLAN ID of the
access mode VLAN; the range is 1 to 4094.
Release
Modification
12.2(46)EY
This command was introduced.
Command
Description
show interfaces
switchport
Displays the administrative and operational status of a switching
(nonrouting) port, including port blocking and port protection settings.
switchport mode
Configures the VLAN membership mode of a port.
Содержание Catalyst 2350
Страница 14: ...Contents xiv Catalyst 2350 Switch Command Reference OL 19055 01 ...
Страница 18: ...xviii Catalyst 2350 Switch Command Reference OL 19055 01 Preface ...
Страница 606: ...B 66 Catalyst 2350 Switch Command Reference OL 19055 01 Appendix B Catalyst 2350 Debug Commands debug vqpc ...
Страница 636: ...D 2 Catalyst 2350 Switch Command Reference OL 19055 01 Appendix D Acknowledgments for Open Source Software ...
Страница 652: ...Index IN 16 Catalyst 2350 Switch Command Reference OL 19055 01 ...