LW-LDI-TS Oct 16 06:34:46.197
via 1.0.0.2/32, GigabitEthernet0/3/0/8, 4 dependencies, weight 200, class 0 [flags 0x0]
path-idx 0 NHID 0x0 [0x7244d2a4 0x0]
next hop 1.0.0.2/32
remote adjacency
via 2.0.0.2/32, GigabitEthernet0/3/0/9, 4 dependencies, weight 300, class 0 [flags 0x0]
path-idx 1 NHID 0x0 [0x7244d2f8 0x0]
next hop 2.0.0.2/32
remote adjacency
Weight distribution:
slot 0, weight 200, normalized_weight 2, class 0
slot 1, weight 300, normalized_weight 3, class 0
Load distribution: 0 1 0 1 1 (refcount 14)
Hash OK Interface Address
0 Y GigabitEthernet0/3/0/8 remote
1 Y GigabitEthernet0/3/0/9 remote
2 Y GigabitEthernet0/3/0/8 remote
3 Y GigabitEthernet0/3/0/9 remote
4 Y GigabitEthernet0/3/0/9 remote
Configuring IS-IS With Metric
The following example shows IS-IS metric configuration with IPv4. The same can be done with IPv6.
Router# enable
RP/0/RSP0/CPU0:router(config)# router isis 1
RP/0/RSP0/CPU0:router(config-isis)# interface GigabitEthernet0/3/0/8
RP/0/RSP0/CPU0:router(config-isis-if)# address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-isis-if-af)# metric 1
RP/0/RSP0/CPU0:router(config-isis)# interface GigabitEthernet0/3/0/9
RP/0/RSP0/CPU0:router(config-isis-if)# address-family ipv4 unicast
RP/0/RSP0/CPU0:router(config-isis-if-af)# metric 100
Verification
The following example verifies CEF entry, and checks for the two paths with metric values of 1 and 100,
respectively. In this example, the best path route metric is 21 and the UCMP path route metric is 120. Therefore,
the calculation is as follows:
The best path route metric, 21 = (1 configured + 20 added by IS-IS), weight 0xFFFFFFFF (4294967295)
The UCMP path route metric, 120 = (100 + 20), weight = (21/120) * 4294967295 = 751619276
GCD is one. So Normalized Weight is:
(4294967295 * 64) / (4294967295 + 751619276) = 54
(751619276 * 64) / (4294967295 + 751619276) = 9
Router# show cef ipv4 97.0.0.0 detail
97.0.0.0/24, version 773, internal 0x1000001 0x0 (ptr 0x71bcaee0) [1], 0x0 (0x71b98870),
0x0 (0x0)
Updated Oct 16 06:36:08.632
remote adjacency to GigabitEthernet0/3/0/8
Prefix Len 24, traffic index 0, precedence n/a, priority 2
gateway array (0x71a6d9d0) reference count 2, flags 0x0, source rib (7), 0 backups
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
232
Implementing UCMP
Configuring IS-IS With Metric