温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

cisco之VTP

发布时间:2020-08-29 02:03:34 来源:网络 阅读:392 作者:zengwj1949 栏目:网络安全

    VTP(虚拟局域网中继协议):是思科的私有协议,通过VTP协议,可以实现交换机之间互相传递消息,从而实现VLAN的同步和统一管理。

VTP示例:

cisco之VTP

R3:

R3(config)#int f1/1                                #trunk模式

R3(config-if)#switchport mode trunk


R3(config)#vtp domain cisco                        #所有启用VTP的交换机域名一致

R3(config)#vtp password cisco                      #VTP密码一致


R3(config)#vtp mode server                         #VTP域至少有一台处于服务器模式,以便于

R3(config)#vtp pruning                             创建、修改、删除VLAN

Pruning switched on


R3(config)#vlan 10                                 #新建VLAN

R3(config-vlan)#name vlan10

R3(config-vlan)#vlan 20

R3(config-vlan)#name vlan20


R3(config)#int vlan 1                              #管理IP

R3(config-if)#ip add 172.16.1.1 255.255.255.0

R3(config-if)#no sh


R3#sh vlan-switch                                  #查看VLAN


VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa1/0, Fa1/2, Fa1/3, Fa1/4

                                                Fa1/5, Fa1/6, Fa1/7, Fa1/8

                                                Fa1/9, Fa1/10, Fa1/11, Fa1/12

                                                Fa1/13, Fa1/14, Fa1/15

10   vlan10                           active

20   vlan20                           active


R3#show vtp status                                 #查看VTP状态信息

VTP Version                     : 2

Configuration Revision          : 3

Maximum VLANs supported locally : 36

Number of existing VLANs        : 7

VTP Operating Mode              : Server

VTP Domain Name                 : cisco

VTP Pruning Mode                : Enabled

VTP V2 Mode                     : Disabled

VTP Traps Generation            : Disabled

MD5 digest                      : 0x0A 0x68 0x1E 0xCC 0xFC 0xF2 0x7E 0x6F

Configuration last modified by 0.0.0.0 at 3-1-02 00:21:50

Local updater ID is 172.16.1.1 on interface Vl1 (lowest numbered VLAN interface found)


R4、R5配置:

R4(config)#int f1/1

R4(config-if)#switchport mode trunk

R4(config)#int f1/2

R4(config-if)#sw mo trunk

R4(config)#vtp domain cisco

R4(config)#vtp password cisco

R4(config)#vtp mode client


查看R4、R5是否同步VLAN:

R4#show vlan-switch


VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa1/0, Fa1/3, Fa1/4, Fa1/5

                                                Fa1/6, Fa1/7, Fa1/8, Fa1/9

                                                Fa1/10, Fa1/11, Fa1/12, Fa1/13

                                                Fa1/14, Fa1/15

10   vlan10                           active

20   vlan20                           active


R5#show vlan-swi


VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Fa1/0, Fa1/1, Fa1/3, Fa1/4

                                                Fa1/5, Fa1/6, Fa1/7, Fa1/8

                                                Fa1/9, Fa1/10, Fa1/11, Fa1/12

                                                Fa1/13, Fa1/14, Fa1/15

10   vlan10                           active

20   vlan20                           active


查看VTP状态:

R4#sh vtp status

VTP Version                     : 2

Configuration Revision          : 3

Maximum VLANs supported locally : 36

Number of existing VLANs        : 7

VTP Operating Mode              : Client

VTP Domain Name                 : cisco

VTP Pruning Mode                : Enabled

VTP V2 Mode                     : Disabled

VTP Traps Generation            : Disabled

MD5 digest                      : 0x0A 0x68 0x1E 0xCC 0xFC 0xF2 0x7E 0x6F

Configuration last modified by 0.0.0.0 at 3-1-02 00:21:50


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI