Netplan lacks an option to add multicast routes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
Netplan lacks an option to add multicast routes.
Example:
I have a VM with 2 Ethernet nics, one for management and one for multicast streaming:
ens3 ens7
mgmt --[ HOST 1 ]--> mcast out
To route multicast out of the ens7 interface, you would add a route to 224.0.0.0/4 tied to the Ethernet device you want to use.
Using the cli, you would to this:
ip route add 224.0.0.0/4 dev ens7
This is not possible with netplan; it is just missing the option to add multicast routes, i.e. with a device instead of a gateway.
Notes:
After checking the discussion on Bug #1767607, tried this config:
network:
version: 2
renderer: networkd
ethernets:
ens3:
addresses:
- 10.0.5.40/24
ens7:
addresses:
- 192.168.200.2/30
- "2001::
routes:
- to: "224.0.0.0" <--- this
via: "0.0.0.0"
Other than being rather counter-intuitive, it passes validation but it does not work:
root@
Warning: Stopping systemd-
systemd-
Do you want to keep these settings?
Press ENTER before the timeout to accept the new configuration
Changes will revert in 120 seconds
Configuration accepted.
root@
10.0.5.0/24 dev ens3 proto kernel scope link src 10.0.5.40
192.
root@
The multicast route is missing.
Estimated,
You have been able to solve this problem, I am having the same problem and I cannot find that netplan lift with the route.
I await your comments.
Cheers