美文网首页
VTP的基本管理与应用

VTP的基本管理与应用

作者: 君为颜而醉_e7d4 | 来源:发表于2017-12-22 08:19 被阅读0次

                        

                        安徽工业经济职业技术学院

                                              实验报告

                       实验报告课程:网络互联技术基础实验报告

                          实验项目名称:VTP的基本管理与应用

                           专业班级:计算机网络技术31715班

    一、实验名称:

                                       VTP的基本管理与应用配置实验

    二、实验内容:

     (1)   域内的每台交换机都必须使用相同的域名,不论是通过配置实现,还是由交换自动学到的。

    (2)交换机必须是相邻的,即相邻的交换机需要具有相同的域名。

    (3)在所有交换机之间,必须配置中继链路。

    (4)VTP模式有3种 服务器模式(Server)客户机模式(Client) 透明模式(Transparent)

    三、实验目的:

                         掌握交换机上创建、配置VTP域的方法.

    四、实验器材:

                              4台交换机,若干导线.

    五、实验步骤:

    实验拓扑图

    1、(1)将SW1交换机设置为服务器模式(Server)

    SW1#vlan database

    % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.

    SW1(vlan)#vtp domain vtp-1

    Changing VTP domain name from NULL to vtp-1

    SW1(vlan)#vtp password 123

    Setting device VLAN database password to 123

    SW1(vlan)#vtp server

    Device mode already VTP SERVER.

    (2)再创建VLAN

    SW1#conf t

    Enter configuration commands, one per line.  End with CNTL/Z.

    SW1(config)#vlan 10

    SW1(config-vlan)#vlan 20

    (3)]配置Trunk链路进行连接,查看VLAN

    SW1(config)#int range f0/1,f0/2

    SW1(config-if-range)#sw mode trunk

    查看VLAN信息:SW1#show VLAN

    2、将SW3、SW4配置为客户机模式(Client)

    Switch>en

    Switch#vlan database

    % Warning: It is recommended to configure VLAN from config mode,

    as VLAN database mode is being deprecated. Please consult user

    documentation for configuring VTP/VLAN in config mode.

    Switch(vlan)#vtp domain vtp-1

    Domain name already set to vtp-1.

    Switch(vlan)#vtp client

    Setting device to VTP CLIENT mode.

    Switch(vlan)#vtp password 123

    Setting device VLAN database password to 123

    Switch(vlan)#exit

    APPLY completed.

    Exiting....

    Switch#conf t

    Enter configuration commands, one per line.  End with CNTL/Z.

    Switch(config)#int f0/3

    Switch(config-if)#sw mode trunk

    3、将SW2设置为透明模式(Transparent)

    SW2(vlan)#vtp domain vtp-1

    Domain name already set to vtp-1.

    SW2(vlan)#vtp transparent

    Setting device to VTP TRANSPARENT mode.

    SW2(vlan)#vtp password 123

    Setting device VLAN database password to 123

    SW2(vlan)#exit

    APPLY completed.

    Exiting....

    SW2#conf t

    Enter configuration commands, one per line.  End with CNTL/Z

    SW2(config)#int range f0/2,f0/3

    Switch(config-if)#sw mode trunk

    4、查看交换机的VLAN信息

    SW3

    SW4

    ★查看VTP域的相关信息(用以下命令可进行查询)

    SW#Show vtp status

    六、实验结果

    1、通过配置VTP可实现VLAN信息间的传递

    2、只有配置为同一VTP域(即VTP域名相同),交换机之间才能实现VLAN信息共享

    相关文章

      网友评论

          本文标题: VTP的基本管理与应用

          本文链接:https://www.haomeiwen.com/subject/lqsnwxtx.html