Page MenuHomeVyOS Platform

Interface redirect to dum0
Closed, ResolvedPublicBUG

Description

Hi,

In version 1.4-rolling-202101171022 the command to redirect an interface to the dummy interface has stopped working. In version 1.1.8 that command works. Here's the command that is being applied:

set interfaces ethernet eth5 vif 1002 redirect 'dum0'

Here’s what is happening:
set interfaces dummy dum0 address ‘192.168.201.1/24’

Then this command is added:
[email protected]# set interfaces ethernet eth5 vif 1002 redirect ‘dum0’

Then the commit:
[email protected]# commit
[ interfaces ethernet eth5 vif 1002 redirect dum0 ]
Cannot find device “eth5.1002”
tc qdisc ingress failed at /opt/vyatta/sbin/vyatta-qos.pl line 334.

interfaces ethernet eth5 failed
Commit failed
[edit]
[email protected]#

Try it again:

[email protected]# set interfaces ethernet eth5 vif 1002 redirect ‘dum0’
[email protected]# commit
[ interfaces ethernet eth5 vif 1002 redirect dum0 ]
Error: Parent Qdisc doesn’t exists.
We have an error talking to the kernel
tc action redirect command failed at /opt/vyatta/sbin/vyatta-qos.pl line 343.

interfaces ethernet eth5 failed
Commit failed
[edit]
[email protected]#

And just in case, try it again:

[email protected]# set interfaces ethernet eth5 vif 1002 redirect ‘dum0’
[email protected]# commit
[ interfaces ethernet eth5 vif 1002 redirect dum0 ]
Error: Exclusivity flag on, cannot modify.
tc qdisc ingress failed at /opt/vyatta/sbin/vyatta-qos.pl line 334.

interfaces ethernet eth5 failed
Commit failed
[edit]
[email protected]#

Here’s the version:

[email protected]:~$ show version

Version: VyOS 1.4-rolling-202101171022
Release Train: sagitta

Built by: [email protected]
Built on: Sun 17 Jan 2021 10:22 UTC
Build UUID: e658dfe0-d21b-4e94-9a42-d232c1256e6b
Build Commit ID: dc1526e8b26b8e

Architecture: x86_64
Boot via: installed image
System type: KVM guest

Hardware vendor: QEMU
Hardware model: Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID: 6697630b-6b05-4553-84b0-6a085ca64253

Copyright: VyOS maintainers and contributors

And this works in version:

Version: VyOS 1.1.8
Description: VyOS 1.1.8 (helium)
Copyright: 2017 VyOS maintainers and contributors
Built by: [email protected]
Built on: Sat Nov 11 13:44:36 UTC 2017
Build ID: 1711111344-b483efc
System type: x86 64-bit
Boot via: image
Hypervisor: KVM
HW model: Standard PC (i440FX + PIIX, 1996)
HW S/N: Not Specified
HW UUID: 5BD2C4AC-B105-A347-9DB0-15061856207E
Uptime: 08:08:45 up 4 days, 18:14, 1 user, load average: 0.00, 0.01, 0.05

The configuration:
set interfaces dummy dum0 address ‘192.168.201.1/24’
set interfaces ethernet eth5 vif 1002 description ‘Subscriber-1’
set interfaces ethernet eth5 vif 1002 redirect ‘dum0’
set protocols static interface-route 192.168.201.2/32 next-hop-interface ‘eth5.1002’

Any help would be greatly appreciated.

Robert Peterson

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.4-rolling-202101171022
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change

Event Timeline

I cannot replicate this bug in a clean install of 1.4-rolling-202105291042.

[email protected]# set interfaces dummy dum0 address 192.168.201.1/24
[edit]
[email protected]# commit
[edit]

Either there's something in your config meddling with the interface creation or (most likely) this bug was solved in the main branch since then.

rpeterson changed the task status from Invalid to Resolved.Jun 3 2021, 9:58 PM

I got it to work with version 1.4-rolling-202105291042. Here's the configuration that works:

set interfaces dummy dum0 address '192.168.221.1/24'
set interfaces dummy dum0 ip source-validation 'strict'
set interfaces ethernet eth2 vif 1000
set protocols static route 192.168.221.2/32 interface eth2.1000

Thanks for your help

Robert