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  保存

  • 相关阅读:
    html5传感器
    html5 canvas手写字代码(兼容手机端)
    PHP pdo单例模式连接数据库
    PHP变量回收
    PHP不过过滤防止xss攻击的方法
    jquery监听回车
    jquery预加载显示百分比
    创建自己的代码仓库
    Luxurious Houses
    Vasya the Hipster
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9177539.html
Copyright © 2011-2022 走看看