链路聚合配置案例
- 格式:doc
- 大小:345.00 KB
- 文档页数:6
链路聚合配置案例
链路聚合亦称主干技术(Trunking)或捆绑技术(Bonding),其实质是将两台设备间的两条或多条物理链路“组合”成逻辑上的一条数据通路。该链路在逻辑上是一个整体,内部的组成和传输数据的细节对上层服务是透明的。
聚合内部的物理链路共同完成数据收发任务并相互备份。只要还存在能正常工作的成员,整个传输链路就不会失效。
TOS3.3.005目前只支持MODE ON模式,默认每个成员接口都是up的,流量可以根据算法在所有接口上分担,不会进行链路的保活探测。
二层链路聚合配置:
采用思科2900系列交换机同防火墙相连,把2条线路聚合成一条逻辑线路;
交换机参与接口:FastEthernet0/1 FastEthernet0/2 防火墙参与接口:ETH1 ETH2 ;
两端都使用LACP的MODE ON模式,采用相同的算法(src-mac);
配置要点:
两端参与聚合的接口都需要为相同的模式(要么都是Access要么都是Trunk)
防火墙配置链路聚合
WEBUI配置步骤:
1、在网络管理—接口—链路聚合里新添加一个聚合端口,选择参与聚合的物理接口ETH1和ETH2 及 负载算法即可。
交换机配置:
Switch(config)#interface range fastEthernet 0/1 -2
Switch(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
Switch(config-if-range)#no shutdown
Switch(config-if-range)#exit
Switch(config)#port-channel load-balance src-mac
配置完毕通过show etherchanel summary 查看链路建立情况
Switch#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
u - unsuitable for bundling
U - in use f - failed to allocate aggregator
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) - Fa0/1(Pd) Fa0/2(P)
通过在防火墙上抓包来判断数据的正确走向(下图黄色标记为一个ICMP包的来回过程)。
说明:链路聚合接口默认是ACCESS模式,如果要用Truck模式则在属性中进行修改。对应的交换机接口也改成Truck即可。
三层链路聚合配置:
采用思科3700系列交换机同防火墙相连,把2条线路聚合成一条逻辑线路;
交换机参与接口:FastEthernet 1/0/1 FastEthernet 1/0/2 防火墙参与接口:ETH1 ETH2 ;
两端都使用LACP的MODE ON模式,采用相同的算法(src-dst-ip);
WEBUI配置:
1、在网络管理—接口—链路聚合里新添加一个聚合端口,选择参与聚合的物理接口ETH1和ETH2 及 负载算法(src-dst-ip);
2、在二层网络—VLAN添加一个新VLAN 自动包含链路聚合接口Bond1,可以添加一个地址(10.10.10.2/24)
交换机配置:
Switch(config)#interface range fastEthernet 1/0/1 – 2
Switch(config-if-range)#no switchport
Switch(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel 1
Switch(config-if-range)#no shutdow
Switch(config-if-range)#exit
Switch(config)#port-channel load-balance src-dst-ip
Switch(config)#interface port-channel 1
Switch(config-if)#no switchport
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#no shutdown
配置完毕通过show etherchanel summary 查看链路建立情况
Switch#show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(RU) - Fa1/0/1(P) Fa1/0/2(P)
最后在交换机和防火墙上添加路由,确认双方路由可达即可
Gateway of last resort is 10.10.10.2 to network 0.0.0.0
C 10.10.10.0 is directly connected, Port-channel1
C 10.10.20.0 is directly connected, Vlan1
S*
0.0.0.0/0 [1/0] via 10.10.10.2
通过PING 验证数据包走向正确(下图黄色标记为一个ICMP包的来回过程)