I don’t see a way to turn a port into a SPAN or monitor port. to be clear, I am not mirroring incoming port I am connecting eth1 to an actual SPAN/ monitor port. so the interface needs to be in promiscous mode
I can’t seem to get it working bi-directionally (only ingress), so you’d probably need to mirror the other interface for transit traffic.
If you’re piping SPAN traffic into VyOS, and using it to send to a ERSPAN receiver somewhere else, then it should work fine since you’re only expecting ingress.
set interfaces ethernet eth0 address '10.1.2.1/24'
set interfaces ethernet eth1 mirror ingress 'tun0'
set interfaces tunnel tun0 encapsulation 'erspan'
set interfaces tunnel tun0 parameters erspan direction 'ingress'
set interfaces tunnel tun0 parameters erspan version '2'
set interfaces tunnel tun0 parameters ip key '100'
set interfaces tunnel tun0 remote '10.1.2.2'
set interfaces tunnel tun0 source-interface 'eth0'