ISL 封装 用ISL 头与 CRC 进行帧封装 可以支持多个 VLAN (1024) VLAN 号 BPDU 控制位 ISL 头 26 bytes 以太帧数据 CRC 4 bytes DA Type User SA LEN AAAA03 HSA VLAN BPDU BPDU INDEX RES VLAN BPDU
确认一个 VLAN wg_sw_a#shvlan 9 VLAN Name Status Ports ------------------------------------------------- 9 switchlab2 Enabled ------------------------------------------------- VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2 ------------------------------------------------------------------------------------------------------- 9 Ethernet 100009 1500 0 1 1 Unkn 0 0 -------------------------------------------------------------------------------------------------------- wg_sw_a#show vlan [ vlan# ]
18.
Verifying VLAN Membershipon a Catalyst 2950 wg_sw_2950#show vlan brief VLAN Name Status Ports ---- ------------------------ --------- ----------------------- 1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20, Fa0/21 5 VLAN5 active Fa0/3 9 VLAN9 active Fa0/22, Fa0/23 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active wg_sw_2950#show vlan brief
19.
修改一个 VLAN 的名称vlan vlan# name vlan-name wg_sw_a#conf terminal Enter configuration commands, one per line. End with CNTL/Z wg_sw_a(config)#vlan 9 name switchlab90 wg_sw_a#show vlan 9 VLAN Name Status Ports ------------------------------------------------ 9 switchlab90 Enabled ------------------------------------------------ wg_sw_a(config)#
20.
添加、修改、删除 VLAN 的信息 wg_sw_a(config)#vlan database Enters the vlan database privileged EXEC command to access VLAN configuration mode Writes VLAN adds, moves, and changes to the vlan.dat file wg_sw_a(config)#vlan vlan-id mtu mtu-size Identifies a VLAN and changes the MTU size
检查 VTP wg_sw_2950#showvtp status wg_sw_ 2950#show vtp status VTP Version : 2 <--- Indicates v2-capable Configuration Revision : 4 Maximum VLANs supported locally : 68 Number of existing VLANs : 6 VTP Operating Mode : Server VTP Domain Name : switchlab VTP Pruning Mode : Enabled VTP V2 Mode : Disabled <--- Indicates v2 disabled; v1 set VTP Traps Generation : Disabled <--- Catalyst 2950 default MD5 digest : 0x3D 0x02 0xD4 0x3A 0xC4 0x46 0xA1 0x03 Configuration last modified by 10.1.1.40 at 5-4-02 22:25:
34.
设置主干功能 trunk [on| off | desirable | auto | nonegotiate] wg_sw_a(config-if)# On = 打开主干功能并与对方协商执行 Off = 关闭主干功能并与对方协商执行 Desirable = 与对方协商执行 如果对方设为 on 、 desirable 或 auto 则打开主干功能 Auto = 只有对方设为 on 或 desirable 时才打开主干功能 Non-negotiate = 打开主干功能并不再与对方协商执行
35.
设置主干功能 wg_sw_a#conf terminal Enter configuration commands, one per line. End with CNTL/Z wg_sw_a(config)#interface f0/26 wg_sw_a(config-if)#trunk on On = 打开主干功能并与对方协商执行 Off = 关闭主干功能并与对方协商执行 Desirable = 与对方协商执行 如果对方设为 on 、 desirable 或 auto 则打开主干功能 Auto = 只有对方设为 on 或 desirable 时才打开主干功能 Non-negotiate = 打开主干功能并不再与对方协商执行 trunk [on | off | desirable | auto | nonegotiate] wg_sw_a(config-if)#