In my company we utilize Palo Alto firewalls, and they have a feature called “virtual routers”. You could have two virtual routers on a physical device, and that would logically be like two physical routers. I was wondering if VyOS has a way to do this. It would involve two interfaces being on the same subnet. I don’t know if this can be accomplished with route policies and tables, or if it’s not possible at all. I’ve read that Linux based systems allow for multiple interfaces on the same subnet. I tried experimenting with route policies but didn’t have much luck. Here would be an example:
Eth0 = 22.214.171.124/30
Eth1 = 192.168.1.1/24
Eth2 = 126.96.36.199/30
Eth3 = 192.168.2.1/24
Eth0 and Eth1 would be one “separate” router instance, while Eth2 and Eth3 woudl be another. Their connection would be Eth0 and Eth2. Again, not sure if this is possible on VyOS but thought I’d ask. Thanks!