You are here

Add Advertised Route

8 posts / 0 new
Last post
K7DXS
Add Advertised Route
I'm looking for a way to advertise a static route in the way that OSPF does. Basically I want to set up a 172.x.x.x/28 network and I want my node to advertise that specific network to the mesh. The reason is I have a Mikrotik router and I want to have both the benefits of no NAT and those of this router. Is this practical? I would, of course, need to make sure it doesn't overlap with the vtun addresses. 
AE6XE
AE6XE's picture
K7DXS,   From the sense that
K7DXS,   From the sense that this is software, anything is possible with know-how.   Fundamentally, there isn't an out-of-box way to do this at the moment in AREDN.  It sort of defeats the purpose of plug-and-play when extending and adding devices to the AREDN network.     A foreign network would be across the AREDN gateway feature, but this means the 'default' IP addresses not on the AREDN network are routed there (and generally assumes it gets one to the internet).     You would have to essentially turn a Mikrotik device into the AREDN compatible protocol to do this.

What particular Mikrotik hardware are you looking at?   I've been looking at these devices myself.

Joe AE6XE
K7DXS
I figured it wouldn't be
I figured it wouldn't be simple. My main concern is, would it be persistent if I somehow figured out olsrd and configured it? I know there's some weird stuff with config.mesh (I haven't done that much with the command line to AREDN) As for MT boards, I use the RB2011. 5 gig, 5 fast ethernet ports, an SFP port, a USB port you can use to power (and control power to) a USB device *cough cough* pi *cough cough*, a touchscreen for basic management, and wifi. If you're looking into making AREDN for them, keep this in mind: Mikrotik builds software and sells these little router things on the side. They sell licenses for x86 PCs. The appeal to MT is the software. So if you do build AREDN for MT boards, don't replace RouterOS, use the MetaROUTER feature. From what I understand it's basically a router VM. OpenWRT has builds for it.
KG6JEI
Advertising a network outside
Advertising a network outside of the scope of those configured inside of the standard AREDN configuration is a V3 protocol violation and must not be done on any interconnected AREDN network (in other words you MUST setup a network that will never be tunneled or connected by RF to any official v3 network)

Even if you were to tweak it in the backend there is no guarantee it would work long term as the 10.0.0.0/8 and 172.16.0.0/12 ranges are reserved for AREDN operations in the V3 protocol and may be out to additional use at any time.
K7DXS
I thought only a specific
I thought only a specific section of the /12 section was reserved. Anyway, there needs to be a way to use other routers on the mesh, not just OpenWRT. Restricting it like that seems to me to be against the open spirit of ham radio. Ideally, there would be a way to set it up so that the network a node would normally have for LAN is routed via another router. For example, in this configuration I could have 10.123.123.1/30 as the node, 10.123.123.2/30 as the router, and the node would advertise 10.100.100.0/(30,29,28 depending on user choice) and have an internal static route of 10.100.100.0/x via 10.123.123.2. If there's not enough address space to add the extra /30s, then why not use the 192.168/16 block?
KG6JEI
Only a few portions of the
Only a few portions of the /12 is in active use in 3.16.1.0, but the entire 10.0.0.0/8 (fully auto allocated based on MAC addresses) and 172.16.0.0/12 (mix of range usages, including ranges declared full coordination with all networks you wish to sync with required [mostly the tunnel range] ) ranges are reserved for use by the AREDN mesh to implement new features as needed into the protocol.

It is important to remember the AREDN software mission is to provide the tools to build a network that is fully independent of any existing infrastructure or network. The protocol defines certain standards and requirements for interoperability.  Its also better not to think of mesh nodes as routers, think of them as a modem. Yes they run a lot of software on them, but the end of the day the AREDN node missions it to turn your ethernet connection into a self configuration RF interface.

"Anyway, there needs to be a way to use other routers on the mesh, not just OpenWRT."  You could very easily use a 13 host configuration and have a router plugged into the mesh node and it would have 13 IP addresses to do whatever it wants with.   You may need to remove your "no nat" restriction however depending on your needs but we certainly do not stop you from utilizing a router there to do whatever you want with it.  A common "router" use is a WIFI access point router is put on one of the IP addresses.

Another way to think of this is, you get a internet connection from your ISP,  Do they let you advertise any IP range you want or do they say "You have been allocated X/Y/Z and may use it as you need to"   A mesh node allocates you X/Y/Z as part of the standard.  You can do whatever you want with those IP addresses (and even back haul your internal private network to a system on the other end using some sort of non encrypted tunnel since that is an overlay that the mesh doesn't need to know about) but those are the IP addresses to work with.

"If there's not enough address space to add the extra /30s, then why not use the 192.168/16 block?"  Well the use of the 192.168..0.0/16 block hasn't come up yet

For ease of a demonstration lets assume you have only one link from your node to a central node that connects you to everyone,  lets assume we allow advertising full netblock and you choose to advertise 192.168.1.0/24.   Lets then assume I also chose the same netblock for my truck which has a lot of network gear in it (BTW my truck is NAT mode because of this reason in real life and the fact 99% of that gear doesn't need to be directly reachable on the mesh).  I drive closer the mesh node that hears you,  its going to see "Hey this KG6JEI truck can get me to 192.168.1.0/24, no need to make the long haul to K7DXS"  and now your network is no longer reachable.

You could certainly make a proposal for an increase in the host selections box count (so far no one has really provided a reason to my knowledge for a need of more than 13 hosts) in the AREDN ticket system bloodhound if you feel there is a need for larger host counts so you could do either a 1:1 NAT or directly assign your nodes into the mesh side subnet.
K7DXS
I fully understand the
I fully understand the reasoning for the 192.168/16 thing, it was just me thinking as I typed. But what you were saying about it being a modem and not a router as a paradigm, I completely agree, in fact that is my goal for this entire thing. I work for an ISP who gets their Internet from Cox. Their modem and main router are on a /30, and their modem has a route that says x.x.x.x/26 via the second host in the /30. And that makes it so he is free to use whatever router he wants to for those 64 IPs. I used to be strongly in favor of keeping v3 for the known future, but I recently realized that that could hinder advancement, which is just as against the spirit of ham radio as restricting everything. So if v4 comes anytime in the near future, we should dedicate a block of 172s for /30s with the example I gave (so it's user's choice if they want to do it that way). Separate question, how robust is the method of choosing IPs based on MAC addresses? 1. What are the chances of collision (if any), and 2. Does it leave much open?
K7DXS
Would there be any problems
Would there be any problems with advertising a range of Internet IPs I own? Those couldn't possibly ever be used internally by AREDN. I'd like to provide the mesh access to a server of mine without being a mesh gateway.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer