Skip to content
Ask AI

TRACK

[Command] show track brief

[Purpose] View the track routing monitoring group information

[View] System view

[Use Cases]

sonic# show track brief
Track_id bind_sla_id state
---------- ------------- -------
1 2 success

[Command] track ID

[Purpose] Create a track monitoring group

[Parameter]

ParameterDescription
IDInstance ID,the range value:1-65535

[View] System configuration view

[Usage Scenario] Create a track monitoring instance to establish coordination between static routing and SLA. When SLA detects that the next-hop address of a static route is unreachable, it notifies the static route to remove that route through the track feature. This ensures that packets are no longer forwarded through that route. When SLA detects the recovery of the next-hop address, the static route is automatically restored.

[Use Cases]

sonic(config)# track 1
sonic(config-track-1)#

[Command] ** route ** A.B.C.D/M A.B.C.D[vrf_name]**** route6 ** X:X::X:X*/M X:X::X***:X [vrf_name] ** no route ** A.B.C.D/M A.B.C.D[**vrf_name]**

[Purpose] Add a monitoring route to a route monitoring group

[Parameter]

ParameterDescription
A.B.C.D/MSpecifies the destination address of the route
A.B.C.DSpecifies the nexthop address of the route
vrf_nameSpecifies the vrf of the route

[View] Track view

[Use Cases]

sonic(config)# track 1
sonic(config-track-1)# route 1.1.1.1/24 2.1.1.1

[Command] sla ID no sla

[Purpose] Bind an SLA route monitoring group

[View] Track view

[Use Cases]

sonic(config)# track 1
sonic(config-track-1)# sla 1