跳转到内容
Ask AI

ISIS Configuration

此内容尚不支持你的语言。

[Command] show isis database {detail|json}

[Purpose] Display the IS-IS link-state database known to the local router

[Parameter]

ParameterDescription
detailDisplay detailed information from the ISIS link state database
jsonISIS link state database information in JSON format

[View] System View

[Use Cases]

Terminal window
sonic# show isis database
Area test1:
IS-IS Level-2 link-state database:
LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL
sonic.00-00 82 0x0000000a 0x97f5 383 0/0/0
sonic.00-00 * 82 0x00000007 0x49ab 321 0/0/0
sonic.1f-00 * 52 0x00000005 0x7d14 412 0/0/0
3 LSPs
Area test2:
IS-IS Level-1 link-state database:
LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL
sonic.00-00 83 0x00000008 0x4c8f 454 1/0/0
sonic.00-00 * 83 0x00000007 0x6fb0 455 1/0/0
sonic.20-00 * 51 0x00000005 0xadca 452 1/0/0
3 LSPs
IS-IS Level-2 link-state database:
LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL
sonic.00-00 83 0x00000008 0x449f 401 0/0/0
sonic.00-00 * 83 0x00000007 0x67c0 452 0/0/0
sonic.20-00 * 51 0x00000005 0xa5da 396 0/0/0
3 LSPs
Area test3:
IS-IS Level-1 link-state database:
LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OL
sonic.00-00 82 0x00000008 0x3d30 446 0/0/0
sonic.00-00 * 82 0x00000007 0xeae7 468 0/0/0
sonic.21-00 * 52 0x00000005 0x6d24 439 0/0/0
3 LSPs

[Command] show isis summary [json]

[Purpose] Display ISIS summary information

[Parameter]

ParameterDescription
Up timeISIS runtime
L1 IIHNumber of Level-1 LAN Hello messages
P2P IIHNumber of peer-to-peer Hello messages
L1 LSPNumber of Level-1 Link-State Messages
L1 CSNPLevel-1 Number of complete serial number messages
L1 PSNPNumber of partial serial number messages in Level 1
LSP RXMTNumber of LSP messages retransmitted

[View] System View

[Use Cases]

Terminal window
sonic# show isis summary
vrf : default
Process Id : 54
System Id : 0000.0000.0140
Up time : 1d01h41m ago
Number of areas : 1
Area test:
Net: 47.0000.0000.0140.00
TX counters per PDU type:
L1 IIH: 4
P2P IIH: 32413
L1 LSP: 110
L1 CSNP: 10266
L1 PSNP: 231
LSP RXMT: 0
RX counters per PDU type:
P2P IIH: 32423
L1 LSP: 233
L1 CSNP: 10266
L1 PSNP: 110
Drop counters per PDU type:
P2P IIH: 2
Advertise high metrics: Disabled
Level-1:
LSP0 regenerated: 111
LSPs purged: 0
SPF:
minimum interval : 1
IPv4 route computation:
last run elapsed : 00:11:44 ago
last run duration : 333 usec
run count : 341

[Command] show isis hostname

[Purpose] View the mapping between hostnames and system IDs in the IS-IS protocol

[Parameter]

ParameterDescription
DynamicDynamic hostname mapping
HostnameStatic hostname mapping

[View] System View

[Use Cases]

Terminal window
sonic# show isis hostname
vrf : default
Level System ID Dynamic Hostname
1 0000.0000.0185 sonic
1 0000.0000.0107 sonic
* 0000.0000.0140 sonic

[Command] show isis interface {ethernet* IFNAME |vlan vlan-id |link-aggregation lag-id *|detail}

[Purpose] Display the status of the designated ISIS interface or all enabled ISIS interfaces

[View] System View

[Use Cases]

Terminal window
sonic# show isis interface
Area test:
Interface CircId State Type Level
eth 13 0x30 Up lan L1
Area test1:
Interface CircId State Type Level
eth 46 0x11 Up lan L2
Area test2:
Interface CircId State Type Level
eth 47 0xe Up lan L1L2
Area test3:
Interface CircId State Type Level
eth 48 0xf Up lan L1

[Command] show isis neighbor {detail|json|* system_id***}**

[Purpose] Display the status and information of ISIS neighbors

[View] System View

[Use Cases]

Terminal window
6.2.5 show isis neighbor {detail|json|<system_id>}
[Command]
show isis neighbor {detail|json|<system_id>}
[Purpose]
Display the status and information of ISIS neighbors
[Parameter]
<SYSTEMID> Specify the neighbor's System ID
[View]
System View
[Use Cases]
sonic# show isis neighbor
Area test:
System Id Interface L State Holdtime SNPA
sonic eth 13 1 Up 30 000e.c656.9d35
Area test1:
System Id Interface L State Holdtime SNPA
sonic eth 46 2 Up 29 60eb.5103.1140
Area test2:
System Id Interface L State Holdtime SNPA
sonic eth 47 1 Up 27 60eb.5103.1140
sonic eth 47 2 Up 28 60eb.5103.1140
Area test3:
System Id Interface L State Holdtime SNPA
sonic eth 48 1 Up 28 60eb.5103.1140

[Command] show isis route {level-1|level-2|backup}

[Purpose] Display all route entries learned by the current device via the IS-IS routing protocol

[View] System View

[Use Cases]

Terminal window
sonic# show isis route
Area test1:
IS-IS paths to level-2 routers that speak IP
Vertex Type Metric Next-Hop Interface Parent
--------------------------------------------------------------------
sonic
100.0.46.0/24 IP internal 0 sonic(3)
sonic IS 10 sonic eth 22 sonic(3)
sonic
IS-IS L2 IPv4 routing table:
Prefix Metric Interface Nexthop Label(s)
-----------------------------------------------------
100.0.46.0/24 0 - - -

[Command] show isis fast-reroute summary [level-1|level-2]

[Purpose] Display ISIS routing protection statistics

[View] System View

[Use Cases]

Terminal window
sonic# show isis fast-reroute summary
Area test1:
IS-IS L2 IPv4 Fast ReRoute summary:
Protection \ Priority Critical High Medium Low Total
-------------------------------------------------------------------------
Classic LFA 0 0 0 0 0
Remote LFA 0 0 0 0 0
Topology Independent LFA 0 0 0 0 0
ECMP 0 0 0 0 0
Unprotected 0 0 0 0 0
Protection coverage 0.00% 0.00% 0.00% 0.00% 0.00%

[Command] router isis* name***[vrf*** name***]**

[Purpose] Configure the ISIS instance name and navigate to the ISIS instance configuration view

[View] System Configuration View

[Notes] ISIS cannot establish neighbors over the loopback interface; if ISIS is enabled on the loopback interface, it will simply forward the loopback interface’s routes through other ISIS interfaces.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test

[Command] net* XX.XXXX.XXXX.XXXX.XX*

[Purpose] Configure NET

[Parameter]

ParameterDescription
XX.XXXX.XXXX.XXXX.XXNetwork Entity Tag (NET), where the first two digits represent the region ID, the middle twelve digits represent the ISIS system ID, and the last two digits represent the SEL (NSAP selector), which is typically 00.

[View] ISIS Configuration View

[Notes] In NET, the region ID is a variable field that can be configured as either XX or XX.XXXX. In Level-1, devices must be in the same region to establish a neighbor relationship properly.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# net 11.1111.1111.1111.00

[Command]

area-password md5* password* domain-password md5* password* area-password md5 clear domain-password md5 clear

[Purpose]

Authentication between configuration regions or routing domains

[Parameter]

ParameterDescription
area-passwordInter-zone authentication, such as authentication between Level-1 and Level-1 zones or between Level-1 and Level-2 zones
domain-passwordAuthentication between routing domains, such as between Level-2 and Level-2 routing domains or between Level-1 and Level-2 routing domains
clearExplicit authentication
passwordCiphertext authentication

[View] ISIS Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# area-password md5 test123

[Command] fast-reroute load-sharing disable [level-1|level-2]

[Purpose] Disable load balancing for LFA backup paths within the specified region

[View] ISIS Configuration View

[Notes] The device has the LFA backup path load balancing feature enabled by default. If the primary link fails and multiple backup paths are available, load balancing will be performed using ECMP.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# fast-reroute load-sharing disable level-1

[Command] fast-reroute priority-limit {critical|high|medium} [level-1|level-2]

[Purpose] Enable LFA backup path calculation for different routing levels

[Parameter]

ParameterDescription
criticalCalculate LFA backup paths only for critical-level routes
highCompute LFA backup paths for critical and high-priority routes
mediumCalculate LFA backup paths for critical, high, and medium-priority routes

[View] ISIS Configuration View

[Notes] By default, the device calculates LFA backup paths for all routing levels.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# fast-reroute priority-limit critical level-1

[Command] fast-reroute lfa tiebreaker {downstream|lowest-backup-metric|node-protecting} index* index_id***[level-1|level-2]**

[Purpose] Configure the LFA backup path calculator and set priorities

[Parameter]

ParameterDescription
downstreamPrefer paths where the cost of reaching the next hop to the destination is lower than the cost of reaching the destination directly
lowest-backup-metricSelect the backup path with the lowest total cost
node-protectingGive priority to backup paths that do not pass through the next hop on the main route
index_idThe smaller the number, the higher the priority. Range: 1–255

[View] ISIS Configuration View

[Notes] The LFA backup path calculation resolver supports multiple configurations and allows you to set different priorities for sequential matching.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# fast-reroute lfa tiebreaker node-protecting index 10 level-1

[Command] metric-style {narrow|transition|wide}

[Purpose] Configure the mode for setting the router’s metric

[Parameter]

ParameterDescription
narrowTraditional narrow-metric model
transitionTransition mode, supporting both narrow and wide metrics
wideWidth-based mode

[View] ISIS Configuration View

[Notes] ISIS devices configured in narrow mode and wide mode cannot establish neighbors properly; they must be set to transition mode to facilitate the transition.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# metric-style narrow

[Command] redistribute {ipv4|ipv6} {kernel|connected|static|ospf|bgp|table} {level-1|level-2} [metric* value***|route-map*** name***]**

[Purpose] Publish a routing agreement to the designated routing area via an ISIS neighbor

[Parameter]

ParameterDescription
metric* value*Set the metric value for the route. Configuration range: 0-16777215
route-map* name*Bind routing policies to filter published routes

[View] ISIS Configuration View

[Notes] ISIS automatically announces the routing information associated with the interfaces bound to ISIS instances.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# redistribute ipv4 ospf level-1 metric 10

[Command] is-type {level-1|level-1-2|level-2-only}

[Purpose] Define the ISIS router level

[Parameter]

ParameterDescription
level-1Site Router
level-1-2It can function as both a site router and a zone router
level-2Area Router

[View] ISIS Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# router isis test
sonic(config-router)# is-type level-1

[Command] ip router isis* name***[vrf*** name***]** ipv6 router isis* name***[vrf*** name***]**

[Purpose] Bind an ISIS instance to an interface

[View] Interface Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# ip router isis test

[Command] isis circuit-type {level-1|level-1-2|level-2-only}

[Purpose] Set the ISIS router level for the interface

[View] Interface Configuration View

[Notes] If the router level of the ISIS instance is set to level-1 but the interface is configured as level-2, this will cause the ISIS neighbor establishment to fail.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis circuit-type level-1

[Command] isis hello padding

[Purpose] Add padding to the IS-IS hello packet to bring it up to the interface MTU size

[View] Interface Configuration View

[Notes] This feature is enabled by default. If you do not want to pad the hello message with meaningless fields, you must configure “no isis hello padding”.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis hello padding

[Command] isis hello-interval [level-1|level-2]* interval*

[Purpose] Set the interval for sending hello packets on different router interfaces

[Parameter]

ParameterDescription
intervalInterval between sending hello messages; default: 3 seconds; configurable range: 1–600

[View] Interface Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis hello-interval level-1 2

[Command] isis hello-multiplier [level-1|level-2]* interval*

[Purpose] Set the ISIS neighbor keepalive interval to a multiple of the hello packet interval

[Parameter]

ParameterDescription
intervalInterval between sending hello messages; default: 3 seconds; configurable range: 1–600

[View] Interface Configuration View

[Notes] The ISIS neighbor keepalive interval = hello-interval * hello-multiplier. Modifying the hello-interval and hello-multiplier parameters will change the keepalive interval for the peer’s ISIS neighbors.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis hello-multiplier level-1 5

[Command] isis metric [level-1|level-2]* metric_num*

[Purpose] Routing metrics for device interfaces

[Parameter]

ParameterDescription
metric_numDefault value: 20; configurable range: 0-16777215; the lower the value, the higher the priority

[View] Interface Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis metric level-1 100

[Command] isis network point-to-point

[Purpose] Set the network type for the device interface to Point-to-Point

[View] Interface Configuration View

[Notes] The device’s default network type is broadcast.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis network point-to-point

[Command] isis passive

[Purpose] Set the interface to passive mode

[View] Interface Configuration View

[Notes] In passive mode, ISIS neighbor relationships are disconnected and no ISIS HELLO messages are sent; only routing synchronization with neighbors occurs.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis passive

[Command] isis password md5* password* isis password clear

[Purpose]

Configure interface authentication

[Parameter]

ParameterDescription
md5* password*Authentication password
clearPlaintext verification

[View] Interface Configuration View

[Notes] After the interface authentication fails, an ISIS neighbor relationship cannot be established properly.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis password md5 test

[Command] isis priority* PRIORITY***[level-1|level-2]**

[Purpose] Configure the priority parameters for the interfaces; the interface with the highest priority will be designated as the DIS.

[Parameter]

ParameterDescription
PRIORITYPriority (0–127), default 64; the higher the value, the higher the priority

[View] Interface Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis priority 2

[Command] isis csnp-interval* INTERVAL***[level-1|level-2]**

[Purpose] Configure the CSNP message transmission interval for ISIS

[Parameter]

ParameterDescription
INTERVALMessage interval, configurable range: 1–600 seconds

[View] Interface Configuration View

[Notes] When this parameter is set to a value greater than 1, there will be a random time deviation of up to 10% of the packet transmission interval. This limit is intended to prevent a large number of CSNP packets from being sent simultaneously.

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)# isis csnp-interval 10 level-1

[Command] isis three-way-handshake

[Purpose] Enable or disable the three-way handshake when establishing a P2P connection. The three-way handshake is enabled by default

[View] Interface Configuration View

[Use Cases]

Terminal window
sonic# configure terminal
sonic(config)# interface ethernet 49
sonic(config-if-49)#three-way-handshake