Route or bridge between two networks
by Mike Davies from LinuxQuestions.org on (#5BZ73)
I'm not quite sure of the question I should be asking. It may be a routing or a bridge problem.
I have a network that hangs off my internet router with addresses in the 192.168.1.0/24. The router handles the DHCP stuff and allocates numbers to computers on this network.
One of these computers operates a WiFi hotspot and allocates numbers in the 10.1.230.0/24 range to stuff on the WiFi.
If a tablet or something connects to the WiFi, then it gets a 10.1.239.0/24 number and then goes out over the 192.168.1.0/24 network to the internet and back because I have 'net.ipv4.ip_forward=1' set in the hotspot. At least, I think that is why it works.
Anyway, it works. So far so good.
Now I am starting get IoT gadgets connecting to the WiFi and as some of these have embedded web-server pages, I'd like to be able to sit at my desktop computer on the 192.168.1.0/24 network, and have a look at these pages even though they are on the 10.1.239.0/24 network. I am not sure how to achieve this.
Do I need to set up a route, or is it a bridge, or even something else I need ? I've never dealt with bridges before but from what I have read it involves loosing the I/P address at some stage during setup, and as the hotspot has neither a keyboard or screen, I'm a little wary of just seeing what happens if I try things out.
Some guidance is needed here.
Thanks.


I have a network that hangs off my internet router with addresses in the 192.168.1.0/24. The router handles the DHCP stuff and allocates numbers to computers on this network.
One of these computers operates a WiFi hotspot and allocates numbers in the 10.1.230.0/24 range to stuff on the WiFi.
If a tablet or something connects to the WiFi, then it gets a 10.1.239.0/24 number and then goes out over the 192.168.1.0/24 network to the internet and back because I have 'net.ipv4.ip_forward=1' set in the hotspot. At least, I think that is why it works.
Anyway, it works. So far so good.
Now I am starting get IoT gadgets connecting to the WiFi and as some of these have embedded web-server pages, I'd like to be able to sit at my desktop computer on the 192.168.1.0/24 network, and have a look at these pages even though they are on the 10.1.239.0/24 network. I am not sure how to achieve this.
Do I need to set up a route, or is it a bridge, or even something else I need ? I've never dealt with bridges before but from what I have read it involves loosing the I/P address at some stage during setup, and as the hotspot has neither a keyboard or screen, I'm a little wary of just seeing what happens if I try things out.
Some guidance is needed here.
Thanks.