1.端口聚合(LACP)應用場景
該功能高端設備上支持,FortiGate60D、FortiGate90D和FortiGate240D等低端型號不支持。
1、在帶寬比較緊張的情況下,通過邏輯聚合可以擴展帶寬到原鏈路的n倍
2、在需要對鏈路進行動態備份的情況下,可以通過配置鏈路聚合實現同一聚合組各個成員端口之間彼此動態備份。
2.端口聚合(LACP)模式
LACP的端口可以支持如下幾種模式:static(靜態),passive,和active
static:人為配置的聚合組,不允許系統自動添加或刪除手工或靜態聚合端口。
passive:被動模式,該模式下端口不會主動發送LACPDU報文,在接收到對端發送的LACP報文后,該端口進入協議計算狀態。
Active:主動模式,該模式下端口會主動向對端發送LACPDU報文,進行LACP協議的計算。
一般建議對接的2台設備一邊為active,另一邊為 passive。
3.端口聚合(LACP)配置
1、添加聚合口
配置頁面:系統管理>>網絡>>接口>>新建
類型選擇: 802.3ad匯聚 ;選擇物理接口成員
2、修改LACP
FortiGate # config system interface
FortiGate (interface) # edit agg2
FortiGate (lacp) # set lacp-mode static //配置LACP協商模式: 主動,被動或者靜態,默認為動態
FortiGate (lacp) # set algorithm L3 //負載均衡算法。L3 基於IP地址進行哈希,L4 基於四層進行哈希。
FortiGate (lacp) # end
配置完成后查看配置聚合口配置,接口配置頁面查看建立的軟交換口
說明:對應的物理口在WEB/CLI界面上將消失,不可配置;
查看命令:FortiGate # show system interface agg2
config system interface
edit "agg2"
set vdom "root"
set type aggregate
set member "port9" "port10"
set description " "
set snmp-index 51
set lacp-mode static
set algorithm L3
next
end
4.查看LACP接口狀態
FortiGate # diagnose netlink aggregate list
FortiGate # diagnose netlink aggregate name agg2
LACP flags: (A|P)(S|F)(A|I)(I|O)(E|D)(E|D)
(A|P) - LACP mode is Active or Passive
(S|F) - LACP speed is Slow or Fast
(A|I) - Aggregatable or Individual
(I|O) - Port In sync or Out of sync
(E|D) - Frame collection is Enabled or Disabled
(E|D) - Frame distribution is Enabled or Disabled