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

  • 相关阅读:
    网络编程学习笔记:Socket编程
    C# url 路径转换 相对路径 转换为 绝对路径
    利用pycharm运行scrapy以及scrapy的配置
    基于scrapy的分布式爬虫抓取新浪微博个人信息和微博内容存入MySQL
    LeetCode 1. Two Sum
    【转载】C#异常Retry通用类
    【转载】WebDriver(C#)之十点使用心得
    c#值类型和引用类型
    percona5.7 源码安装
    android UI进阶之用ViewPager实现欢迎引导页面[转]
  • 原文地址:https://www.cnblogs.com/LilacStrawberry/p/9177810.html
Copyright © 2011-2022 走看看