OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : Static Route Object Tracking using IP SLA : Configuration
Configuration
R1
 
R1#conf t
Enter Configure mode.
R1(config)#interface ce52
Enter interface mode.
R1(config-if)#ip address 2.2.2.1/24
Configure IPv4 address
R1(config-if)# interface ce0
Enter interface mode.
R1(config-if)#ip address 4.4.4.1/24
Configure IPv4 address
R1(config)#ip sla 1
Configure IP SLA with a unique no
R1(config)#icmp-echo ipv4 2.2.2.2 source-interface ce52
Configure the icmp-echo using destination Ip Address and source interface name
R1(config-ip-sla-echo)#threshold 1000
Configure the threshold value
R1(config-ip-sla-echo)#timeout 1000
Configure the Timeout value
R1(config-ip-sla-echo)#frequency 5
Configure the frequency value
R1(config)#time-range tr1
Configure a time-range
R1(config-tr)#start-time 11:22 3 july 2021
Configure a start-time
R1(config-tr)#end-time after 200
Configure end-time
R1(config)#ip sla schedule 1 time-range tr1
Schedule a IP SLA measurement
R1(config)# track 1 ip sla 1 reachability
Configure the Track for IP SLA
R1(config)#ip route 3.3.3.0/24 2.2.2.2 track 1
Configure the static route with the nexthop address.
R1(config)#ip route 5.5.5.0/24 4.4.4.2
Configure the static route with the nexthop address.
R1(config)#ip route 6.6.6.0/24 2.2.2.2 track 1
Configure the static route with the nexthop address.
R1(config)#ip route 6.6.6.0/24 4.4.4.2 10
Configure the static route with the nexthop address with some delay
R1(config)#commit
Commit the candidate configuration to the running configuration
R1(config)#exit
Exit configure mode
 
 
R2
 
R2#conf t
Enter Configure mode.
R2(config)#int ce50
Enter interface mode.
R2(config-if)#ip address 3.3.3.1/24
Configure IPv4 address
R2(config)#int ce52
Enter interface mode.
R2(config-if)#ip address 2.2.2.2/24
Configure IPv4 address
R2(config)#ip route 6.6.6.0/24 3.3.3.2
Configure the static route with the nexthop address.
R2(config)#commit
Commit the candidate configuration to the running configuration
R2(config)#exit
Exit configure mode
R3
 
R3#conf t
Enter Configure mode.
R3(config)#int xe7
Enter interface mode.
R3(config-if)#ip address 5.5.5.1/24
Configure IPv4 address
R3(config)#int xe14
Enter interface mode.
R3(config-if)#ip address 4.4.4.2/24
Configure IPv4 address
R3(config)#commit
Commit the candidate configuration to the running configuration
R3(config-if)#exit
Exit interface mode.
R3(config)#ip route 6.6.6.0/24 5.5.5.2
Configure the static route with the nexthop address.
R3(config)#commit
Commit the candidate configuration to the running configuration
R3(config)#exit
Exit configure mode
R4
 
R4#conf t
Enter Configure mode.
R4(config)#interface ce0
Enter interface mode.
R4(config-if)#ip address 3.3.3.2/24
Configure IPv4 address
R4(config)#interface xe1
Enter interface mode.
R4(config-if)#ip address 6.6.6.6/24
Configure IPv4 address
R4(config)#interface xe7
Enter interface mode.
R4(config-if)#ip address 5.5.5.2/24
Configure IPv4 address
R4(config-if)#commit
Commit the candidate configuration to the running configuration
R4(config-if)#exit
Exit interface mode.
R4(config)#ip route 2.2.2.0/24 3.3.3.1
Configure the static route with the nexthop address.
R4(config)#ip route 4.4.4.0/24 5.5.5.1
Configure the static route with the nexthop address.
R4(config)#commit
Commit the candidate configuration to the running configuration
R1(config)#exit
Exit configure mode
Last modified date: 10/16/2023