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

  • 相关阅读:
    Redis-10 Bitmap位图基本操作
    Redis学习-09 hyperloglog基本操作
    Redis学习-08 Geospatial地理位置详解
    Redis学习-07 Zset有序集合
    Redis学习-06 Hash哈希基本操作
    部分知识路径
    Docker 容器中安装vi、ifconfig、ping命令
    Java new一个对象的过程超级详解
    SVN
    创建ssm项目
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9177539.html
Copyright © 2011-2022 走看看