zoukankan      html  css  js  c++  java
  • 跨交换机划分VLAN配置及VTP管理交换机的VLAN配置

    拓扑图如下:

     

    目的:使PC-1和PC-3处于同一vlan中,pc-2和pc-4处于同vlan中,首先我们需要为各个主机配置在同一网段的IP地址

       接下来我们分别配置R1,R2保证他们的通信

    R3配置

      enable  进入特权模式

      conf t    进入全局配置模式

        vtp domain test  创建vtp域test

        vtp mode  server  成为vtp主服务器

           vlan 10  创建并进入vlan10

          name  vlan10  命名vlan 10为vlan10

          exit   退出vlan10

        vlan 20  创建并进入vlan20

          name  vlan20  命名vlan 20为vlan20

        interface   f0/1 进入接口0/1

          switchport mode trunk   更改接口为 trunk模式

          exit            退出

        interface   f0/2 进入接口0/2

          switchport mode trunk   更改接口为 trunk模式

           exit            退出

    R1配置

       

      enable  进入特权模式

      conf t    进入全局配置模式

      vtp domain test  加入vtp域test

      vtp mode  client  更改VTP模式为client

      interface f0/3  进入接口0/3

          switchport mode trunk   更改接口为 trunk模式

          exit            退出

      interface f0/1  进入接口0/1

          switchport access vlan 20  归入vlan20

          exit

      interface f0/2  进入接口0/2

          switchport access vlan 10  归入vlan10

          exit

    R2配置

      

       

      enable  进入特权模式

      conf t    进入全局配置模式

      vtp domain test  加入vtp域test

      vtp mode  client  更改VTP模式为client

      interface f0/3  进入接口0/3

          switchport mode trunk   更改接口为 trunk模式

          exit            退出

      interface f0/1  进入接口0/1

          switchport access vlan 10  归入vlan10

          exit

      interface f0/2  进入接口0/2

          switchport access vlan 20  归入vlan20

          exit

  • 相关阅读:
    JPA设置表名和实体名,表字段与实体字段的对应
    mysql5.7下面windows平台大小写敏感
    安装MySQL最后一步出现错误Error Nr.1045解决方法
    thymeleaf 引入js css 无效
    Intellij IDEA社区版打包Maven项目成war包,并部署到tomcat上
    java.sql.SQLException: Field 'id' doesn't have a default value解决方案
    spring mvc出现 Failed to convert property value of type 'java.lang.String' to required type 'java.util.Date' for property 'endtime'
    Spring Boot:Exception parsing document: template="index", line 7
    在线支付接口开发总结
    创业
  • 原文地址:https://www.cnblogs.com/LilacStrawberry/p/9177810.html
Copyright © 2011-2022 走看看