LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-12-2017, 04:20 PM   #1
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Rep: Reputation: 15
How to install permanent / persistent multicast route on Ubuntu


My question is: How do I configure a multicast route in Ubuntu such that it will always be present even after a reboot, and will not be removed automatically by any networking daemons Ubuntu runs?

Here is some background of my situation and what I've tried. I am stuck with Ubuntu 16.04 LTS and cannot change that. I cannot install any updates as it may break undocumented dependencies in my fragile build system (don't ask). I can add new software which is not already present. I have multiple interfaces on my Linux server and I need to have a permanent multicast route configured. I tried manually entering the route with:

Code:
user@hostname:~$ sudo ip route add 239.192.0.85/32 dev enp5s2
and everything worked excellently as confirmed by:

Code:
user@hostname:~$ route -n  | grep 239
239.192.0.85    0.0.0.0         255.255.255.255 UH    0      0        0 enp5s2
BUT NO DICE!!! -- After some time passes my route disappears.

It seems like Ubuntu has some sort of networking daemon running in the background who's main job seems to be going around and undoing any of the work someone has done manually and deliberately unless they have done it THE ONE AND ONLY CORRECT WAY (whatever that is?).

I tried to install the route using Ubuntu's gui (unity-control-center network) and there was a spot for IPv4 and routes, however when I enter a multicast route it does not work as desired. The gui shows the configuration as a static IP address. Then once I save and close out the gui no multicast route or secondary IP is added anyway proving that the gui seems to be pretty worthless for anything beyond the most basic configuration.

I also tried adding a route to /etc/network/interfaces but it does not seem to have any effect when I restart the whole machine, or when I restart NetworkManager (which might not even be the right way to apply the settings).
 
Old 01-17-2017, 03:28 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,845

Rep: Reputation: 161Reputation: 161
IGMP could join and leave a multicast group.
 
Old 01-18-2017, 11:40 AM   #3
mjl3434
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu 20.04
Posts: 111

Original Poster
Rep: Reputation: 15
Quote:
IGMP could join and leave a multicast group.
Correct, IGMP can be used to inform an upstream router, or switch that supports IGMP snooping, about the need to update their multicast routing tables. However I'm trying to add this multicast route to a host, so IGMP is irrelevant. My problem is that I want to add a persistent route to the host. I could use the crummy Ubuntu GUI tools if it were a traditional unicast route, but I tried it with multicast and that use case wasn't properly supported. So now I need to really know how to disable Ubuntu's background daemons which screw with the networking. From there I can add a startup script which installs the route. That's no problem. Perhaps I should rephrase my question and ask the Ubuntu user's forum.
 
Old 01-18-2017, 03:14 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,845

Rep: Reputation: 161Reputation: 161
The host just need to join multicast group. IGMP or PIM will take care of multicast routing or route update.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Are the changes made using chmod and chown permanent or persistent after reboot? agarwaldvk Ubuntu 9 11-13-2016 09:16 AM
Any way to setup multicast to route out 2 different network interfaces? mav1c Red Hat 1 08-15-2013 09:52 PM
Make route permanent rust8y Solaris / OpenSolaris 9 12-10-2007 04:10 AM
Permanent Default Route gianh Arch 3 05-07-2006 02:31 AM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration