Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2396809
  • 博文数量: 328
  • 博客积分: 4302
  • 博客等级: 上校
  • 技术积分: 5486
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-01 11:14
个人简介

悲剧,绝对的悲剧,悲剧中的悲剧。

文章分类

全部博文(328)

文章存档

2017年(6)

2016年(18)

2015年(28)

2014年(73)

2013年(62)

2012年(58)

2011年(55)

2010年(28)

分类: 网络与安全

2014-06-21 12:28:03

下面会介绍一些比较高级的网络配置,包括可以提供倍增带宽和高可用性的双交换机的链路聚合等。

逻辑链路聚合(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,在每个交换机上进行如下配置:
  1. #First disable GVRP, GMRP and then configure the VLANs 2 and 3.
  2. SEFOS# configure terminal
  3. SEFOS(config)# set gvrp disable
  4. SEFOS(config)# set gmrp disable
  5. SEFOS(config)# set port-channel enable
  6. SEFOS(config)# interface vlan 1
  7. SEFOS(config-if)# shutdown
  8. SEFOS(config-if)# no ip address
  9. SEFOS(config-if)# end

  10. #Step 1: Create VLANs 2 and 3 on the Oracle Switch ES1-24 switches.
  11. SEFOS(config)# vlan 2
  12. SEFOS(config-vlan)# ports add extreme-ethernet 0/1
  13. SEFOS(config-vlan)# vlan active
  14. SEFOS(config-vlan)# exit
  15. SEFOS(config)# vlan 3
  16. SEFOS(config-vlan)# ports add extreme-ethernet 0/1
  17. SEFOS(config-vlan)# vlan active
  18. SEFOS(config-vlan)# exit
  19. SEFOS(config-vlan)# end
  20. SEFOS# write startup-config
  21.  
  22. #Step 2: Configure the port connecting to server as trunk port.
  23. SEFOS# configure terminal
  24. SEFOS(config)# interface range extreme-ethernet 0/1
  25. SEFOS(config-if)# switchport mode trunk
  26. SEFOS(config-if)# no shutdown
  27. SEFOS(config-if)# exit

双ES1-24配置:核心交换机方向

上行的通道使用的是4个10G SFP+端口。一个比较推荐的设计是,每个ES1-24交换机均连接到两个核心交换机上面,每个核心交换机和每个ES1-24通过两个端口相连。这两个上行的端口采用聚合方式并配置到trunk模式
  1. Step 3: Configure port aggregation for uplink ports. Port-channel 10 aggregates ports 21–22 to core
  2. switch1. Port-channel 11 aggregates ports 23–24 to core switch2.
  3. SEFOS# configure terminal
  4. SEFOS(config)# set port-channel enable
  5. SEFOS(config)# interface port-channel 10
  6. SEFOS(config-if)# no shutdown
  7. SEFOS(config)# exit
  8. SEFOS(config)# interface port-channel 11
  9. SEFOS(config-if)# no shutdown
  10. SEFOS(config)# end

  11. Step 4: Add ports to uplink port-channels.
  12. SEFOS# configure terminal
  13. SEFOS(config)# interface range extreme-ethernet 0/21-22
  14. SEFOS(config-if)# no shutdown
  15. SEFOS(config-if)# channel-group 10 mode active
  16. SEFOS(config-if)# exit
  17. SEFOS(config)# interface range extreme-ethernet 0/23-24
  18. SEFOS(config-if)# no shutdown
  19. SEFOS(config-if)# channel-group 11 mode active
  20. SEFOS(config-if)# end
  21.  
  22. Step 5: Configure uplink port-channels to allow all VLANs.
  23. SEFOS# configure terminal
  24. SEFOS(config)# interface port-channel 10
  25. SEFOS(config-if)# switchport mode trunk
  26. SEFOS(config-if)# no shutdown
  27. SEFOS(config)# exit
  28. SEFOS(config)# interface port-channel 11
  29. SEFOS(config-if)# switchport mode trunk
  30. SEFOS(config-if)# no shutdown
  31. SEFOS(config)# end
为了避免环路,要配置MSTP协议。然而,如果核心交换机配置了PVRST,那ES1-24也要进行这个配置。可以用show spanning-tree命令来查看扩散树
  1. Step 6: Configure L2- PVRST on Oracle Switch ES1-24 such that it is not the root bridge for any
  2. VLANs configured. Doing so makes the core switch become the root, and only intended traffic (not all
  3. core traffic) reaches the Oracle Switch ES1-24 switches.
  4. SEFOS# configure terminal
  5. SEFOS(config)# spanning-tree mode pvrst
  6. Spanning Tree enabled protocol is MSTP, now MSTP is being shutdown
  7. PVRST is started.
  8. PVRST Module status is changed
  9. SEFOS(config)# spanning-tree vlan 2 brg-priority 61440
  10. SEFOS(config)# spanning-tree vlan 3 brg-priority 61440
  11. SEFOS(config)# end

详细信息可以参考这个文档
阅读(4070) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~