Switchport Mac-Vlan Enable - Planet SGS-6341 Series Command Manual

Gigabit ethernet l3 stackable managed switch with 10gbe uplink
Table of Contents

Advertisement

vlan-id is the VLAN ID with a valid range of 1~4094;all indicates all the subnets.
Command Mode:
Global Mode.
Default:
No IP subnet joined the VLAN by default.
Usage Guide:
This command is used for adding specified IP subnet to specified VLAN. When packet without
VLAN label and from the specified IP subnet enters through the switch port, it will be matched with
specified VLAN id and enters specified VLAN. These packets will always come to the same VLAN
no matter through which port did they enter. This command will not interfere with VLAN labeled data
packets.
Example:
Add the network equipment with IP subnet of 192.168.1.0/24 to VLAN 300.
SwitchA#config
SwitchA(config)#subnet-vlan ip-address 192.168.1.1 mask 255.255.255.0 vlan 300 priority 0

12.2.13 switchport mac-vlan enable

Command:
switchport mac-vlan enable
no switchport mac-vlan enable
Function:
Enable the MAC-based VLAN function on the port; the "no" form of this command will disable the
MAC-based VLAN function on the port.
Command Mode:
Port Mode.
Default:
The MAC-base VLAN function is enabled on the port by default.
Usage Guide:
After adding a MAC address to specified VLAN, the MAC-based VLAN function will be globally
enabled. This command can disable the MAC-based VLAN function on specified port to meet
special user applications.
Example:
Disable the MAC-based VLAN function on port1.
Switch#config
Switch(config)#interface ethernet 1/0/1
Switch(Config-If-Ethernet1/0/1)#no switchport mac-vlan enable
12-81

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sgs-6341-24t4x

Table of Contents