首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 网络协议 >> 其他协议 >> 正文

VTP协议实验详细配置步骤

  步骤4

   配置SW1将FA0/11、和0/12端口组合为一个逻辑信道:

   sw1(config)#interface range fastethernet0/11 - 12
   sw1(config-if-range)#channel-group 1 mode on
   Creating a port-channel interface Port-channel 1

   配置SW2将FA0/11、和0/12端口组合为一个逻辑信道:

   sw2(config)#interface range fastethernet0/11 - 12
   sw2(config-if-range)#channel-group 1 mode on
   Creating a port-channel interface Port-channel 1
   sw2(config-if-range)#

   使用show etherchannel summary命令检查快速以太通道连接:
   sw1#show etherchannel 1 summary
   Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        u - unsuitable for bundling
        U - in use      f - failed to allocate aggregator
        d - default port

   Number of channel-groups in use: 1
   Number of aggregators:           1

   Group  Port-channel  Protocol    Ports
   ------+-------------+-----------+-----------------------------------------------
   1      Po1(SU)          -        Fa0/11(Pd)  Fa0/12(P)

 

   sw2#show etherchannel 1 summary
   Flags:  D - down        P - in port-channel
           I - stand-alone s - suspended
           H - Hot-standby (LACP only)
           R - Layer3      S - Layer2
           u - unsuitable for bundling
           U - in use      f - failed to allocate aggregator

           d - default port
   Number of channel-groups in use: 1
   Number of aggregators:           1

   Group  Port-channel  Protocol    Ports
   ------+-------------+-----------+-----------------------------------------------
   1      Po1(SU)          -        Fa0/11(Pd) Fa0/12(P)
  

       步骤5

        在SW1上配置VTP域CISCO并创建名为VLAN 10和VLAN 20的VLAN。2950交换机默认是VTP服务器模式,所以你不需要配置它。然而,如果需要的话,配置模式中启用服务器的命令是vtp mode server:

    sw1(config)#vtp mode server
    Device mode already VTP SERVER.
    sw1(config)#vtp domain cisco
    Changing VTP domain name from NULL to cisco
    sw1(config)#vtp password xxx
    Setting device VLAN database password to xxx
    sw1(config)#
   
   
    配置SW2作为VTP客户

    sw2(config)#vtp mode client
    Setting device to VTP CLIENT mode.
    sw2(config)#vtp domain cisco
    Domain name already set to cisco.
    sw2(config)#
   
    使用show vtp status命令检查VTP重要信息:

    sw1#show vtp status
    VTP Version                     : 2
    Configuration Revision          : 0
    Maximum VLANs supported locally : 64
    Number of existing VLANs        : 5
    VTP Operating Mode              : Server
    VTP Domain Name                 : cisco
    VTP Pruning Mode                : Disabled
    VTP V2 Mode                     : Disabled
    VTP Traps Generation            : Disabled
    MD5 digest                      : 0x8C 0xE8 0x23 0x13 0xC9 0xD9 0x1C 0xEA
    Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
    Local updater ID is 0.0.0.0 (no valid interface found)
    sw1#
   
   
    使用show vtp counters命令检查VTP发送和接收的通告请求,汇总通告,子网通告和加入消息的条目,以及检测到的配置错误。

    sw1#show vtp counters
    VTP statistics:
    Summary advertisements received    : 2
    Subset advertisements received     : 1
    Request advertisements received    : 1
    Summary advertisements transmitted : 2
    Subset advertisements transmitted  : 2
    Request advertisements transmitted : 0
    Number of config revision errors   : 1
    Number of config digest errors     : 0
    Number of V1 summary errors        : 0


    VTP pruning statistics:

    Trunk            Join Transmitted Join Received    Summary advts received from
                                                   non-pruning-capable device


    ---------------- ---------------- ---------------- ---------------------------
    Po1                 0                1                0
    sw1#
   
   
    sw2#show vtp status
    VTP Version                     : 2
    Configuration Revision          : 0
    Maximum VLANs supported locally : 64
    Number of existing VLANs        : 5
    VTP Operating Mode              : Client
    VTP Domain Name                 : cisco
    VTP Pruning Mode                : Disabled
    VTP V2 Mode                     : Disabled
    VTP Traps Generation            : Disabled
    MD5 digest                      : 0x57 0x30 0x6D 0x7A 0x76 0x12 0x7B 0x40
    Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
    sw2#
    sw2#show vtp counters
    VTP statistics:
    Summary advertisements received    : 4
    Subset advertisements received     : 3
    Request advertisements received    : 0
    Summary advertisements transmitted : 2
    Subset advertisements transmitted  : 1
    Request advertisements transmitted : 2
    Number of config revision errors   : 0
    Number of config digest errors     : 2
    Number of V1 summary errors        : 0


    VTP pruning statistics:

    Trunk            Join Transmitted Join Received    Summary advts received from
                                                   non-pruning-capable device
    ---------------- ---------------- ---------------- ---------------------------

    Po1                 1                0                0

上一页  [1] [2] [3] [4] 下一页

【责编:Zenghui】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航