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

  • 相关阅读:
    Getting Started with MongoDB (MongoDB Shell Edition)
    Ioc
    BsonDocument
    Find or Query Data with C# Driver
    Insert Data with C# Driver
    Connect to MongoDB
    What's the difference between returning void and returning a Task?
    Import Example Dataset
    jQuery来源学习笔记:整体结构
    Word文件交换的电脑打开字体、排版变化的原因和解决方法!
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9177539.html
Copyright © 2011-2022 走看看