LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-09-2021, 10:38 PM   #1
IsThisThingOn
LQ Newbie
 
Registered: Nov 2021
Posts: 2

Rep: Reputation: Disabled
wildcard routes


I have some multicast traffic I want to route where the 4th octet determines the differentiating/grouping portion of about 200+ addresses. To be more clear, the addresses are structured like this:

224.100.1.200
224.100.2.200
224.100.3.200
224.100.4.200....

224.100.1.201
224.100.2.201
224.100.3.201
224.100.4.201....

224.101.1.200
224.101.2.200
224.101.3.200
224.101.4.200....

224.101.1.201
224.101.2.201
224.101.3.201
224.101.4.201....

My goal is to route the IPs ending with:
.200 to one interface
.201 to another interface

I get how it makes more sense to have a more hierarchical approach where say the 3rd octet would be 200 or 201 and the 4th octet would be .1-253. But I have no control over the inbound addresses. The only way I can come up with that works is having 200+ individual routes. Or is there something like this that will work?

#all 200 traffic to eth1
route 224.100.0.200/? dev eth1
route 224.101.0.200/? dev eth1
#
#all 201 traffic to eth3
route 224.100.0.201/? dev eth3
route 224.101.0.201/? dev eth3
 
Old 11-11-2021, 01:04 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,363

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Hello, IsThisThingOn & Welcome to LQ.

As a general rule, it's good to put a lot of information with your question, but I think I can deal with this. In an IPV4 address aaa.bbb.ccc.ddd, routing was designed to work logically. It was envisaged that the 'd' section was hosts. So your route travels from the left.

The IP scheme you lay out is non standard and makes a total mess of standard routing protocols and it is just going to cause mayhem in every area. I would advise fixing it. You say it's out of your control, but no company wants a system that is incompatible with standard protocols.

Challenge the IP naming system. Raise hell, and send memos. Dream up ways of being awkward about this and use them. If it has to be implemented as is, use your 200+ routes. Leave plenty of dire warnings on paper about breaking standard protocols. Find them routing protocols to read. Guys setting up IPV4 numbering schemes should have the rule book.To route them sanely, you'd have to swap the 'ccc' & 'ddd' like this

224.100.200.nnn
224.100.201.nnn
224.100.202.nnn etc.

The reason for this approach was that the first routing programs were lazy as hell. If line 1 matched, they didn't read line 2, etc. Everything since is compatible.

Last edited by business_kid; 11-11-2021 at 01:08 PM.
 
Old 12-20-2021, 04:01 PM   #3
IsThisThingOn
LQ Newbie
 
Registered: Nov 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Late on the follow up but thanks business_kid.

After exhaustive digging, your answer is what I expected. I think it's one of those things that won't get reversed for a variety of reasons so I'm kinda stuck with it. The good news is I found a workaround that limits IGMP requests to specific IPs that prevents the port being flooded with unwanted traffic.
 
  


Reply



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
Static routes using routes/ifroutes-eth-id.. files and default gateway disabled TimtheEagle Linux - Networking 0 05-31-2008 07:08 PM
Help with wildcard searching in Perl AnthonyM Programming 2 06-17-2003 02:43 PM
Subdomais Apache *wildcard CNAME - VirtualDocumentRoot - config file Rai Paul Linux - General 4 06-01-2003 08:19 PM
how to make use of the "*" wildcard in perl linuxlah Programming 3 12-04-2002 01:11 AM
How do I setup Wildcard MX - Will PayPal $100 to first correct answer. 360 Linux - Networking 0 11-04-2002 10:41 PM

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

All times are GMT -5. The time now is 07:53 PM.

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