Route traffic between two interface


#1

Hi All,

I’m newbie to vyOS (network).

I do have two different IP rage for eth0 & eth1

eth0 - 192.168.1.131 - MGMT network - from NIC 1
eth1 - 10.10.10.6 - PROD network - from NIC 2

I need to reach 192.168.1.x IPs from 10.10.10.x network.

vyos@vyos:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description


eth0 192.168.1.131/24 u/u MGMT
eth1 10.10.10.6/24 u/u PROD
lo 127.0.0.1/8 u/u
::1/128

Please advise how do i achieve it.

Thank you in advance.


#2

out of the box, routing between interfaces should work.
Do the hosts in 10.10.10.0/24 have a route to 192.168.1.0/24 via 10.10.10.6, and vice-versa?
Using tcpdump on an interface, you can see if packets make it through