Page MenuHomeVyOS Platform

interfaces virtual-ethernet - Extend capabilitys of Vlans/QinQ
Closed, ResolvedPublicFEATURE REQUEST

Description

veth interfaces supported tagging and QinQ , it would be nice extend those feature .

example with Vlans :

sudo  ip link set dev veth1 up
sudo ip link add link veth1 veth1.100 type vlan proto 802.1ad id 100
sudo ip addr add 1.1.1.2/24 dev veth1.100
sudo ip link set dev veth1.100 up

example with QinQ :

sudo  ip link set dev veth1 up
sudo ip link add link veth1 veth1.100 type vlan proto 802.1ad id 100
sudo ip link set dev veth1.100 up
sudo ip link add name veth1.100.200 link veth1.100 type vlan proto 802.1q id 200
sudo ip addr add 1.1.1.2/24 dev veth1.100.200
sudo ip link set dev veth1.100.200 up

`

current options :

vyos@rt-1# set interfaces virtual-ethernet veth10
Possible completions:
+  address              IP address
   description          Description
 > dhcp-options         DHCP client settings/options
 > dhcpv6-options       DHCPv6 client settings/options
   disable              Administratively disable interface
   peer-name            Virtual ethernet peer interface name
   vrf                  VRF instance name

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202305061637
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

Viacheslav changed the subtype of this task from "Task" to "Feature Request".

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:~$
Viacheslav changed the task status from Open to In progress.May 24 2023, 7:24 AM
Viacheslav claimed this task.
Viacheslav changed the task status from In progress to Needs testing.May 24 2023, 7:47 AM
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.