13.02.2014 Views

CLI Guide - TP-Link

CLI Guide - TP-Link

CLI Guide - TP-Link

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TL-SL3428/TL-SL3452 JetStream L2 Managed Switch <strong>CLI</strong> <strong>Guide</strong><br />

<strong>TP</strong>-LINK(config)# interface vlan 2<br />

<strong>TP</strong>-LINK(config-if)#description vlan2<br />

switchport type<br />

Description<br />

Syntax<br />

Parameter<br />

The switchport type command is used to configure the <strong>Link</strong> Types for the<br />

ports.<br />

switchport type { access | trunk | general }<br />

access | trunk | general —— <strong>Link</strong> Types. There are three <strong>Link</strong> Types for the<br />

ports.<br />

Command Mode<br />

Example<br />

Interface Configuration Mode ( interface ethernet / interface range ethernet )<br />

Specify the <strong>Link</strong> Type of port 5 as general:<br />

<strong>TP</strong>-LINK(config)# interface ethernet 5<br />

<strong>TP</strong>-LINK(config-if)#switchport type general<br />

switchport allowed vlan<br />

Description<br />

Syntax<br />

Parameter<br />

The switchport allowed vlan command is used to add the desired port to IEEE<br />

802.1Q VLAN, or to remove a port from the corresponding VLAN.<br />

switchport allowed vlan add vlan-list<br />

switchport allowed vlan remove vlan-list<br />

vlan-list —— VLAN ID list, it is multi-optional.<br />

Command Mode<br />

Example<br />

Interface Configuration Mode ( interface ethernet / interface range ethernet )<br />

Add port 2 to IEEE 802.1Q VLAN:<br />

18

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

Saved successfully!

Ooh no, something went wrong!