16.06.2015 Views

CLI Guide - TP-Link

CLI Guide - TP-Link

CLI Guide - TP-Link

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Command Mode<br />

Example<br />

Interface Configuration Mode (interface gigabitEthernet / interface range<br />

gigabitEthernet)<br />

Specify the <strong>Link</strong> Type of port 3 as trunk:<br />

TL-SG3424(config)# interface gigabitEthernet 1/0/3<br />

TL-SG3424(config-if)# switchport mode trunk<br />

switchport access vlan<br />

Description<br />

Syntax<br />

Parameter<br />

The switchport access vlan command is used to add the desired Access port<br />

to IEEE 802.1Q VLAN. To remove the specified port/ports from the<br />

corresponding VLAN, please use no switchport access vlan command.<br />

switchport access vlan vlan-id<br />

no switchport access vlan<br />

vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 2 to 4094.<br />

Command Mode<br />

Example<br />

Interface Configuration Mode (interface gigabitEthernet / interface range<br />

gigabitEthernet)<br />

Specify the <strong>Link</strong> Type of port 3 as access and add it to VLAN 2:<br />

TL-SG3424(config)# interface gigabitEthernet 1/0/3<br />

TL-SG3424(config-if)# switchport mode access<br />

TL-SG3424(config-if)# switchport access vlan 2<br />

switchport trunk allowed vlan<br />

Description<br />

Syntax<br />

The switchport trunk allowed vlan command is used to add the desired Trunk<br />

port to IEEE 802.1Q VLAN. To delete the corresponding VLAN/VLANs, please<br />

use no switchport trunk allowed vlan command.<br />

switchport trunk allowed vlan vlan-list<br />

20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!