I have a very basic question about a routing issue I have right now.
So my central server with the ip 10.0.0.1 of my own network is the router for the ip net 10.0.0.0/25. On the client 10.0.0.100 I have a WiFi connection to an access point which serves the ip net 172.20.10.0/25.
How can I add a route to 10.0.0.1 so all clients in 10.0.0.0./25 can reach 172.20.10.0/25?
What I have tested so far (ipv4 forwarding and iptables masquerading has been taken care of):
Adding the a route on 10.0.0.1 like
route add -net 172.20.10.0 netmask 255.255.255.128 dev br0
makes it possible on 10.0.0.1 to reach the 172.20.10.0/25 network, but thats it. A traceroute from any other client shows that the requests get stuck at 10.0.0.1 and therefore they can not reach the other network until I configure the same route on all of them individually. But this contradicts the idea of 10.0.0.1 being the gateway.
The routing table of 10.0.0.1 after using the above noted command looks like this:
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 <WANIP IS HERE> 0.0.0.0 UG 0 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.128 U 0 0 0 br0 <WANIP IS HERE> 0.0.0.0 255.255.255.252 U 0 0 0 eth0 172.20.10.0 10.0.0.100 255.255.255.128 UG 0 0 0 br0
What am I missing here?
Thank you very much for your time and answers to this probably very silly issue!