Skip to content
Ask AI

TRACK Configuration

[Command]

show track brief

[Purpose]

View track routing monitoring group information

[View]

System view

[Usage Scenario]

Execute this command to view the monitoring results of the routing monitoring group and the SLA information bound to the routing monitoring group.

[Use Cases]

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

[Command]

track id

[Purpose]

Create a track routing monitoring instance

[Parameter]

ParameterDescription
idInstance ID, value range: 1-65535

[View]

System Configuration View

[Usage Scenario]

Create a track monitoring instance, bind static routes with SLA instances. When the destination IP address detected by SLA is unreachable, static route deletion is notified through track to ensure that the message is no longer forwarded through that route. When the SLA detection results are restored, the static route will be automatically restored.

[Use Cases]

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

route A.B.C.D/M A.B.C.D [vrf vrf-name] [nexthop-vrf nextvrf-name] [dev interface_name]

Section titled “route A.B.C.D/M A.B.C.D [vrf vrf-name] [nexthop-vrf nextvrf-name] [dev interface_name]”

[Command]

route A.B.C.D/M A.B.C.D [vrf vrf-name] [nexthop-vrf nextvrf-name] [dev interface_name]

route6 X:X::X:X/M X:X::X:X [vrf vrf-name] [nexthop-vrf nextvrf-name] [dev interface_name]

[Purpose]

Create a track routing monitoring instance

[Parameter]

ParameterDescription
A.B.C.D/MSpecify the destination address of the route
A.B.C.DSpecify the next hop for the specified route
vrf-nameSpecify the VRF to which the route belongs
nextvrf-nameSpecify the VRF to be retrieved for the next hop of the specified route
interface_nameSpecify the next hop of the route as a fixed interface type

[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 id

[Purpose]

Bind SLA instance

[Parameter]

ParameterDescription
idSLA instance ID

[View]

Track View

[Notes]

When SLA detection times out, the routes in the routing monitoring group will be deleted, and the routes will be automatically restored after SLA detection is restored.

[Use Cases]

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