zoukankan      html  css  js  c++  java
  • 思科之VTP

    1.什么是VTP?

      使用VTP,能使配置在一个或多个交换机上被改变时,那些改变会自动传送给在同一个VTP域中的其他交换机。

    2.VTP模式:

      服务器模式(Server),客户机模式(Client),透明模式。

    3.实验:

      拓扑图: 

        

      s1 为server

      s2 为client

      s3 为透明模式(不发送不接受)

      server 与client之间为trunk 模式

      要有相同的域名

     代码如下:

      s1:

        Switch>en

        Switch#configure 

        Switch(config)#interface fastEthernet 0/1

        Switch(config-if)#switchport mode trunk       //端口模式为trunk

        Switch(config-if)#eix

        Switch(config)#vtp mode server           //vtp 模式为server

        Switch(config)#vtp domain vtp            //vtp的域名为vtp

        Switch(config)#vtp password 123456        //密码为123456

        

      s2:

        Switch>en

        Switch#configure 

        Switch(config)#interface fastEthernet 0/1

        Switch(config-if)#switchport mode trunk 

        Switch(config-if)#exit 

        Switch(config)#vtp mode client       //vtp为client

        Switch(config)#vtp domain vtp       

        Switch(config)#vtp password 123456

        

      s3: 

        Switch>en

        Switch#configure 

        Switch(config)#interface fastEthernet 0/1

        Switch(config-if)#switchport mode trunk 

        Switch(config-if)#exit 

        Switch(config)#vtp mode transparent       //vtp模式为透明模式

        Switch(config)#vtp domain vtp

        Switch(config)#vtp password 123456

        

    结果测试:

        在server下创建一个vlan2。client 下会同步server的vlan2

        s1:

          

        s2:

          

    实验成功。

  • 相关阅读:
    JS的应用(document对象)
    JS的应用(windows对象二)
    JS的应用(windows对象一)
    递归
    函数使用规则和JS内自带的一些函数
    学习笔记之HTML(十秒倒计时;列表收起、展开;下拉列表;
    学习笔记之大图轮播加圆点
    学习笔记之函数类型,for循环,练习
    学习笔记之for循环if循环小练习
    学习笔记之09for循环8个小练习
  • 原文地址:https://www.cnblogs.com/pangya/p/9019577.html
Copyright © 2011-2022 走看看