Page MenuHomePhabricator

Allow bonding interfaces to have pseudo-ethernet interfaces
Open, Requires assessmentPublicFEATURE REQUEST

Description

I have a connection bundle on bond0 to my switch. And bond0.2 is my connection to the ISP that requires me to use DHCP.

But my ISP allows me to get up to 3 IPs, but I have to request them using DHCP, with different mac address for each address.

Feature request: Allow me to do something like this:

+pseudo-ethernet peth0 {
+    link bond0
+    vif 2 {
+        address dhcp
+        address dhcpv6
+        mac 00:20:91:aa:aa:aa
+    }
+}
+pseudo-ethernet peth1 {
+    link bond0
+    vif 2 {
+        address dhcp
+        address dhcpv6
+        mac 00:20:91:bb:bb:bb
+    }
+}
+pseudo-ethernet peth2 {
+    link bond0
+    vif 2 {
+        address dhcp
+        address dhcpv6
+        mac 00:20:91:cc:cc:cc
+    }
+}

Currently fails with:

[ interfaces pseudo-ethernet peth2 link bond0 ]
bond0 is a bonding interface not an ethernet interface

[[interfaces pseudo-ethernet peth2]] failed
[ interfaces pseudo-ethernet peth0 link bond0 ]
bond0 is a bonding interface not an ethernet interface

[[interfaces pseudo-ethernet peth0]] failed
[ interfaces pseudo-ethernet peth1 link bond0 ]
bond0 is a bonding interface not an ethernet interface

[[interfaces pseudo-ethernet peth1]] failed
[[interfaces pseudo-ethernet peth0 vif 2]] failed
[[interfaces pseudo-ethernet peth2 vif 2]] failed
[[interfaces pseudo-ethernet peth1 vif 2]] failed
Commit failed

System information:

Version:          VyOS 1.2.0-rolling+201905031607
Built by:         autobuild@vyos.net
Built on:         Fri 03 May 2019 16:07 UTC
Build ID:         87a851ea-33c5-4e14-9484-303787870de7

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  Dell Inc.
Hardware model:   PowerEdge R410

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

Gunni updated the task description. (Show Details)May 19 2019, 8:59 PM
Gunni added a comment.EditedMay 24 2019, 4:21 AM

I commented out lines 389 and 390 in https://github.com/vyos/vyatta-cfg-system/blob/67b10e6ff5f33d73c128508f00198cc3c04c13fc/scripts/vyatta-interfaces.pl#L377.

By doing that i was able to create a peth0 with bond0 as link.

I then created vif 2 under peth0, it was created successfully but no traffic arrived on it.

Only once i deleted bond0.2 did I receive traffic, so a check should be in place for that. Probably also for ethX.N interfaces.

I am now using the peth0.2 as my internet interface and it works fine.

pasik added a subscriber: pasik.May 24 2019, 6:19 AM