• 交换实验


    要求:
     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

  • 相关阅读:
    VB.Command()的参数
    XAMPP 启动mysql报错 InnoDB: Error: could not open single-table tablespace file……
    在不安装Windows服务的情况下,如何进行调试或测试
    Java基础东西(按位操作运算)
    浅谈web应用的负载均衡、集群、高可用(HA)解决方案
    关于CSDN, cnblog, iteye和51cto四个博客网站的比较与分析
    bzoj2243[SDOI2011]染色
    洛谷P2740 [USACO4.2]草地排水Drainage Ditches
    bzoj4198[noi2015]荷马史诗
    矩阵快速幂模板(pascal)
  • 原文地址:https://www.cnblogs.com/mqqq/p/11390919.html
Copyright © 2020-2023  润新知