为什么我的ae接口链路类型关闭但物理接口打开?
在我的汇聚层 Switch 中,我使用两台 Juniper EX4300 设备实现 Stack:
所以有xe-0/0/x
和xe-1/0/x
接口。
我创建了ae65接口,在interface中添加了xe-0/0/65.0
和xe-1/0/65.0
两个接口ae65
。
可以看到两个物理端口的Link Type都是up,但是聚合接口ae65 Link Type是down
。为什么?
以下是配置:
admin@C1-HXJH-A# show interfaces xe-0/0/65
ether-options {
802.3ad ae65;
}
===
{master:1}[edit]
admin@C1-HXJH-A# show interfaces xe-1/0/65
ether-options {
802.3ad ae65;
}
{master:1}[edit]
===
admin@C1-HXJH-A# show interfaces ae65
aggregated-ether-options {
lacp {
active;
}
}
unit 0 {
description "down-link to LA-C08-A";
family inet {
address 192.168.46.2/24;
}
}
{master:1}[edit]
====
EDIT-01
admin@C1-HXJH-A> show lacp interfaces
Aggregated interface: ae21
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-0/0/36 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/36 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/38 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/38 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/39 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/39 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/37 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/37 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
xe-0/0/36 Current Fast periodic Collecting distributing
xe-0/0/38 Current Fast periodic Collecting distributing
xe-0/0/39 Current Fast periodic Collecting distributing
xe-0/0/37 Current Fast periodic Collecting distributing
Aggregated interface: ae22
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-0/0/40 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/40 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/41 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/41 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/42 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/42 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/43 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/43 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
xe-0/0/40 Current Fast periodic Collecting distributing
xe-0/0/41 Current Fast periodic Collecting distributing
xe-0/0/42 Current Fast periodic Collecting distributing
xe-0/0/43 Current Fast periodic Collecting distributing
Aggregated interface: ae23
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-0/0/44 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/44 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/45 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/45 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/46 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/46 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/47 Actor No No Yes Yes Yes Yes Fast Active
xe-0/0/47 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
xe-0/0/44 Current Fast periodic Collecting distributing
xe-0/0/45 Current Fast periodic Collecting distributing
xe-0/0/46 Current Fast periodic Collecting distributing
xe-0/0/47 Current Fast periodic Collecting distributing
Aggregated interface: ae24
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-1/0/40 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/40 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/41 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/41 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/42 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/42 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/43 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/43 Partner No No Yes Yes Yes Yes Fast Active
LACP protocol: Receive State Transmit State Mux State
xe-1/0/40 Current Fast periodic Collecting distributing
xe-1/0/41 Current Fast periodic Collecting distributing
xe-1/0/42 Current Fast periodic Collecting distributing
xe-1/0/43 Current Fast periodic Collecting distributing
Aggregated interface: ae25
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-1/0/44 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/44 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/45 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/45 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/46 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/46 Partner No No Yes Yes Yes Yes Fast Active
xe-1/0/47 Actor No No Yes Yes Yes Yes Fast Active
xe-1/0/47 Partner No No Yes Yes Yes Yes Fast Active
xe-0/0/24 Actor No Yes No No No Yes Fast Active
xe-0/0/24 Partner No Yes No No No Yes Fast Passive
xe-0/0/25 Actor No Yes No No No Yes Fast Active
xe-0/0/25 Partner No Yes No No No Yes Fast Passive
LACP protocol: Receive State Transmit State Mux State
xe-1/0/44 Current Fast periodic Collecting distributing
xe-1/0/45 Current Fast periodic Collecting distributing
xe-1/0/46 Current Fast periodic Collecting distributing
xe-1/0/47 Current Fast periodic Collecting distributing
xe-0/0/24 Port disabled No periodic Detached
xe-0/0/25 Port disabled No periodic Detached
Aggregated interface: ae32
Aggregated interface: ae33
Aggregated interface: ae53
Aggregated interface: ae54
Aggregated interface: ae55
Aggregated interface: ae56
Aggregated interface: ae57
Aggregated interface: ae58
Aggregated interface: ae59
Aggregated interface: ae60
Aggregated interface: ae61
Aggregated interface: ae62
Aggregated interface: ae63
Aggregated interface: ae64
Aggregated interface: ae65
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
xe-0/0/65 Actor No Yes No No No Yes Fast Active
xe-0/0/65 Partner No Yes No No No Yes Fast Passive
xe-1/0/65 Actor No Yes No No No Yes Fast Active
xe-1/0/65 Partner No Yes No No No Yes Fast Passive
LACP protocol: Receive State Transmit State Mux State
xe-0/0/65 Defaulted Fast periodic Detached
xe-1/0/65 Defaulted Fast periodic Detached
Aggregated interface: ae66
Aggregated interface: ae48
Aggregated interface: ae49
Aggregated interface: ae50
Aggregated interface: ae51
Aggregated interface: ae52
Aggregated interface: ae69
Aggregated interface: ae70
{master:1}
===
EDIT-02
另一端是具有两个接口的 Juniper EX3300 交换机:
root@LA-C08-A# show interfaces xe-0/1/0
ether-options {
802.3ad ae65;
}
{master:0}[edit]
root@LA-C08-A# show interfaces xe-0/1/1
ether-options {
802.3ad ae65;
}
{master:0}[edit]
root@LA-C08-A# show interfaces ae65
description "uplink to LA-GWHJ";
unit 0 {
family ethernet-switching {
port-mode trunk;
vlan {
members all;
}
}
}
{master:0}[edit]
====
EDIT-03
感谢“Phil-Work”,ae65 链接类型变为 Up。我跟着他lacp
在EX3300里加了,就可以了。
在我的瞻博网络 EX4300 中,它有一个管理 IP 10.10.10.254/24
:
admin@C1-HXJH-A# run show configuration | display set | match "irb unit 2 "
set interfaces irb unit 2 family inet address 10.10.10.254/24
{master:1}[edit]
admin@C1-HXJH-A# run show configuration | display set | match "10.10.10.254"
set interfaces irb unit 2 family inet address 10.10.10.254/24
{master:1}[edit]
admin@C1-HXJH-A# run show configuration | display set | match "vlan2 "
set vlans vlan2 vlan-id 2
set vlans vlan2 l3-interface irb.2
{master:1}[edit]
在 EX3300 中,我还有一个管理 IP 10.10.10.8/24
:
...
set interfaces xe-0/1/0 ether-options 802.3ad ae65
set interfaces xe-0/1/1 ether-options 802.3ad ae65
set interfaces ae1 description "uplink to LA-xxx-GWHJ"
set interfaces ae1 unit 0 family ethernet-switching
set interfaces ae65 description "uplink to LA-GWHJ"
set interfaces ae65 aggregated-ether-options lacp active
set interfaces ae65 unit 0 family ethernet-switching port-mode trunk
set interfaces ae65 unit 0 family ethernet-switching vlan members all
set interfaces vlan unit 2 family inet address 10.10.10.8/24
set routing-options static route 0.0.0.0/0 next-hop 10.10.10.254
set protocols igmp-snooping vlan all
set protocols rstp
set protocols lldp interface all
set protocols lldp-med interface all
set vlans vlan2 vlan-id 2
set vlans vlan2 l3-interface vlan.2
...
但他们没有相互交流。不能互相ping通。为什么?
我测试了将ae65.0
IP 从更改192.168.65.2/24
为10.10.10.65/24
,但仍然无法正常工作。10.10.10.65
不能10.10.10.8
互相ping通。
EDIT-04
我查看EX3300中的MAC地址,显示:
root@LA-C08-A# run show ethernet-switching table brief
Ethernet-switching table: 2 entries, 0 learned, 0 persistent entries
VLAN MAC address Type Age Interfaces
vlan2 * Flood - All-members
vlan2 80:ac:ac:f0:b5:81 Static - Router
在 EX4300 中,没有来自ae65.0
.
EDIT-05
我使用monitor traffic
捕获 EX4300 ae65 和 EX3300 ae65 所有日志中的包:
...
17:18:44.762225 In STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8000.80:ac:ac:f0:b5:81.8042, length 43
17:18:46.702003 In STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8000.80:ac:ac:f0:b5:81.8042, length 43
17:18:48.519318 In STP 802.1w, Rapid STP, Flags [Learn, Forward], bridge-id 8000.80:ac:ac:f0:b5:81.8042, length 43
...
这是问题的原因吗?