Lenovo RackSwitch G8332 Command Reference Manual page 399

Iscli - industry standard cli command reference for lenovo enterprise network operating system 8.4
Hide thumbs Also See for RackSwitch G8332:
Table of Contents

Advertisement

© Copyright Lenovo 2016
Table 177.
Port Configuration Options (continued)
Command Syntax and Usage
switchport mode {access|trunk|private­vlan}
Configures the port's trunking mode:
access allows association to a single VLAN
trunk automatically adds the port to all created VLANs. To configure a 
specific allowed VLAN range for the port use the command:
switchport trunk allowed vlan
private­vlan allows association to a private VLAN
Default mode is access.
Note: When switching from access to trunk mode, the port inherits the access 
VLAN as the trunk Native‐VLAN.
Note: When switching from trunk to access mode, the port inherits the trunk 
Native‐VLAN as the access VLAN.
Command mode: Interface port/Interface portchannel
no switchport mode private­vlan
Removes private‐VLAN mode from the port.
Command mode: Interface port/Interface portchannel
[no] switchport private­vlan host­association
  <primary VLAN ID (2‐4094)> <secondary VLAN ID (2‐4094)>
Enables or disables the private VLAN association on a secondary port.
Command mode: Interface port/Interface portchannel
[no] switchport private­vlan mapping <primary VLAN ID (2‐4094)>
Enables or disables private VLAN mapping on a port in promiscuous mode.
Command mode: Interface port/Interface portchannel
switchport trunk allowed vlan <VLAN ID (1‐4094)>
Configures the allowed VLANs in trunk mode for the current port or 
portchannel. If the allowed range does not have any existing VLANs, the 
lowest‐numbered VLAN is created and becomes the Native‐VLAN. If the 
allowed range contains an existing VLAN(s), but the Native‐VLAN is not in 
the allowed range, the Native‐VLAN is changed to the lowest‐numbered 
existing VLAN. If a new VLAN is created and it is part of the allowed VLAN 
range, the port will also be added to that VLAN.
Command mode: Interface port/Interface portchannel
Chapter 4: Configuration Commands
399

Advertisement

Table of Contents
loading

Table of Contents