D-Link CLI Reference Guide
Page 410
switchport mode
The
switchport mode
Interface Configuration mode command configures the VLAN membership mode of a port.
To return to the default configuration, use the
no
form of this command.
Syntax
switchport mode
{
access
|
trunk | general
}
no switchport mode
Parameters
•
access
— Indicates an untagged layer 2 VLAN port.
•
trunk
— Indicates a trunking layer 2 VLAN port.
•
general
— Indicates a full 802-1q supported VLAN port.
Default Configuration
All ports are in access mode, and belong to the default VLAN (whose VID=1).
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
There are no user guidelines.
Example
The following example configures Ethernet port 1/16 as an untagged layer 2 VLAN port.
Console(config)#
interface ethernet
1/16
Console(config-if)#
switchport mode
access
Summary of Contents for DXS-3227 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...