2.M-LAG(跨设备的堆叠)
链路聚合
peer-link协商M-LAG
Keepalive链路是3层的保活链路,要求IP可达
DFS组去同步状态信息。(心跳线)
选举规则:1)优先级较大(1-254) 2)系统MAC较小的成为主设备
实施:
1)接入的5700的常规以太聚合
interface GigabitEthernet0/0/5
eth-trunk 20
#
return
[S5700-Eth-Trunk20]dis cu int g0/0/6
#
interface GigabitEthernet0/0/6
eth-trunk 20
interface Eth-Trunk20
mode lacp
port link-type trunk
port trunk allow-pass vlan 2 to 4094
2)2台生成树的基本调整和开启V-STP
[6850-Y]stp mode rstp
[6850-Y]stp v-stp enable
3)DFS的源地址和DFS组 (keep-alive链路)
[6850-X]int 10GE 1/0/3
[6850-X-10GE1/0/3]undo portswitch
[6850-X-10GE1/0/3]ip address 10.1.1.1 30
[6850-X-10GE1/0/3]description DFS-SOURCE
!
[6850-Y]int 10GE 1/0/3
[6850-Y-10GE1/0/3]undo portswitch
[6850-Y-10GE1/0/3]ip address 10.1.1.2 30
[6850-Y-10GE1/0/3]description DFS-SOURCE
配置DFS组
[6850-X-dfs-group-1]dis th
dfs-group 1
priority 254
source ip 10.1.1.1
[6850-Y-dfs-group-1]dis th
#
dfs-group 1
priority 120
source ip 10.1.1.2
[6850-X]dis dfs-group 1
Dfs-Group ID : 1
Priority : 254
UDP Port : 61467 (active)
Address : ip address 10.1.1.1
System ID : 340a-9867-b8c1
SysName : 6850-X
Up-delay : 120
Switch-delay : 0
4)配置对等体链路聚合(2层)(peer link)
[6850-X]int Eth-Trunk 10
[6850-X-Eth-Trunk10]trunkport 10GE 1/0/1 to 1/0/2
[6850-X-Eth-Trunk10]mode lacp-static
[6850-X-Eth-Trunk10]peer-link 1 //接口配置为peer-link接口后,缺省加入所有VLAN。接口配置为peer-link接口后,该接口上不能再配置其他业务。
[6850-X-Eth-Trunk10]description Peer-Link-2CENG
!
[6850-Y-Eth-Trunk10]dis th
#
interface Eth-Trunk10
description PEER-LINK
mode lacp-static
peer-link 1
[6850-Y-Eth-Trunk10]dis cu int 10g 1/0/1
#
interface 10GE1/0/1
eth-trunk 10
#
return
[6850-Y-Eth-Trunk10]dis cu int 10g 1/0/2
#
interface 10GE1/0/2
eth-trunk 10
验证peer-link链路
[6850-Y]dis eth-trunk 10
Eth-Trunk10's state information is:
Local:
LAG ID: 10 Working Mode: Static
Preempt Delay: Disabled Hash Arithmetic: profile default
System Priority: 32768 System ID: 20f1-7cbd-52f1
Least Active-linknumber: 1 Max Active-linknumber: 16
Operating Status: up Number Of Up Ports In Trunk: 2
Timeout Period: Slow
--------------------------------------------------------------------------------
ActorPortName Status PortType PortPri PortNo PortKey PortState Weight
10GE1/0/1 Selected 10GE 32768 1 2625 10111100 1
10GE1/0/2 Selected 10GE 32768 2 2625 10111100 1
Partner:
--------------------------------------------------------------------------------
ActorPortName SysPri SystemID PortPri PortNo PortKey PortState
10GE1/0/1 32768 340a-9867-b8c1 32768 1 2625 10111100
10GE1/0/2 32768 340a-9867-b8c1 32768 2 2625 10111100
[6850-X]dis dfs-group 1 peer-link //查看peer-link
Peer-link information
-----------------------------------------------------------------
Total Interface(s): 1
Peer-link Id : 1
Port Name : Eth-Trunk10
Port State : Up
验证DFS的M-LAG状态
[6850-Y] display dfs-group 1 m-lag
* : Local node
Heart beat state : OK
Node 2 *
Dfs-Group ID : 1
Priority : 120
Address : ip address 10.1.1.2
State : Backup
Causation : -
System ID : 20f1-7cbd-52f1
SysName : 6850-Y
Version : V200R002C50SPC800
Device Type : CE6850HI
Node 1
Dfs-Group ID : 1
Priority : 254
Address : ip address 10.1.1.1
State : Master
Causation : -
System ID : 340a-9867-b8c1
SysName : 6850-X
Version : V200R002C50SPC800
Device Type : CE6850HI
5)配置下联交换机的M-LAG成员链路
[6850-Y]int Eth-Trunk 20
[6850-Y-Eth-Trunk20]trunkport 10GE 1/0/6
[6850-Y-Eth-Trunk20] mode lacp-static
[6850-Y-Eth-Trunk20] dfs-group 1 m-lag 1
数据测试:
CE:
VLAN,trunk,VLANIF
interface Eth-Trunk20
port link-type trunk
port trunk allow-pass vlan 10
[6850-Y-Vlanif10]dis th
#
interface Vlanif10
ip address 10.10.10.254 255.255.255.0
mac-address 0001-0001-0001
[6850-X-Vlanif10]dis th
#
interface Vlanif10
ip address 10.10.10.254 255.255.255.0
mac-address 0001-0001-0001
解决日志问题
undo snmp-agent trap enable feature-name arp trap-name hwethernetarpmacipconflict
MAC地址表的同步
[6850-Y]dis mac-address
Flags: * - Backup
# - forwarding logical interface, operations cannot be performed based
on the interface.
BD : bridge-domain Age : dynamic MAC learned time in seconds
-------------------------------------------------------------------------------
MAC Address VLAN/VSI/BD Learned-From Type Age
-------------------------------------------------------------------------------
f84a-bfeb-4a0f 1/-/- Eth-Trunk20 dynamic 989
f84a-bfeb-4a0f 10/-/- Eth-Trunk20 dynamic 137
[6850-X]display mac-address
Flags: * - Backup
# - forwarding logical interface, operations cannot be performed based
on the interface.
BD : bridge-domain Age : dynamic MAC learned time in seconds
-------------------------------------------------------------------------------
MAC Address VLAN/VSI/BD Learned-From Type Age
-------------------------------------------------------------------------------
f84a-bfeb-4a0f 1/-/- Eth-Trunk20 dynamic 983
f84a-bfeb-4a0f 10/-/- Eth-Trunk20 dynamic 131
--------------------------
M-LAG的防环机制:从对等体收到的组播/广播流量,不在发回给成员M-LAG接口(SoO)
作业:
iStack
M-lag