PR https://github.com/vyos/vyos-1x/pull/2017
set interfaces virtual-ethernet veth10 peer-name 'veth100' set interfaces virtual-ethernet veth10 vif 50 address '10.0.50.0/31' set interfaces virtual-ethernet veth100 peer-name 'veth10' set interfaces virtual-ethernet veth100 vif 50 address '10.0.50.1/31'
Check:
vyos@r14:~$ show interfaces virtual-ethernet Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- veth10 - u/u veth10.50 10.0.50.0/31 u/u veth100 - u/u veth100.50 10.0.50.1/31 u/u vyos@r14:~$
Pings:
vyos@r14:~$ ping 10.0.50.1 source-address 10.0.50.0 PING 10.0.50.1 (10.0.50.1) from 10.0.50.0 : 56(84) bytes of data. 64 bytes from 10.0.50.1: icmp_seq=1 ttl=64 time=0.132 ms 64 bytes from 10.0.50.1: icmp_seq=2 ttl=64 time=0.085 ms 64 bytes from 10.0.50.1: icmp_seq=3 ttl=64 time=0.087 ms ^C --- 10.0.50.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2064ms rtt min/avg/max/mdev = 0.085/0.101/0.132/0.021 ms vyos@r14:~$