#this is a state at the beging:
run show configuration routing-options static | match 10.44.199.54
route 10.44.199.54/32 next-hop st0.16;
run show route 10.44.199.54/32
inet.0: 353 destinations, 372 routes (353 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.44.199.54/32 *[Static/5] 3d 22:44:35
> via st0.16
#after floating static route addition:
set routing-options static route 10.44.199.54/32 qualified-next-hop st0.36 preference 7
run show configuration routing-options static | find 10.44.199.54
route 10.44.199.54/32 {
next-hop st0.16;
qualified-next-hop st0.36 {
preference 7;
run show route 10.44.199.54/32
inet.0: 353 destinations, 373 routes (353 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.44.199.54/32 *[Static/5] 3d 22:48:24
> via st0.16
[Static/7] 00:00:35
> via st0.36
#so far so good - no network issues
#now - I breake via st0.16 by modyfing gateway
set security ike gateway eNB101034_Mplane_gateway version v1-only
#connectivity via primary tunnel(st0.16) fail, so it should swap to use route via st0.36
#tunnel is swapped but routing still use primary route
lteadm@srx1400# run show route 10.44.199.54/32
inet.0: 353 destinations, 373 routes (353 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.44.199.54/32 *[Static/5] 3d 22:56:49 <---------------
> via st0.16
[Static/7] 00:09:00
> via st0.36
#interface st0.36 is up
lteadm@srx1400# run show interfaces terse | match st0.36
st0.36 up up inet
[edit]
#however interface st0.16 is up as well, so to simulate tunnel failer, I also disable st0.16 interface
set interfaces st0 unit 16 disable
run show interfaces terse | match st0.16
st0.16 down up inet
run show route 10.44.199.54/32
inet.0: 353 destinations, 372 routes (353 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.44.199.54/32 *[Static/7] 00:18:30
> via st0.36
[edit]
#and routing works!
#then I want to switch back to previouse routing and porevious tunnel
set security ike gateway eNB101034_Mplane_gateway version v2-only
delete interfaces st0 unit 16 disable
#and ... routing is back to normal
run show route 10.44.199.54/32
inet.0: 353 destinations, 373 routes (353 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.44.199.54/32 *[Static/5] 00:01:06
> via st0.16
[Static/7] 00:24:00
> via st0.36
#so - to summarise - to test tunnel failower, I should also disable virtual(st0.16) inetrface
Thanks elkadiki - I put my head into correct direction 🙂