时间: 2020-11-25|25次围观|0 条评论

拓扑图如下:

 

 跨交换机划分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

转载于:https://www.cnblogs.com/LilacStrawberry/p/9177810.html

原文链接:https://blog.csdn.net/weixin_30342827/article/details/96833973

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《跨交换机划分VLAN配置及VTP管理交换机的VLAN配置
   

还没有人抢沙发呢~