=== gjolly_ is now known as gjolly === jrm2 is now known as jrm === kenyon_ is now known as kenyon === yawkat` is now known as yawkat [12:49] Hello, I have a netplan renderer question for you : In our Datasource, when trying to add a static IPv4 network with the following network_config : [12:49] {'version': 1, [12:49] 'config': [ [12:49] {'type': 'physical', [12:49] 'name': 'ens2', [12:49] 'subnets': [ [12:49] {'type': 'static', [12:49] 'address': '195.154.xx.yyy', [12:49] 'mac_address': 'xx:00:00:00:00:xx', [12:49] 'routes': [ [12:49] {'network': '0.0.0.0', [12:49] 'prefix': 0, [12:49] 'gateway': '62.210.0.1'}]}]}]} [12:49] The netplan rendered file will not add the default route unless I manually add on-link: true to validate the fact that the gateway's subnet is not in the same subnet as the NIC [12:50] I don't see any way to add the on-link: true in the network_config structure so I suppose that there is another proper way of doing this in order to get the proper routing [12:53] The generated netplan file is here : http://pastebin.fr/112811 [13:35] weeelll, I don't now if will be your suggestion, but since switching to version 2 means that there is a one-to-one matching between the network_config structure and netplan, I can easily build the proper structure with on-link: True and it seems to work as I expect [14:51] caribou: I don't think cloud-init networking config has a way of accomplishing that other than the netplan passthrough as you mentioned. That's something we should probably add [15:44] falcojr: well, using V2 seems to do the job, I just had to dig into the source to figure it out. Thanks for confirming that [16:14] caribou: This setup is unusual. What would be the use case for this? [16:20] I'd think it is more than just usual, how would the default route ever be usable as there is no machine interface on the same subnet as the gateway [16:20] s/usual/unusual/ [16:21] minimal: +1 to "more than unusual" [16:22] I see examples of this being supported at https://netplan.io/examples [16:23] you need a router on your local network so that you can send it packets for machines not on the same network. But if the router itself is not on the same network then you'd need another router on the same network as you to send the packets to for it to forward them to the 1st router ;-) [16:26] hmm, from "ip route" manpage: "pretend that the nexthop is directly attached to this link, even if it does not match any interface prefix." [16:28] confused how this works at all as it goes against fundamental routing principles [16:32] if arp returns a mac for that IP I assume this would work, despite how wrong it seems [16:33] unless it's supposed to act like "unnumbered links" which are sometimes used for PtP serial/leased-line connections (rather than broadcast networks like ethernet) where each router sees IP address(es) of the other non-PtP interfaces of the other router as being directly accessible [16:35] bjut that works with PtP networks as there is no broadcast "domain" in PtP links, unlike broadcast media such as ethernet, so packets sent can only possibly go to the machine/router at the other end [16:38] holmanb: tbh, I'm not behind the network setup of all this. maybe I can fetch more details [16:41] that might also be an unusual configuration of our lab setup which may not reflect our "real world" network configuration. I'll check on that too [16:44] caribou: I think minimal and I are confused because however this "works" it violates a lot of typical network addressing expectations. [16:45] caribou: which would likely make it a pretty low priority for cloud-init support [16:45] caribou: If this is only for a lab where you need two devices to talk to each other, then adding support for an obscure networking feature to cloud-init seems like the "hard way" to accomplish whatever you're trying to do. [16:46] caribou: more details would help a lot - real world details especially so [16:46] Thanks :) [16:48] holmanb: yep; I'll get more details from my network engineers counterpart & let you know as soon as I know more [16:49] caribou: Thanks! [20:20] caribou, holmanb, minimal: I'm pretty, and sure, Hetzner has, or used to have a peet-to-peer setup your their IPv4 network [20:20] peer-to-peer, even [20:24] meena: over a broadcast (ethernet) media? [20:27] https://gist.github.com/642efb4e0f4da255382bc299ec65ce83 [20:28] sometimes i forget what an unholy mess Hetzner's network is [20:29] and this is waaaaaaay improved from what it used to be [21:30] meena: Why configure the interface to be in a different subnet than the gateway? [21:36] holmanb: I guess to save on public IPv4 address space, the vtnet0 IP is "global" but the gateway is private address space [21:37] if they didn't use this "trick" then they'd have to waste some public/global address space for gateway within their hosting environment [21:42] plus they're handling out/creating a /32 so what IP could a "local" gateway be on? lol [21:43] the joys of VPS-type hosting providers wacky setups.... [21:46] was helping someone last night who's using cloud-init with OVH's Bare Metal service - it's Openstack-based and so ConfigDrive data source. He had a *large* number of IPv6 routes, turns out the network info passed via ConfigDrive has this in it so something must have gone wrong at OVH side - it defined IPv6 routes for a /32, a /33, a /34, a /35, etc all the way to a /128 ;-) [21:47] so the resultant e/n/i file (for the Debian deriivative he used) had all these interface "pre-up" entries per route [21:48] > plus they're handling out/creating a /32 so what IP could a "local" gateway be on? lol [21:48] I see the config meena shared has a /32, but I haven't even found anywhere in Hetzner's docs where static addressing recommends that. [21:48] most of their examples use hdpc [21:48] dhcp [21:49] ahhh, found it [21:49] https://docs.hetzner.com/cloud/servers/static-configuration [21:49] I definately heard of some VPS type providers using /32 [21:51] holmanb: ah I see in that page their e/n/i example has "pointopoint 172.31.1.1" which goes back to my original comment about unnumbered PtP links [21:51] that I think turns the interface effectively into no longer a broadcast media [21:51] ^^ that docs page also says to disable cloud-init, lol [21:51] well it says to disable c-i network *changes* [21:51] *cloud-init networking [21:51] yeah, mistyped that [21:52] so it might do the original network config ok [21:53] same with that guy last night and OVH Bare Metal, he was overriding the ConfigDrive network info as he was setting up a bridge to layer the ethernet on [21:54] this is funny to me, because we just merged a change to apply network changes to on every boot [21:57] anyway, we need a better way to set pointopoint routes in FreeBSD [22:02] * holmanb updates priors about cloud network design