D-Link DGS-3130 Emulator - Page 885
switchport access vlan
View all D-Link DGS-3130 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 885 highlights
DGS-3130 Layer 3 Stackable Managed Switch CLI Reference Guide Switch# show vlan mac-vlan MAC Address VLAN ID Priority Status 00-80-cc-00-00-11 101 4 Active 00-11-22-00-00-05 200 5 Active Total Entries: 2 Switch# 89-8 switchport access vlan This command is used to specify the access VLAN for an interface. Use the no form of this command to revert to the default setting. switchport access vlan VLAN-ID no switchport access vlan Parameters VLAN-ID Specifies the access VLAN of the interface. Default By default, this access VLAN is VLAN 1. Command Mode Interface Configuration Mode. Command Default Level Level: 12. Usage Guideline The command takes effect when the interface is set to access mode, or dot1q-tunnel mode. The VLAN specified as the access VLAN does not need to exist to configure the command. Only one access VLAN can be specified. The succeeding command overwrites the previous command. Example This example shows how to configure the ethernet 1/0/1 to access mode with access VLAN 1000. Switch# configure terminal Switch(config)# interface ethernet 1/0/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 1000 Switch(config-if)# 881