Setup for forwarding ARP request between subnets

Hello, this is my first time posting here. I’ve been testing LXD for a couple months now, and the experience is great.

Still, I need to achieve something, which I’m not sure can be completed with LXD (or in general with the infra at my disposal). I want to link the network (10.0.2.0/24) to my lan network (10.0.0.0/24), where I have a host media2 at 10.0.2.5 (I’ll eventually put this on a mgmt subnet, but I want to manage the routing first before moving to the next step). That hosts runs a single-node k8s cluster where it’s services would be deployed on 10.0.2.0/24 subnet.

My general network architecture looks like this:

[Home Modem/Router (10.0.0.1)]
-> [Wireless Bridged Router (10.0.0.50)]
--> [Switch]
---> [LXD Host (10.0.0.223)]
----> [Media2 (10.0.2.5)]

My routing table looks like this:

root@potaaato-01:~# ip r
default via 10.0.0.1 dev enp2s0f0 proto static
10.0.0.0/24 dev enp2s0f0 proto kernel scope link src 10.0.0.223
10.0.1.0/24 dev lxcbr0 proto kernel scope link src 10.0.1.1 linkdown
10.0.2.0/24 via 10.0.2.1 dev sub-1 scope link
10.115.247.0/24 dev lxdbr0 proto kernel scope link src 10.115.247.1

I’m able to reach media2 from LXD host, and I’m receiving ARP request inside my LXD host, but it never replies. I don’t understand since a route to 10.0.2.5 exists, so ARP requests should flow through? Probably I’m not grasping routing enough and the configuration is wrong. Anyhow, any help would be greatly appreciated.

Thank you.

ARP is only for the same broadcast domain (subnet).
So if you are wanting traffic from 10.0.0.0/24 to reach 10.0.2.0/24 (and vice versa) then you need a static route configured in your home modem/router which will forward traffic for 10.0.2.0/24 to the LXD host 10.0.0.223.

Sorry for the delay, but thanks for the response!

1 Like