Sổ tay kỹ thuật

BFD flap, LACP không lên, MTU mismatch, interface error

troubleshooting#bfd#lacp#iosxr#junos· cập nhật 2026-11-06

Khoanh vùng lỗi lớp 1-2 làm rớt BGP/IS-IS - BFD flap, bundle/ae không lên, MTU lệch, CRC - trên IOS XR và Junos.

Sửa trang này
Mục lục

Triệu chứng chính: BGP/IS-IS rớt kèm log BFD session down; Bundle-Ether/ae down hoặc thiếu member; IS-IS adjacency không lên, BGP rớt khi gửi update lớn; counter CRC/input errors tăng.

Lỗi thường gặp

Triệu chứng Nguyên nhân Cách xử lý
BFD flap định kỳ, link vẫn up Timer quá gắt (50 ms × 3) với session chạy trên CPU/RE thay vì line card Tăng lên 300 ms × 3 cho eBGP, chỉ dùng timer thấp khi phần cứng offload BFD
BFD down đúng lúc CPU cao (commit lớn, BGP churn) Session không được offload, gói BFD bị trễ Kiểm tra session chạy ở đâu (detail/extensive), tăng interval
BFD flap kèm CRC tăng Lỗi quang/cáp, gói BFD bị hỏng Xem DOM quang, đổi optic/patch cord
BFD multihop không lên Route không đối xứng, ACL/filter lo0 chặn UDP 4784 (multihop) hoặc 3784 (single-hop) Mở filter, kiểm tra đường đi hai chiều
BFD trên bundle down khi chỉ một member hỏng Session chạy trên interface logic, gói có thể đi qua member hỏng Dùng micro-BFD (RFC 7130) theo từng member
Bundle/ae down, member not aggregatable / không vào Collecting Distributing Một đầu có LACP, một đầu static; cả hai đầu passive Hai đầu cùng LACP, ít nhất một bên active
Một số member standby hoặc bị loại Member nối sang hai switch khác nhau không có MC-LAG/ESI, key/system-id khác Kiểm tra cabling, partner system-id trong show lacp
Bundle down dù còn member up Số member up < minimum-links / minimum-active links Đúng thiết kế, hoặc giảm ngưỡng
Junos: interface ae0 không tồn tại Thiếu chassis aggregated-devices ethernet device-count Đặt device-count ≥ số ae cần dùng
Junos: commit báo lỗi ether-options / gigether-options MX dùng gigether-options 802.3ad, EX/QFX dùng ether-options 802.3ad Dùng đúng stanza theo dòng thiết bị
IS-IS adjacency không lên, OSPF kẹt EXSTART MTU lệch giữa hai đầu Đặt MTU giống nhau, xác nhận bằng ping DF
BGP lên rồi rớt khi gửi full table MTU path nhỏ hơn MSS, segment lớn bị drop Sửa MTU, hoặc bật path MTU discovery cho BGP
Input errors / CRC tăng đều Optic bẩn/yếu, cáp hỏng, FEC lệch So Rx power với ngưỡng, kiểm tra FEC hai đầu

Cấu hình đúng

BFD cho eBGP

! IOS XR
router bgp 64500
 neighbor 198.51.100.2
  bfd fast-detect
  bfd minimum-interval 300
  bfd multiplier 3
# Junos
set protocols bgp group ISP-A neighbor 198.51.100.2 bfd-liveness-detection minimum-interval 300
set protocols bgp group ISP-A neighbor 198.51.100.2 bfd-liveness-detection multiplier 3

LAG với LACP

! IOS XR
interface Bundle-Ether10
 mtu 9216
 ipv4 address 198.51.100.1 255.255.255.254
 bundle minimum-active links 1
!
interface HundredGigE0/0/0/1
 bundle id 10 mode active
 lacp period short
!
interface HundredGigE0/0/0/2
 bundle id 10 mode active
 lacp period short
# Junos (MX: gigether-options, EX/QFX: ether-options)
set chassis aggregated-devices ethernet device-count 16
set interfaces et-0/0/1 gigether-options 802.3ad ae0
set interfaces et-0/0/2 gigether-options 802.3ad ae0
set interfaces ae0 mtu 9216
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast
set interfaces ae0 aggregated-ether-options minimum-links 1
set interfaces ae0 unit 0 family inet address 198.51.100.0/31

MTU trên cả IOS XR (mtu) và Junos (mtu ở interface vật lý) là MTU lớp 2, đã gồm 14 byte header Ethernet: mtu 9216 cho IP MTU 9202. Lệch giữa hai hãng thường do một bên đặt ipv4 mtu / family inet mtu riêng.

Kiểm tra nhanh

! IOS XR
show bfd session
show bfd session destination 198.51.100.2 detail
show bundle Bundle-Ether10
show lacp Bundle-Ether10
show interfaces HundredGigE0/0/0/1 | include "errors|CRC|drops"
show controllers HundredGigE0/0/0/1 phy
ping 198.51.100.0 size 9202 donotfrag
clear counters HundredGigE0/0/0/1
# Junos
show bfd session
show bfd session address 198.51.100.2 extensive
show lacp interfaces ae0
show lacp statistics interfaces ae0
show interfaces et-0/0/1 extensive | match "error|CRC|drops"
show interfaces diagnostics optics et-0/0/1
ping 198.51.100.1 size 9174 do-not-fragment
clear interfaces statistics et-0/0/1

Kích thước ping khác nhau giữa hai hãng: IOS XR size là cả gói IP, Junos size là payload ICMP (cộng thêm 28 byte header IP + ICMP). 9202 trên XR tương đương 9174 trên Junos. Bắt gói BFD/LACP trên máy Linux nối vào: xem tcpdump cheatsheet.