
spine1 and spine2 connect to sw1 with two links respectively,and both of them configured with static route next-hop towards to sw1.
when trying ping server1 from server2,we find every four packets with one timeout.As shown in the picture.

checking routing-table on the serverleaf:

according to the output information above,there are two route paths towarding to 192.168.200.0/24,both of them learns from OSPF,and next-hop are spine1 and spine2 respectively.
checking route information on spine1 and spine2


according to the output information,there are two routes towards to 192.168.200.0/24 on spine1,and only one route towards to 192.168.200.0/24 on spine2.This does not match the expectations.
checking configuration on spine1 and spine2


with the output information,we can learn that commanddoesn't take effect.Preliminary judgment that there is a link between Spine2 and SW1 is faulty.
ip route-static 192.168.200.0 255.255.255.0 192.168.1.13
checking interface status on spine2

interface g1/0/1 is in down state,it may caused by link failure between spine2 and sw1
checking information on sw1


from the output information,we find something stange,interface g0/0/4 is in down state,but the route path towards to the 192.168.1.14 still exists in the routing-table,which should be baned because of the link failure.
with further inspection,or more observant,we can find that the output interface of route path which towards to 192.168.1.14 is vlan21.
Interface vlan21 should be in down state because of the link failure,but it is up,so there must be more interface that allows vlan 21 passing through and they must be in up state.
checking vlan 21 on sw1

from the output,interface g0/0/5 allows vlan 21 passing through,and it is up,this results in interface vlan21 doesn't turn to down when interface g0/0/4 turns to down state.
Static route wouldn't inspect if the next-hop is accessible,whether the static route are enabled is based on the state of the layer 3 interface that it associated with.
When switch connectes to other layer 3 devices with vlan interface,and configures static route with next-hop but assign none output interface,this may lead to corresponding route not been removed from routing-table because vlan interface is in up state.
So,when configuring static route,we'd better assign next-hop and output interface both,if the more sensitive demands are required,it's better to implement BFD or NQA monitoring the link state.
Tips:
1.if two switches connecte to each other with vlan interface,which contains more than one physical link,with one of the physical link failure,it wouldn't results in next-hop unreachable,because the other link will share the traffic.
2.when switch configured with load-balance per packet,it will lead to phenomenon described in this case, if switch configured with load-balance per flow,it will result in some services normal and other abnoraml.
If you guys find any errors in this post,plz figure it out,and it's pleasure to see you sharing your thoughts~
![[case] Load balancing by static routes on switch causes drop packets periodically-2790543-12](https://forum.huawei.com/enterprise/en/static/image/smiley/default/smile.gif)