In FFRouting we have ability to set interface for static routes, for example:
ip route 10.170.16.0/24 10.170.16.1 eth1
But in VyOS CLI this function is not exist, so we can configure only one of two type of static routes - interface OR next-hop:
ip route 10.170.16.0/24 10.170.16.1 OR ip route 10.170.16.0/24 eth1
This option is necessary for fully-functional usage of VyOS on some of Cloud providers.
So, we need to add something like:
vyos@test# set protocols static route 10.170.16.0/24 next-hop 10.170.16.1 Possible completions: disable Disable IPv4 next-hop static route distance Distance value for this route next-hop-interface Next-hop interface vyos@test# set protocols static route 10.170.16.0/24 next-hop 10.170.16.1 next-hop-interface eth1