作业相关
学习教程
总 结
链 接
表扬栏
   返回主页   后退          

VTP服务器设置:
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/24 //选择交换机连接接口
Switch(config-if)#sw mode trunk
//开户trunk,默认是access模式
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

Switch(config-if)#int f0/23
Switch(config-if)#sw mode trunk

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up

Switch(config-if)#exit
Switch(config)#vtp doma
Switch(config)#vtp domain njzz //建立确认域名为njzz
Changing VTP domain name from NULL to njzz
Switch(config)#vtp pa
Switch(config)#vtp password njzz//确认VTP域名密码 njzz
Setting device VLAN database password to njzz
Switch(config)#vtp m
Switch(config)#vtp mode ?
client Set the device to client mode.//客户机模式,接收VLAN信息
server Set the device to server mode.//服务器模式,分发VLAN信息
transparent Set the device to transparent mode.//透明模式,不接收VLAN信息
但加入域,并确认密码准确,是可以传递VLAN信息给其他客户机

Switch(config)#vtp mode serv//确认当前交换机为服务器模式
Device mode already VTP SERVER.
Switch(config)#vlan 10 //建立VALN 10
Switch(config-vlan)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vtp stat//显示当前交换机的VTP状态
VTP Version : 2 //版本
Configuration Revision : 1 //设置一次VLAN
Maximum VLANs supported locally : 255 //最多设置255次
Number of existing VLANs : 6//分发的VLAN个数
VTP Operating Mode : Server//模式
VTP Domain Name : njzz//域名
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x3E 0x37 0x24 0xCF 0x02 0xC5 0xB9 0x9D
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:01
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#sh vlan //显示当前的VLAN 信息

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22
10 VLAN0010 active
20 VLAN0020 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

Switch>
VTP客户机设置:
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/23
Switch(config-if)#sw mode trunk //开启trunk模式

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up

Switch(config-if)#exit
Switch(config)#vtp domain njzz //确认VTP域名为NJZZ
Domain name already set to njzz.
Switch(config)#vtp pa
Switch(config)#vtp password njzz//确认密码为NJZZ
Setting device VLAN database password to njzz
Switch(config)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

S
Switch#
Switch#sh vtp stat//显示VTP状态
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 255
Number of existing VLANs : 6
VTP Operating Mode : Server//服务器模式
当不输入vtp mode clinet 或者trans时,默认为服务器模式

VTP Domain Name : njzz
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x3E 0x37 0x24 0xCF 0x02 0xC5 0xB9 0x9D
Configuration last modified by 0.0.0.0 at 3-1-93 00:07:01
Local updater ID is 0.0.0.0 (no valid interface found)

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 20//可以默认服务器来建立新VLAN
Switch(config-vlan)#^Z
Switch#

 

VTP透明设置:

Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int f0/24
Switch(config-if)#sw mode trunk

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up

Switch(config-if)#exit
Switch(config)#vtp mode ?
client Set the device to client mode.
server Set the device to server mode.
transparent Set the device to transparent mode.
Switch(config)#vtp mode tran //开启透明模式
Setting device to VTP TRANSPARENT mode.
Switch(config)#vtp domain njzz //确认域名
Domain name already set to njzz.
Switch(config)#vtp pa
Switch(config)#vtp password njzz//确认密码
Setting device VLAN database password to njzz
Switch(config)#^Z
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
显示VLAN信息,没有,则没有接收VLAN信息
Switch#sh vtp stat
显示VTP状态
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 5
VTP Operating Mode : Transparent//透明模式
VTP Domain Name : njzz
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xE8 0x79 0x25 0x25 0xBA 0xAC 0x05 0xCF
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Switch#sh vtp stat

Switch>en
Switch#sh vtp stat
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 5
VTP Operating Mode : Transparent
VTP Domain Name : njzz
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xE8 0x79 0x25 0x25 0xBA 0xAC 0x05 0xCF
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Switch#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active 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, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0

Switch#

 

 


2025促销:香港特价空间,最低仅需20元,可永久使用!
本站空间由 三维免费空间 友情提供