示例:在 SPRING 中为 IS-IS 配置任播和前缀分段
此示例说明如何在网络中的源数据包路由 (SPRING) 或分段路由 (SR) 中为前缀分段配置前缀分段、分段路由全局块 (SRGB)、邻接分段保持时间和显式空标志。此配置有助于简化网络,从而提高网络速度。
要求
此示例使用以下硬件和软件组件:
-
八台 MX 系列路由器。
-
所有设备上运行 Junos OS 17.2 或更高版本。
在 SPRING 中配置前缀分段之前,请务必配置路由和信令协议。
概述
您可以通过配置策略为在 IS-IS 中播发的前缀提供前缀、分段标识符 (SID) 和节点 SID。前缀段索引是分配给特定前缀的索引。网络中的所有其他远程路由器都使用它将前缀索引到相应的分段路由全局块 (SRGB) 中,以派生分段标识符并转发发往此前缀的流量。前缀 SID 同时支持 IPv4 和 IPv6 前缀。IS-IS 协议为每个邻接、级别和地址族创建邻接分段(IPv4 和 IPv6 各一个)。
拓扑结构
图 1 显示了在路由器 R0 到 R7 上在 SPRING 中配置的 SRGB、前缀段和邻接保持时间。
配置
CLI 快速配置
要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,将命令复制并粘贴到层次结构级别的 [edit] CLI 中,然后从配置模式进入。commit
此拓扑演示了 IPv4 前缀。这同样适用于 IPv6 前缀。
R0
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.1.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 192.10.12.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls maximum-labels 5 set interfaces lo0 unit 0 family inet address 203.0.113.1/24 set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set routing-options autonomous-system 100 set routing-options router-id 203.0.113.1 set routing-options forwarding-table export pplb set routing-options forwarding-table chained-composite-next-hop ingress l3vpn set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.1/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1000 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R1
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 192.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.2.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.2/24 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set routing-options router-id 203.0.113.2 set routing-options forwarding-table export pplb set protocols mpls traffic-engineering set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options per-prefix-calculation set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis traffic-engineering family inet shortcuts set protocols isis graceful-restart restart-duration 30 set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r2 set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.2/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1001 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept
R2
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 encapsulation flexible-ethernet-services set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.2.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 encapsulation flexible-ethernet-services set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.3.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.3/24 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set routing-options router-id 203.0.113.3 set routing-options forwarding-table export pplb set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set protocols isis label-switched-path to_r1 set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.3/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1002 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R3
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10-.0.3.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.4.1/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.4/24 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set routing-options router-id 203.0.113.4 set routing-options forwarding-table export pplb set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.4/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1003 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R4
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.1.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.5/24 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set routing-options router-id 203.0.113.5 set routing-options forwarding-table export pplb set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.5/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1004 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R5
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.5.2/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.6/24 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set routing-options router-id 203.0.113.6 set routing-options forwarding-table export pplb set protocols mpls interface all set protocols isis export leakl2tol1 set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement leakl2tol1 from protocol isis set policy-options policy-statement leakl2tol1 from level 2 set policy-options policy-statement leakl2tol1 to protocol isis set policy-options policy-statement leakl2tol1 to level 1 set policy-options policy-statement leakl2tol1 then accept set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.6/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1005 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R6
set chassis network-services enhanced-ip set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0 unit 1 vlan-id 1 set interfaces ge-0/0/0 unit 1 family inet address 10.0.5.1/24 set interfaces ge-0/0/0 unit 1 family iso set interfaces ge-0/0/0 unit 1 family mpls set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.6.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.7/24 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set routing-options router-id 203.0.113.7 set routing-options forwarding-table export pplb set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.7/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1006 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept
R7
set chassis network-services enhanced-ip set interfaces ge-0/0/1 vlan-tagging set interfaces ge-0/0/1 unit 1 vlan-id 1 set interfaces ge-0/0/1 unit 1 family inet address 10.0.4.2/24 set interfaces ge-0/0/1 unit 1 family iso set interfaces ge-0/0/1 unit 1 family mpls set interfaces ge-0/0/2 vlan-tagging set interfaces ge-0/0/2 unit 1 vlan-id 1 set interfaces ge-0/0/2 unit 1 family inet address 10.0.7.1/24 set interfaces ge-0/0/2 unit 1 family iso set interfaces ge-0/0/2 unit 1 family mpls set interfaces lo0 unit 0 family inet address 203.0.113.8/24 set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set routing-options router-id 203.0.113.8 set routing-options autonomous-system 100 set routing-options forwarding-table export pplb set protocols mpls explicit-null set protocols mpls interface all set protocols isis export prefix-sid set protocols isis backup-spf-options remote-backup-calculation set protocols isis backup-spf-options use-source-packet-routing set protocols isis source-packet-routing adjacency-segment hold-time 240000 set protocols isis source-packet-routing srgb start-label 800000 set protocols isis source-packet-routing srgb index-range 40000 set protocols isis source-packet-routing explicit-null set protocols isis interface fxp0.0 disable set protocols isis interface lo0.0 passive set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement prefix-sid term 1 from route-filter 203.0.113.8/24 exact set policy-options policy-statement prefix-sid term 1 then prefix-segment index 1007 set policy-options policy-statement prefix-sid term 1 then prefix-segment node-segment set policy-options policy-statement prefix-sid term 1 then accept set policy-options policy-statement setpref from protocol isis set policy-options policy-statement setpref from level 2 set policy-options policy-statement setpref then preference 11 set policy-options policy-statement setpref then local-preference 11 set policy-options policy-statement setpref then accept set policy-options policy-statement stat term 1 from protocol static set policy-options policy-statement stat term 1 then accept
配置路由器 R4
分步程序
下面的示例要求您在各个配置层级中进行导航。有关导航CLI的信息,请参阅《Junos OS CLI 用户指南》中的在配置模式下使用CLI编辑器。
要配置路由器 R4,请执行以下操作:
修改每个路由器的相应接口名称、地址和任何其他参数后,对 SPRING 域中的每个路由器重复此过程。
-
在 MX 系列路由器上配置增强型 IP 模式,因为仅具有 MPC 和 MIC 接口的路由器支持 SRGB 功能。提交此配置后,需要重新启动系统。
[edit chassis] user@R4# set network-services enhanced-ip
-
配置接口。
[edit interfaces] user@R4# set ge-0/0/0 vlan-tagging user@R4# set ge-0/0/0 unit 1 vlan-id 1 user@R4# set ge-0/0/0 unit 1 family inet address 10.0.6.2/24 user@R4# set ge-0/0/0 unit 1 family iso user@R4# set ge-0/0/0 unit 1 family mpls user@R4# set ge-0/0/1 vlan-tagging user@R4# set ge-0/0/1 unit 1 vlan-id 1 user@R4# set ge-0/0/1 unit 1 family inet address 10.0.1.2/24 user@R4# set ge-0/0/1 unit 1 family iso user@R4# set ge-0/0/1 unit 1 family mpls user@R4# set lo0 unit 0 family inet address 203.0.113.5/24 user@R4# set lo0 unit 0 family iso address 49.0001.0004.0404.0400
-
为路由选项配置路由器 ID。
[edit routing-options] user@R4# set router-id 203.0.113.5
-
为转发表配置导出策略。
[edit routing-options] user@R4# set forwarding-table export pplb
-
配置 MPLS 接口。
[edit protocols mpls] user@R4# set interface all
-
为 IS-IS 协议配置导出策略。
[edit protocols isis] user@R4# set export prefix-sid
-
配置备份最短路径优先选项,以计算远程无环路备用 (LFA) 备份下一跃点,并使用 SPRING 路由路径来保护 IS-IS 协议。
[edit protocols isis] user@R4# set backup-spf-options remote-backup-calculation user@R4# set backup-spf-options use-source-packet-routing
-
在 SPRING 中为 IS-IS 协议配置邻接分段保持时间。
[edit protocols isis] user@R4# set source-packet-routing adjacency-segment hold-time 240000
-
在 SPRING 中为 IS-IS 协议配置分段路由全局块 (SRGB) 的起始标签和索引范围。
[edit protocols isis] user@R4# set source-packet-routing srgb start-label 800000 user@R4# set source-packet-routing srgb index-range 40000
-
在 SPRING 中为 IS-IS 协议配置显式 null。
[edit protocols isis] user@R4# set source-packet-routing explicit-null
-
禁用管理接口,并将环路地址配置为 IS-IS 协议的被动地址。
[edit protocols isis] user@R4# set interface fxp0.0 disable user@R4# set interface lo0.0 passive
-
为路由策略配置按数据包的负载平衡。
[edit policy-options policy-statement pplb] user@R4# set then load-balance per-packet
-
为路由策略术语配置路由过滤器。
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 from route-filter 203.0.113.5/24 exact
-
为路由策略术语配置前缀分段的索引和节点分段。
[edit policy-options policy-statement prefix-sid] user@R4# set term 1 then prefix-segment index 1004 user@R4# set term 1 then prefix-segment node-segment user@R4# set term 1 then accept
结果
在配置模式下,输入 show chassis、 show interfaces、 show policy-optionsshow protocols和show routing-options命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。
user@R4# show chassis network-services enhanced-ip;
user@R4# show interfaces
ge-0/0/0 {
vlan-tagging;
unit 1 {
vlan-id 1;
family inet {
address 10.0.6.2/24;
}
family iso;
}
}
ge-0/0/1 {
vlan-tagging;
unit 1{
vlan-id 1;
family inet {
address 10.0.1.2/24;
}
family iso;
family mpls ;
}
}
lo0 {
unit 0 {
family inet {
address 203.0.113.5/24;
}
family iso {
address 49.0001.0004.0404.0400;
}
}
}
user@R4# show protocols
mpls {
interface all;
}
isis {
export prefix-sid;
backup-spf-options {
remote-backup-calculation;
use-source-packet-routing;
}
source-packet-routing {
adjacency-segment hold-time 240000;
srgb start-label 800000 index-range 40000;
explicit-null;
}
interface fxp0.0 {
disable;
}
interface lo0.0 {
passive;
}
}
user@R4# show policy-options
policy-statement pplb {
then {
load-balance per-packet;
}
}
policy-statement prefix-sid {
term 1 {
from {
route-filter 203.0.113.5/24 exact;
}
then {
prefix-segment index 1004 node-segment;
accept;
}
}
}
user@R4# show routing-options
router-id 203.0.113.5;
forwarding-table {
export pplb;
}
验证
确认配置工作正常。
验证 IS-IS 邻接路由
目的
验证路由器 R4 的邻接关系。
行动
在操作模式下,输入命令 show isis adjacency detail 。
user@R4> show isis adjacency detail
R5
Interface: ge-0/0/0.0, Level: 1, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 1 IPv4 Adj-SID: 16
R5
Interface: ge-0/0/0.0, Level: 2, State: Up, Expires in 25 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:55:22 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:e:2b:0
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R5.02, IP addresses: 10.0.6.2
Level 2 IPv4 Adj-SID: 17
R0
Interface: ge-0/0/1.0, Level: 1, State: Up, Expires in 7 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 1 IPv4 Adj-SID: 18
R0
Interface: ge-0/0/1.0, Level: 2, State: Up, Expires in 8 secs
Priority: 64, Up/Down transitions: 1, Last transition: 1d 23:49:06 ago
Circuit type: 3, Speaks: IP, IPv6, MAC address: 0:5:86:5e:8e:1
Topologies: Unicast
Restart capable: Yes, Adjacency advertisement: Advertise
LAN id: R1.02, IP addresses: 10.0.1.1
Level 2 IPv4 Adj-SID: 19
意义
输出显示路由器 R4 与路由器 R0 和 R5 的 IS-IS 邻接详细信息。
验证 IS-IS 概述信息
目的
验证路由器 R4 的 IS-IS 概述信息。
行动
在操作模式下,输入命令 show isis overview 。
user@R4> show isis overview
Instance: master
Router ID: 203.0.113.5
Hostname: R4
Sysid: 0100.0404.0404
Areaid: 47.0005.80ff.f800.0000.0108.0001
Adjacency holddown: enabled
Maximum Areas: 3
LSP life time: 1200
Attached bit evaluation: enabled
SPF delay: 200 msec, SPF holddown: 5000 msec, SPF rapid runs: 3
IPv4 is enabled, IPv6 is enabled, SPRING based MPLS is enabled
Traffic engineering: enabled
Restart: Disabled
Helper mode: Enabled
Layer2-map: Disabled
Source Packet Routing (SPRING): Enabled
SRGB Config Range:
SRGB Start-Label : 800000, SRGB Index-Range : 40000
SRGB Block Allocation: Success
SRGB Start Index : 800000, SRGB Size : 40000, Label-Range: [ 800000, 839999 ]
Node Segments: Disabled
Level 1
Internal route preference: 15
External route preference: 160
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
Level 2
Internal route preference: 18
External route preference: 165
Prefix export count: 0
Wide metrics are enabled, Narrow metrics are enabled
Source Packet Routing is enabled
意义
输出显示路由实例的 IS-IS 概述信息以及路由器 R4 的 SPRING 详细信息。
验证 IS-IS 协议的分段路由路由条目
目的
验证 IS-IS 协议的路由表 inet.3 的分段路由路由条目。
行动
在操作模式下,输入命令 show route table inet.3 protocol isis 。
user@R4> show route table inet.3 protocol isis
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
203.0.113.0/24 *[L-ISIS/14] 00:09:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Push 0
> to 10.0.1.1 via ge-0/0/1.0, Push 0
203.0.113.2/32 *[L-ISIS/14] 00:02:44, metric 20
> to 10.0.1.1 via ge-0/0/1.0, Push 801001
意义
输出显示了 IS-IS 协议的路由表 inet.3 的分段路由路由。
验证 IS-IS 协议的 MPLS 分段路由路由条目
目的
验证 IS-IS 协议的 MPLS 分段路由路由条目。
行动
在操作模式下,输入命令 show route table mpls.0 protocol isis 。
user@R4> show route table mpls.0 protocol isis
mpls.0: 23 destinations, 23 routes (23 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 2d 01:56:20, metric 1
to table inet.0
0(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
1 *[MPLS/0] 2d 01:56:20, metric 1
Receive
2 *[MPLS/0] 2d 01:56:20, metric 1
to table inet6.0
2(S=0) *[MPLS/0] 2d 01:56:20, metric 1
to table mpls.0
13 *[MPLS/0] 2d 01:56:20, metric 1
Receive
16 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
16(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17 *[L-ISIS/14] 2d 01:52:56, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
17(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.6.2 via ge-0/0/0.0, Pop
18 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
18(S=0) *[L-ISIS/14] 00:01:34, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19 *[L-ISIS/14] 2d 01:46:40, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
19(S=0) *[L-ISIS/14] 00:10:49, metric 0
> to 10.0.1.1 via ge-0/0/1.0, Pop
801000 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Swap 0
801000(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801000
> to 10.0.1.1 via ge-0/0/1.0, Pop
801001 *[L-ISIS/14] 2d 01:46:14, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801001
> to 10.0.1.1 via ge-0/0/1.0, Swap 801001
801002 *[L-ISIS/14] 1d 21:57:31, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801002
> to 10.0.1.1 via ge-0/0/1.0, Swap 801002
801003 *[L-ISIS/14] 1d 21:56:57, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801003
> to 10.0.1.1 via ge-0/0/1.0, Swap 801003
801005 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 0
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801005(S=0) *[L-ISIS/14] 00:01:34, metric 10
to 10.0.6.2 via ge-0/0/0.0, Pop
> to 10.0.1.1 via ge-0/0/1.0, Swap 801005
801006 *[L-ISIS/14] 2d 01:46:40, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801006
> to 10.0.1.1 via ge-0/0/1.0, Swap 801006
801007 *[L-ISIS/14] 1d 21:56:24, metric 10
to 10.0.6.2 via ge-0/0/0.0, Swap 801007
> to 10.0.1.1 via ge-0/0/1.0, Swap 801007
意义
输出显示了协议 IS-IS 的 MPLS 分段路由路由条目。