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

  • 相关阅读:
    IllegalStateException
    TimeUnit简析
    Cron表达式
    任务调度之Timer与TimerTask配合
    Executor简析
    this逃逸
    SQL、SQL Server、MySQL与Oracle
    数据库与实例
    vw 、vh、vmin 、vmax
    逻辑(内存)分页与物理分页
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9177539.html
Copyright © 2011-2022 走看看