zoukankan      html  css  js  c++  java
  • 跨交换机划分vlan配置

    实验要求:使两台交换机上同一vlan的主机能够通信,不同vlan的主机不能通信

    拓扑如下:

     

    涉及内容有:

    1.vlan的创建和划分

    2.端口trunk模式的设置

    配置如下:

    Switch1

    enable  进入特权模式

    configure terminal   进入全局模式

    interface f0/20  进入端口

    switchport mode trunk  将端口模式修改为trunk

    exit   返回上一级

    vlan 10  创建并进入vlan10

    vlan 20  创建并进入vlan20

    interface f0/1  进入端口

    switchport mode access  将端口模式修改为access

    switchport access vlan 10  将端口划分到vlan10

    interface f0/2  进入端口

    switchport mode access  将端口模式修改为access

    switchport access vlan 20  将端口划分到vlan20

    copy running-config startup-config  保存 

    Switch2

    enable  进入特权模式

    configure terminal   进入全局模式

    interface f0/20  进入端口

    switchport mode trunk  将端口模式修改为trunk

    exit   返回上一级

    vlan 10  创建并进入vlan10

    vlan 20  创建并进入vlan20

    interface f0/1  进入端口

    switchport mode access  将端口模式修改为access

    switchport access vlan 10  将端口划分到vlan10

    interface f0/2  进入端口

    switchport mode access  将端口模式修改为access

    switchport access vlan 20  将端口划分到vlan20

    copy running-config startup-config  保存

  • 相关阅读:
    测试工程师的分工
    功能点算法及在软件测试中的应用Part3
    功能点算法及在软件测试中的应用Part4
    开发丈夫和测试妻子
    好友的AA制生活
    测试数据建模
    Windows 工具总结
    C# ActiveX control without a form
    【原创】WebReuest在GetResponse()时异常信息为ProtocolError的解决
    使用ShellExecute带路径遇到的问题
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9177539.html
Copyright © 2011-2022 走看看