逻辑链路聚合(LLA)
链路聚合技术亦称主干技术(Trunking)或捆绑技术(Bonding),其实质是将两台设备间的数条物理链路“组合”成逻辑上的一条数据通路,称为一条聚合链路,如Figure1示意。交换机之间物理链路Link1、Link2和Link3组成一条聚合链路。该链路在逻辑上是一个整体,内部的组成和传输数据的细节对上层服务是透明的。
双ES1-24配置:服务器方向
基于IEEE802.3ad标准的LACP(Link Aggregation Control Protocol,链路聚合控制协议)协议是一种实现链路动态聚合的协议,运行该协议的设备之间通过互发LACPDU(Link Aggregation Control Protocol Data Unit,链路聚合控制协议数据单元)来交互链路聚合的相关信息。而跨交换机的链路聚合又提供了多一层的对于交换机故障的HA,假如多个ES1-24交换机配置了inter-switch link(ISL) 端口通道,服务器端口就要配置成active-active模式。Solaris服务器上,端口聚合使用“aggr”,Linux上面使用的是“bonding”,下面是一个L2配置示例,server使用的是vlan 2和3,在每个交换机上进行如下配置:
- #First disable GVRP, GMRP and then configure the VLANs 2 and 3.
- SEFOS# configure terminal
- SEFOS(config)# set gvrp disable
- SEFOS(config)# set gmrp disable
- SEFOS(config)# set port-channel enable
- SEFOS(config)# interface vlan 1
- SEFOS(config-if)# shutdown
- SEFOS(config-if)# no ip address
- SEFOS(config-if)# end
- #Step 1: Create VLANs 2 and 3 on the Oracle Switch ES1-24 switches.
- SEFOS(config)# vlan 2
- SEFOS(config-vlan)# ports add extreme-ethernet 0/1
- SEFOS(config-vlan)# vlan active
- SEFOS(config-vlan)# exit
- SEFOS(config)# vlan 3
- SEFOS(config-vlan)# ports add extreme-ethernet 0/1
- SEFOS(config-vlan)# vlan active
- SEFOS(config-vlan)# exit
- SEFOS(config-vlan)# end
- SEFOS# write startup-config
-
- #Step 2: Configure the port connecting to server as trunk port.
- SEFOS# configure terminal
- SEFOS(config)# interface range extreme-ethernet 0/1
- SEFOS(config-if)# switchport mode trunk
- SEFOS(config-if)# no shutdown
- SEFOS(config-if)# exit
双ES1-24配置:核心交换机方向
上行的通道使用的是4个10G SFP+端口。一个比较推荐的设计是,每个ES1-24交换机均连接到两个核心交换机上面,每个核心交换机和每个ES1-24通过两个端口相连。这两个上行的端口采用聚合方式并配置到trunk模式- Step 3: Configure port aggregation for uplink ports. Port-channel 10 aggregates ports 21–22 to core
- switch1. Port-channel 11 aggregates ports 23–24 to core switch2.
- SEFOS# configure terminal
- SEFOS(config)# set port-channel enable
- SEFOS(config)# interface port-channel 10
- SEFOS(config-if)# no shutdown
- SEFOS(config)# exit
- SEFOS(config)# interface port-channel 11
- SEFOS(config-if)# no shutdown
- SEFOS(config)# end
- Step 4: Add ports to uplink port-channels.
- SEFOS# configure terminal
- SEFOS(config)# interface range extreme-ethernet 0/21-22
- SEFOS(config-if)# no shutdown
- SEFOS(config-if)# channel-group 10 mode active
- SEFOS(config-if)# exit
- SEFOS(config)# interface range extreme-ethernet 0/23-24
- SEFOS(config-if)# no shutdown
- SEFOS(config-if)# channel-group 11 mode active
- SEFOS(config-if)# end
-
- Step 5: Configure uplink port-channels to allow all VLANs.
- SEFOS# configure terminal
- SEFOS(config)# interface port-channel 10
- SEFOS(config-if)# switchport mode trunk
- SEFOS(config-if)# no shutdown
- SEFOS(config)# exit
- SEFOS(config)# interface port-channel 11
- SEFOS(config-if)# switchport mode trunk
- SEFOS(config-if)# no shutdown
- SEFOS(config)# end
- Step 6: Configure L2- PVRST on Oracle Switch ES1-24 such that it is not the root bridge for any
- VLANs configured. Doing so makes the core switch become the root, and only intended traffic (not all
- core traffic) reaches the Oracle Switch ES1-24 switches.
- SEFOS# configure terminal
- SEFOS(config)# spanning-tree mode pvrst
- Spanning Tree enabled protocol is MSTP, now MSTP is being shutdown
- PVRST is started.
- PVRST Module status is changed
- SEFOS(config)# spanning-tree vlan 2 brg-priority 61440
- SEFOS(config)# spanning-tree vlan 3 brg-priority 61440
- SEFOS(config)# end
详细信息可以参考这个文档