Page MenuHomeVyOS Platform

Interface pseudo-ethernet does not change mode
Closed, ResolvedPublicBUG

Description

Interface pseudo-ethernet does not change mode.

set interfaces pseudo-ethernet peth1 mode private 
set interfaces pseudo-ethernet peth1 source-interface 'eth1'

Mode before the change expected private:

vyos@r14# sudo ip --detail link show dev peth1
10: peth1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether a6:40:9e:4b:68:cc brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    macvlan mode private addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
[edit]
vyos@r14#

Change mode to bridge expected mode bridge:

vyos@r14# set interfaces pseudo-ethernet peth1 mode 'bridge'
[edit]
vyos@r14# commit
[edit]
vyos@r14# sudo ip --detail link show dev peth1
10: peth1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether a6:40:9e:4b:68:cc brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    macvlan mode private addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
[edit]
vyos@r14#

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.4-rolling-202208290458
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to In progress.Sep 1 2022, 11:12 AM
Viacheslav claimed this task.

PR https://github.com/vyos/vyos-1x/pull/1514

set interfaces pseudo-ethernet peth1 mode 'private'
set interfaces pseudo-ethernet peth1 source-interface 'eth1'
[edit]
vyos@r14# sudo ip -d link show type macvlan
8: peth1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b2:5d:c8:8a:1f:8f brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    macvlan mode private addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
[edit]
vyos@r14# 
[edit]
vyos@r14# set interfaces pseudo-ethernet peth1 mode bridge 
[edit]
vyos@r14# commit
[edit]
vyos@r14# 
[edit]
vyos@r14# 
[edit]
vyos@r14# sudo ip -d link show type macvlan
8: peth1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether b2:5d:c8:8a:1f:8f brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535 
    macvlan mode bridge addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 
[edit]
vyos@r14#

1.3 is not affected by this bug

Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.