zoukankan      html  css  js  c++  java
  • 交换实验

    要求:
     1.四台交换机使用MSTP配置,域名为huawei,配置修订号为1,配置两个实例
     2.在SW3/SW4手工创建四个VLAN,分别为VLAN 10 20 30 40,SW1与SW2通过GVRP来动态注册VLAN
     3.将VLAN 10 20 映射到实例1当中,将VLAN 30 40映射到实例2当中
     4.将SW1作为实例1的主根桥、作为实例2的备份根桥,SW2作为实例2的主根桥、作为实例1的
       备份根桥
     5.PC1与PC2属于VLAN 10,PC3与PC4属于VLAN 20
     6.SW3与SW4之间配置eth-trunk链路聚合,采用LACP静态方式
     7.要求PC1与PC2配置为10.1.1.0/24网段,并且能够互相通信
     8.要求PC3与PC4配置为20.1.1.0/24网段,并且能够互相通信
     9.要求保护交换的接口防止从PC端收到不必要的BPDU
     10.要求确保SW1的根桥位置,防止其它交换机抢占根桥,在最合适的地方部署
     
    1.四台交换机使用MSTP配置,域名为huawei,配置修订号为1,配置两个实例
    stp region-configuration
     region-name huawei
     revision-level 1
    active region-configuration
     
     2.在SW3/SW4手工创建四个VLAN,分别为VLAN 10 20 30 40,SW1与SW2通过GVRP来动态注册VLAN
     
    R3为例:
    vlan batch 10 20 30 40
     
    交换机的所有端口trunk
    R1为例:
    interface Ethernet0/0/1
     port link-type trunk
     port trunk allow-pass vlan all
     
    gvrp
    interface Ethernet0/0/1
    gvrp
    交换机所有端口开启gvrp
     
     R1:

    3.将VLAN 10 20 映射到实例1当中,将VLAN 30 40映射到实例2当中

    [Huawei-mst-region]DIS THIS
    #
    stp region-configuration
     region-name huawei
     revision-level 1
     instance 1 vlan 10 20
     instance 2 vlan 30 40
     active region-configuration

     4.将SW1作为实例1的主根桥、作为实例2的备份根桥,SW2作为实例2的主根桥、作为实例1的
       备份根桥

     SW1:

    stp instance 1 root primary
    stp instance 2 root secondary

    SW2:

    stp instance 1 root secondary
    stp instance 2 root primary

    5.PC1与PC2属于VLAN 10,PC3与PC4属于VLAN 20

    LSW3:

    interface Ethernet0/0/5
     port link-type access
     port default vlan 10

     interface Ethernet0/0/6
     port link-type access
     port default vlan 20
    LSW4:
    interface Ethernet0/0/5
     port link-type access
     port default vlan 20
    #
    interface Ethernet0/0/6
     port link-type access
     port default vlan 10
    #
     
    6.SW3与SW4之间配置eth-trunk链路聚合,采用LACP静态方式
     SW3为例:
     interface Eth-Trunk0
     mode lacp-static
    trunkport e 0/0/3 0/0/4
    R3:
     
      7.要求PC1与PC2配置为10.1.1.0/24网段,并且能够互相通信

     8.要求PC3与PC4配置为20.1.1.0/24网段,并且能够互相通信
    SW3 SW4 都做;
    interface Eth-Trunk0
     port link-type trunk
     port trunk allow-pass vlan 2 to 4094
    9.要求保护交换的接口防止从PC端收到不必要的BPDU

    LS3和LS4接pc的所有端口: 

    interface Ethernet0/0/5
     port link-type access
     port default vlan 10
     stp bpdu-filter enable
     stp edged-port enable

    10.要求确保SW1的根桥位置,防止其它交换机抢占根桥,在最合适的地方部署

    在SW1的3个端口都做

    #进口

    #stp root-protection

  • 相关阅读:
    Eclipse中添加MyEclipse插件
    用GWT开发的HelloGWT程序
    GWT module 'xxx' may need to be (re)compiled解决办法
    GWTDesigner_v5.1.0破解码
    Firefox火狐广告过滤插件Adblock Plus过滤规则包[中文维护小组]
    工程师们,不要想一辈子靠技术混饭吃
    PHP生成类似类似优酷、腾讯视频等其他视频链的ID
    (外挂破解)Cheat Engine(内存修改工具)V6.2中文版软件介绍
    ucos-ii核心算法分析(转)
    Websocket,ProtoBuffer,Hightlight,JSON 等,最近遇到的一些知识点小结
  • 原文地址:https://www.cnblogs.com/mqqq/p/11390919.html
Copyright © 2011-2022 走看看