ISIS Configuration
此内容尚不支持你的语言。
show isis database
Section titled “show isis database”[Command] show isis database {detail|json}
[Purpose] Display the IS-IS link-state database known to the local router
[Parameter]
| Parameter | Description |
|---|---|
| detail | Display detailed information from the ISIS link state database |
| json | ISIS link state database information in JSON format |
[View] System View
[Use Cases]
sonic# show isis databaseArea test1:IS-IS Level-2 link-state database:LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OLsonic.00-00 82 0x0000000a 0x97f5 383 0/0/0sonic.00-00 * 82 0x00000007 0x49ab 321 0/0/0sonic.1f-00 * 52 0x00000005 0x7d14 412 0/0/03 LSPs
Area test2:IS-IS Level-1 link-state database:LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OLsonic.00-00 83 0x00000008 0x4c8f 454 1/0/0sonic.00-00 * 83 0x00000007 0x6fb0 455 1/0/0sonic.20-00 * 51 0x00000005 0xadca 452 1/0/03 LSPs
IS-IS Level-2 link-state database:LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OLsonic.00-00 83 0x00000008 0x449f 401 0/0/0sonic.00-00 * 83 0x00000007 0x67c0 452 0/0/0sonic.20-00 * 51 0x00000005 0xa5da 396 0/0/03 LSPs
Area test3:IS-IS Level-1 link-state database:LSP ID PduLen SeqNumber Chksum Holdtime ATT/P/OLsonic.00-00 82 0x00000008 0x3d30 446 0/0/0sonic.00-00 * 82 0x00000007 0xeae7 468 0/0/0sonic.21-00 * 52 0x00000005 0x6d24 439 0/0/03 LSPsshow isis summary
Section titled “show isis summary”[Command] show isis summary [json]
[Purpose] Display ISIS summary information
[Parameter]
| Parameter | Description |
|---|---|
| Up time | ISIS runtime |
| L1 IIH | Number of Level-1 LAN Hello messages |
| P2P IIH | Number of peer-to-peer Hello messages |
| L1 LSP | Number of Level-1 Link-State Messages |
| L1 CSNP | Level-1 Number of complete serial number messages |
| L1 PSNP | Number of partial serial number messages in Level 1 |
| LSP RXMT | Number of LSP messages retransmitted |
[View] System View
[Use Cases]
sonic# show isis summaryvrf : defaultProcess Id : 54System Id : 0000.0000.0140Up time : 1d01h41m agoNumber of areas : 1Area 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 : 341show isis hostname
Section titled “show isis hostname”[Command] show isis hostname
[Purpose] View the mapping between hostnames and system IDs in the IS-IS protocol
[Parameter]
| Parameter | Description |
|---|---|
| Dynamic | Dynamic hostname mapping |
| Hostname | Static hostname mapping |
[View] System View
[Use Cases]
sonic# show isis hostnamevrf : defaultLevel System ID Dynamic Hostname1 0000.0000.0185 sonic1 0000.0000.0107 sonic * 0000.0000.0140 sonicshow isis interface
Section titled “show isis interface”[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]
sonic# show isis interfaceArea test: Interface CircId State Type Level eth 13 0x30 Up lan L1Area test1: Interface CircId State Type Level eth 46 0x11 Up lan L2Area test2: Interface CircId State Type Level eth 47 0xe Up lan L1L2Area test3: Interface CircId State Type Level eth 48 0xf Up lan L1show isis neighbor
Section titled “show isis neighbor”[Command] show isis neighbor {detail|json|* system_id***}**
[Purpose] Display the status and information of ISIS neighbors
[View] System View
[Use Cases]
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 neighborArea test: System Id Interface L State Holdtime SNPA sonic eth 13 1 Up 30 000e.c656.9d35Area test1: System Id Interface L State Holdtime SNPA sonic eth 46 2 Up 29 60eb.5103.1140Area 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.1140Area test3: System Id Interface L State Holdtime SNPA sonic eth 48 1 Up 28 60eb.5103.1140show isis route
Section titled “show isis route”[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]
sonic# show isis routeArea 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]
sonic# show isis fast-reroute summaryArea 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%router isis
Section titled “router isis”[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]
sonic# configure terminalsonic(config)# router isis test[Command] net* XX.XXXX.XXXX.XXXX.XX*
[Purpose] Configure NET
[Parameter]
| Parameter | Description |
|---|---|
| XX.XXXX.XXXX.XXXX.XX | Network 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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# net 11.1111.1111.1111.00password
Section titled “password”[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]
| Parameter | Description |
|---|---|
| area-password | Inter-zone authentication, such as authentication between Level-1 and Level-1 zones or between Level-1 and Level-2 zones |
| domain-password | Authentication between routing domains, such as between Level-2 and Level-2 routing domains or between Level-1 and Level-2 routing domains |
| clear | Explicit authentication |
| password | Ciphertext authentication |
[View] ISIS Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# area-password md5 test123fast-reroute load-sharing disable
Section titled “fast-reroute load-sharing disable”[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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# fast-reroute load-sharing disable level-1fast-reroute priority-limit
Section titled “fast-reroute priority-limit”[Command] fast-reroute priority-limit {critical|high|medium} [level-1|level-2]
[Purpose] Enable LFA backup path calculation for different routing levels
[Parameter]
| Parameter | Description |
|---|---|
| critical | Calculate LFA backup paths only for critical-level routes |
| high | Compute LFA backup paths for critical and high-priority routes |
| medium | Calculate 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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# fast-reroute priority-limit critical level-1fast-reroute lfa tiebreaker
Section titled “fast-reroute lfa tiebreaker”[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]
| Parameter | Description |
|---|---|
| downstream | Prefer paths where the cost of reaching the next hop to the destination is lower than the cost of reaching the destination directly |
| lowest-backup-metric | Select the backup path with the lowest total cost |
| node-protecting | Give priority to backup paths that do not pass through the next hop on the main route |
| index_id | The 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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# fast-reroute lfa tiebreaker node-protecting index 10 level-1metric-style
Section titled “metric-style”[Command] metric-style {narrow|transition|wide}
[Purpose] Configure the mode for setting the router’s metric
[Parameter]
| Parameter | Description |
|---|---|
| narrow | Traditional narrow-metric model |
| transition | Transition mode, supporting both narrow and wide metrics |
| wide | Width-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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# metric-style narrowredistribute
Section titled “redistribute”[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]
| Parameter | Description |
|---|---|
| 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]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# redistribute ipv4 ospf level-1 metric 10is-type
Section titled “is-type”[Command] is-type {level-1|level-1-2|level-2-only}
[Purpose] Define the ISIS router level
[Parameter]
| Parameter | Description |
|---|---|
| level-1 | Site Router |
| level-1-2 | It can function as both a site router and a zone router |
| level-2 | Area Router |
[View] ISIS Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# router isis testsonic(config-router)# is-type level-1ip router isis
Section titled “ip router isis”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# ip router isis testisis circuit-type
Section titled “isis circuit-type”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis circuit-type level-1isis hello padding
Section titled “isis hello padding”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis hello paddingisis hello-interval
Section titled “isis hello-interval”[Command] isis hello-interval [level-1|level-2]* interval*
[Purpose] Set the interval for sending hello packets on different router interfaces
[Parameter]
| Parameter | Description |
|---|---|
| interval | Interval between sending hello messages; default: 3 seconds; configurable range: 1–600 |
[View] Interface Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis hello-interval level-1 2isis hello-multiplier
Section titled “isis hello-multiplier”[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]
| Parameter | Description |
|---|---|
| interval | Interval 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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis hello-multiplier level-1 5isis metric
Section titled “isis metric”[Command] isis metric [level-1|level-2]* metric_num*
[Purpose] Routing metrics for device interfaces
[Parameter]
| Parameter | Description |
|---|---|
| metric_num | Default value: 20; configurable range: 0-16777215; the lower the value, the higher the priority |
[View] Interface Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis metric level-1 100isis network point-to-point
Section titled “isis network point-to-point”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis network point-to-pointisis passive
Section titled “isis passive”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis passiveisis password
Section titled “isis password”[Command] isis password md5* password* isis password clear
[Purpose]
Configure interface authentication
[Parameter]
| Parameter | Description |
|---|---|
| md5* password* | Authentication password |
| clear | Plaintext verification |
[View] Interface Configuration View
[Notes] After the interface authentication fails, an ISIS neighbor relationship cannot be established properly.
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis password md5 testisis priority
Section titled “isis priority”[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]
| Parameter | Description |
|---|---|
| PRIORITY | Priority (0–127), default 64; the higher the value, the higher the priority |
[View] Interface Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis priority 2isis csnp-interval
Section titled “isis csnp-interval”[Command] isis csnp-interval* INTERVAL***[level-1|level-2]**
[Purpose] Configure the CSNP message transmission interval for ISIS
[Parameter]
| Parameter | Description |
|---|---|
| INTERVAL | Message 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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)# isis csnp-interval 10 level-1isis three-way-handshake
Section titled “isis three-way-handshake”[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]
sonic# configure terminalsonic(config)# interface ethernet 49sonic(config-if-49)#three-way-handshake