In the following diagram each Vyos router has RIP configure and R1 has NAT to allow hosts from and accessing the internet. The goal is to put the PCs comunicating with each other. From inside of the firewall to outside it's made because Pfsense is routing. From outside, I thought to define a static route in R1 with the following comand:

#set protocol static route next-hop

However the static route that allowed the hosts connecting the internet desappear. The folowing line,

 S>* [210/0] via, eth0, weight 1, 00:00:59

was replace by,

S> [1/0] via (recursive), weight 1, 00:00:10

Can you help me to understand what is happening?. Thanks.

enter image description here

  • If would help if you would show what command you're using to check routing. Are you looking up a specific route, or are you listing the entire routing table?
    – Teun Vink
    Commented Feb 28, 2022 at 13:14
  • @TeunVink the command that I use to see the routes is the show ip route . Initial I wanted to see the entire routing table to check if a specific route was there.
    – user80646
    Commented Feb 28, 2022 at 18:18

1 Answer 1


#set protocol static route next-hop

That can't work. isn't connected to R1. Possibly, it just falls back that route to the default route - what exactly happens escapes me.

Instead: on R1, you'd need to route via R3 ( and on R3 via PfSense (

RIP should also be able to handle it if you just set it up on R3, but it's been 15+ years since I've worked with RIP...

  • 1
    When I set the static route for the network on R1 through R3, the default route to the outside disappears. I have to set eth0 interface with dhcp again, so that the default route activates again. I think it must be a Vyos issue. Thank you for the help.
    – user80646
    Commented Feb 28, 2022 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.