Sổ tay kỹ thuật

Cấu hình IS-IS trên IOS XR và Junos

how-to#isis#iosxr#junos· cập nhật 2026-11-06

Dựng IS-IS L2-only, wide metric, point-to-point giữa IOS XR và Junos rồi kiểm tra adjacency, LSDB và route.

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

Tóm tắt: Một tiến trình IS-IS level-2-only, NET suy từ loopback, metric-style wide, link router-router dạng point-to-point, loopback passive. Junos phải bật family iso trên interface và đặt NET ở lo0. Lý thuyết xem OSPF và IS-IS.

Topo ví dụ: R1 (IOS XR, lo 192.0.2.1) nối R2 (Junos, lo 192.0.2.2) qua link 198.51.100.0/31, area 49.0001.

Luồng hoạt động

flowchart LR R1["R1 IOS XR Lo0 192.0.2.1"] -- "Hu0/0/0/0 198.51.100.0/31 L2 p2p" --- R2["R2 Junos lo0 192.0.2.2"] R1 --> L["LSDB L2 chung"] R2 --> L L --> S["SPF và route loopback"]

Cấu hình

IOS XR

interface Loopback0
 ipv4 address 192.0.2.1 255.255.255.255
!
interface HundredGigE0/0/0/0
 mtu 9216
 ipv4 address 198.51.100.0 255.255.255.254
!
router isis CORE
 is-type level-2-only
 net 49.0001.1920.0000.2001.00
 log adjacency changes
 set-overload-bit on-startup 300
 address-family ipv4 unicast
  metric-style wide
 !
 interface Loopback0
  passive
  address-family ipv4 unicast
  !
 !
 interface HundredGigE0/0/0/0
  point-to-point
  address-family ipv4 unicast
   metric 100
  !
 !
!

Junos

set interfaces et-0/0/0 mtu 9216
set interfaces et-0/0/0 unit 0 family inet address 198.51.100.1/31
set interfaces et-0/0/0 unit 0 family iso
set interfaces lo0 unit 0 family inet address 192.0.2.2/32
set interfaces lo0 unit 0 family iso address 49.0001.1920.0000.2002.00
set protocols isis level 1 disable
set protocols isis level 2 wide-metrics-only
set protocols isis overload timeout 300
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/0.0 level 2 metric 100
set protocols isis interface lo0.0 passive

System ID lấy từ loopback cho dễ nhớ: 192.0.2.1 → 192.000.002.001 → 1920.0000.2001. Mỗi router một system ID duy nhất trong toàn domain.

IPv6

Thêm address-family ipv6 unicast (XR, cả dưới router isis và từng interface) hoặc family inet6 trên interface (Junos). Chú ý kiểu topology: IOS XR mặc định multi-topology cho IPv6 (single-topology dưới address-family ipv6 unicast để đổi), Junos mặc định single-topology (set protocols isis topologies ipv6-unicast để bật MT). Hai đầu phải cùng kiểu, và với single-topology mọi link phải chạy cả IPv4 lẫn IPv6.

Lệnh kiểm tra

Mục đích IOS XR Junos
Adjacency show isis adjacency show isis adjacency
Adjacency chi tiết (level, IP, BFD) show isis adjacency detail show isis adjacency detail
Interface đang chạy IS-IS show isis interface brief show isis interface
LSDB show isis database show isis database
LSP của một router (TLV, metric, prefix) show isis database verbose show isis database R1.00-00 extensive
Route IS-IS tính được show isis route show isis route
Route IS-IS trong RIB show route ipv4 isis show route protocol isis
Lịch sử SPF show isis spf-log show isis spf log
Ping loopback ping 192.0.2.2 source 192.0.2.1 ping 192.0.2.1 source 192.0.2.2

Kết quả mong đợi: adjacency Up ở level 2, LSDB hai bên có cùng danh sách LSP, show route thấy loopback đối diện với metric 100 (link) + metric loopback.

Lỗi thường gặp

Triệu chứng Nguyên nhân Cách xử lý
Junos không thấy adjacency nào Thiếu family iso trên unit, hoặc thiếu NET ở lo0 Thêm family iso và family iso address cho lo0
Adjacency kẹt Init hoặc không lên MTU hai đầu lệch (hello được pad tới MTU) Đặt MTU giống nhau. Xem BFD, LAG, MTU
Một bên p2p, một bên broadcast Kiểu mạch lệch nên hello không khớp Cấu hình point-to-point ở cả hai đầu
Adjacency lên nhưng thiếu route Metric style lệch (narrow và wide-only) Dùng wide ở cả hai đầu
Level 1 adjacency thừa trên Junos Junos mặc định bật cả L1 và L2 set protocols isis level 1 disable
Log duplicate system ID Copy config mà quên đổi NET Sửa NET, mỗi router một system ID
Route loopback có nhưng không vào RIB Có route cùng prefix với AD/preference tốt hơn (static, OSPF cũ) show route 192.0.2.2/32 detail (Junos) / show route 192.0.2.2/32 (XR)
Router vừa reload bị bỏ qua làm transit Overload bit on-startup đang bật Đúng thiết kế. Chờ hết timer hoặc xem show isis database cờ OL

Tham khảo