使用vtp管理vlan
sw1交换机配置 -server模式
sw1#vlan database
sw1(vlan)#vtp domain ccna
Changing VTP domain name from NULL to ccna
sw1(vlan)#vlan 100 name it_sw1
sw1(vlan)#vtp server
Device mode already VTP SERVER.
sw1(vlan)#
sw1(vlan)#vlan 100 name it_sw1
VLAN 100 added:
Name: it_sw1
sw1(vlan)#vlan 200 name sale_sw1
VLAN 200 added:
Name: sale_sw1
sw1(vlan)#vlan 300 name hr_sw1
VLAN 300 added:
sw1#show vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 256
Number of existing VLANs : 8
VTP Operating Mode : Server
VTP Domain Name : ccna
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xC4 0x1B 0x53 0x7F 0x21 0x64 0x43 0x04
Configuration last modified by 0.0.0.0 at 3-1-02 00:10:50
Local updater ID is 0.0.0.0 (no valid interface found)
sw3 交换机配置 -Transparent模式
sw3#vlan database
sw3(vlan)#vtp transparent
Setting device to VTP TRANSPARENT mode.
sw3#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 256
Number of existing VLANs : 12
VTP Operating Mode : Transparent
VTP Domain Name : ccna
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x24 0x39 0x59 0xBB 0xA0 0xDE 0x80 0x68
Configuration last modified by 0.0.0.0 at 3-1-02 02:01:35
sw3#
sw2 交换机配置 -client模式
sw2# vlan database
sw2(vlan)#vtp client
Device mode already VTP CLIENT.
sw2(vlan)#
sw2#show vtp status
VTP Version : 2
Configuration Revision : 5
Maximum VLANs supported locally : 256
Number of existing VLANs : 13
VTP Operating Mode : Client
VTP Domain Name : ccna
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xF3 0x3A 0xDE 0xEC 0xC0 0x2B 0xD1 0x63
Configuration last modified by 0.0.0.0 at 3-1-02 02:06:27
sw1上创建vlan 900,查看sw3,sw2结果
sw1(vlan)#vlan 900 name vtp900
VLAN 900 added:
Name: vtp900
sw1(vlan)#exit
#900已经创建成功了
sw1#show vlan-sw
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13
100 it_sw1 active Fa0/0
200 sale_sw1 active Fa0/1
300 hr_sw1 active Fa0/2
400 vtp_test1 active
500 vtp_test2 active
600 test3 active
800 aaaaaaaa active
900 vtp900 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
100 enet 100100 1500 - - - - - 0 0
200 enet 100200 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0
400 enet 100400 1500 - - - - - 0 0
#sw3上查看,没有900,透明模式只转发,本地不做修改
sw3#show vlan-sw
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3
Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13
100 it_sw1 active
200 sale_sw1 active
300 hr_sw1 active
400 vtp_test1 active
500 vtp_test2 active
600 test3 active
800 aaaaaaaa active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
100 enet 100100 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
200 enet 100200 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0
400 enet 100400 1500 - - - - - 0 0
500 enet 100500 1500 - - - - - 0 0
600 enet 100600 1500 - - - - - 0 0
800 enet 100800 1500 - - - - - 0 0
1002 fddi 101002 1500 - 0 - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
sw3#
#sw2上查看,900已经传递过来,说明正常了。
sw2#show vlan-sw
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
100 it_sw1 active Fa0/0
200 sale_sw1 active Fa0/1
300 hr_sw1 active Fa0/2
400 vtp_test1 active
500 vtp_test2 active
600 test3 active
800 aaaaaaaa active
900 vtp900 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
100 enet 100100 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
200 enet 100200 1500 - - - - - 0 0
300 enet 100300 1500 - - - - - 0 0
400 enet 100400 1500 - - - - - 0 0
500 enet 100500 1500 - - - - - 0 0
600 enet 100600 1500 - - - - - 0 0
800 enet 100800 1500 - - - - - 0 0
900 enet 100900 1500 - - - - - 0 0
1002 fddi 101002 1500 - 0 - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
标签:sw1,enet,复习,Fa0,vlan,vtp,1500,ccna,active
From: https://www.cnblogs.com/vbear/p/17087731.html