Tp-Link T2600G-28MPS V2 [241/1027] Using the cli

Tp-Link T2600G-28MPS V2 [241/1027] Using the cli
Configuration Guide 210
Configuring MAC VLAN Configuration Example
4) Click Save Config to save the settings.
3.4 Using the CLI

Configurations for Switch 1 and Switch 2
The configurations of Switch 1 and Switch 2 are the same. The following introductions take
Switch 1 as an example.
1) Create VLAN 10 for Department A and create VLAN 20 for Department B.
Switch_1#configure
Switch_1(config)#vlan 10
Switch_1(config-vlan)#name deptA
Switch_1(config-vlan)#exit
Switch_1(config)#vlan 20
Switch_1(config-vlan)#name deptB
Switch_1(config-vlan)#exit
2) For port 1/0/2, set the type as General, set the egress rule as Tagged, and add it to both
VLAN 10 and VLAN 20.
Switch_1(config)#interface gigabitEthernet 1/0/2
Switch_1(config-if)#switchport mode general
Switch_1(config-if)#switchport general allowed vlan 10,20 tagged
Switch_1(config-if)#exit
3) Set port 1/0/1 set the type as General, set the egress rule as Untagged, and add it to both
VLAN 10 and VLAN 20. Then enable MAC VLAN for port 1/0/1.
Switch_1(config)#interface gigabitEthernet 1/0/1
Switch_1(config-if)#switchport mode general
Switch_1(config-if)#switchport general allowed vlan 10,20 untagged
Switch_1(config-if)#mac-vlan
Switch_1(config-if)#exit
4) Bind the MAC address of Laptop A to VLAN 10 and bind the MAC address of Laptop B
to VLAN 20.
Switch_1(config)#mac-vlan mac-address 00:19:56:8A:4C:71 vlan 10 description PCA
Switch_1(config)#mac-vlan mac-address 00:19:56:82:3B:70 vlan 20 description PCB
Switch_1(config)#end

Содержание

Похожие устройства

Скачать