So I am trying to turn an Ubuntu machine into a wireless/ethernet router. I have three NICs installed on the machine:
- eth0: Connected to modem
- eth1: Connected to a switch
- wlan0: Setup in AP (aka hotspot or master) mode
The idea is that any other computer can connect to the wireless hotspot or the switch and share the internet connection coming from eth0. I have added all the necessary connections using the Network Manager applet and currently it kind of works. The problem is that eth1 and wlan0 are on different subnets:
- eth1: 10.42.0.x
- wlan0: 10.42.1.x
Therefore a computer connected to eth1 via the switch cannot talk to a computer connected to wlan0 via the hotspot. So while all computers can access the internet, it still doesn't quite behave like a regular router.
How do I get both interfaces on the same subnet or somehow allow communication in between the subnets? I've tried creating a bridge connection using Network Manager but it wouldn't let me activate it.
I would prefer any solutions to use Network Manager rather than the old ifup ifdown interface.