Chapter 4: Commands for CLI configuration
switchport
Switching mode characteristics
vlan
VLAN commands
ip-subnet
VCL IP Subnet-based VLAN configuration.
id
id keyword
<1-128>
Unique VCE ID for each VCL entry (1-128)
<ipv4_subnet>
Source IP address and mask (Format:
xx.xx.xx.xx/mm.mm.mm.mm).
vlan
vlan keyword
<vlan_id>
VLAN ID required for the group to VLAN mapping (Range: 1-4095)
Default:
None
Usage Guide:
To configure
IP Subnet-based VLAN
for specific interface
Example:
To configure
IP Subnet-based VLAN
as below table for
GigabitEthernet X/X
Switch# configure terminal
Switch (config)#
interface GigabitEthernet X/X
Switch (config-if) #
switchport vlan ip-subnet id 1
192.168.1.0/255.255.255.0 vlan 5
switchport vlan mac
Command:
switchport vlan mac <mac_ucast> vlan <vlan_id>
switchport
Switching mode characteristics
vlan
VLAN commands
mac
MAC-based VLAN commands
<mac_ucast>
48 bit unicast MAC address: xx:xx:xx:xx:xx:xx
vlan
vlan keyword
<vlan_id>
VLAN ID required for the group to VLAN mapping (Range: 1-4095)
Default:
None
Usage Guide:
To configure
MAC-based VLAN
for specific interface
Example:
To configure
MAC-based VLAN
as below table for
GigabitEthernet X/X
Switch# configure terminal
Switch (config)#
interface GigabitEthernet X/X
Switch (config-if) #
switchport vlan mac 00:55:44:33:22:11 vlan 5
NS4702-24P-4X Managed Switch Command Guide
105