zoukankan      html  css  js  c++  java
  • 链路聚合二:动态公有模式

    一、拓扑结构图

    二、实验步骤

    另外一个交换机与该交换机配置相同,但是在链路聚合时成员端口所属聚合组号和成员端口的模式不同。(改为如下)

    Switch(config-if-range)#channel-group 2 mode passive

    1、给主机设IP

     在该二层交换机实验中,主机的IP需要和交换机在同一个网段,且不能与其冲突。

    2、给交换机设IP

    Switch>enable
    Switch#config
    Configuring from terminal, memory, or network [terminal]? 
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#interface vlan 1
    Switch(config-if)#ip address 192.168.1.100 255.255.255.0
    Switch(config-if)#no shutdown
    Switch(config-if)#exit

    3、设置链路聚合

    Switch(config)#interface range fastEthernet 0/1-2
    Switch(config-if-range)#switchport mode trunk 
    
    Switch(config-if-range)#channel-protocol ?
      lacp  Prepare interface for LACP protocol
      pagp  Prepare interface for PAgP protocol
    Switch(config-if-range)#channel-protocol lacp
    Switch(config-if-range)#channel-group 1 mode ? active Enable LACP unconditionally auto Enable PAgP only if a PAgP device is detected desirable Enable PAgP unconditionally on Enable Etherchannel only passive Enable LACP only if a LACP device is detected
    Switch(config-if-range)#channel-group 1 mode active

      以上的 fastEthernet 0/1-2中的1-2是两个交换机相连的接口。

    4、做负载均衡

    Switch(config-if)#exit
    Switch(config)#port-channel load-balance src-ip 
    

    补充:

    思科交换机的链路聚合根据使用的协议可以分为三种工作模式LACP模式、PAgP模式和On模式。

    具体这三种工作模式下共有5种不同的端口模式active、passive、auto、desirable、on。

    其中active和passive使用LACP协议进行工作,auto和desirable使用PAgP协议进行工作,on则是强制启用链路聚合,相当于华三的手工聚合模式。

    三、实验小结

  • 相关阅读:
    使用jquery的js的页面实现例子
    Jmeter文章索引贴
    使用Jmeter进行http接口测试
    如何利用JMeter模拟超过 5 万的并发用户
    APP测试功能点总结
    软件测试面试题汇总
    python编程基础:《http://www.cnblogs.com/wiki-royzhang/category/466416.html》
    LoadRunner培训初级教程
    LoadRunner性能测试过程/流程
    【转】正则表达式30分钟入门教程
  • 原文地址:https://www.cnblogs.com/py2019/p/12070144.html
Copyright © 2011-2022 走看看