Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
See Attached Picture.
It explains pretty much everything.
List of Routers and their OS
Router 1 - Openwrt
Router 2 - Openwrt
Router 3 - OpenWrt
Router 4 - DD-Wrt
- The reason I have each IPv4 LAN (br-lan) set up as 192.168.x.1 is so that I can SSH from Laptop 1 to Router 4, for example.
LAN interface protocols on Routers 1, 2, and 3 are all static addresses with an I_v4 netmask of 255.255.255.0.
IPv4 gateway and IPv4 broadcast are blank
As to what you're doing wrong, I think you're subnetting the laptops, requiring routes to each laptop. Are you trying to keep the laptops away from each other?
Why not put them all on the same subnet as router, and printer? Vary the last figure in the IPV4 address. Set them up, e.g.
192.168.1.1 Router
192.168.1.10 Laptop 1
192.168.1.11 Laptop 2
192.168.1.12 Laptop 3
192.168.1.5 Printer
So they're all on the 192.168.1.0/24 route set up by dhcpcd or suchlike. Also, make sure the default comes last. Presuming the table is read from the top, the system might pass EVERYTHING else to the default, ignoring lines in the routing table below it. Cisco routers are capable of it, I am told.
I second what business_kid said. By putting each device on a separate router, you are effectively giving each device its own subnet. I think you would be better off replacing all those routers with a hub or, even better, a switch. That way they could see and communicate with each other easily.
I commend this tutorial to your attention. Don't be fooled by the HTML v. 3 look. It is the best thing on subnetting I've yet seen.
I second what business_kid said. By putting each device on a separate router, you are effectively giving each device its own subnet. I think you would be better off replacing all those routers with a hub or, even better, a switch. That way they could see and communicate with each other easily
>you would be better off replacing all those routers with a hub or, even better, a switch.
Wouldn't that negate the necessity of a wireless bridge then? I can't be laying new CAT5 all over the place.
business_kid
PHP Code:
Why not put them all on the same subnet as router, and printer? Vary the last figure in the IPV4 address. Set them up, e.g. 192.168.1.1 Router 192.168.1.10 Laptop 1 192.168.1.11 Laptop 2 192.168.1.12 Laptop 3 192.168.1.5 Printer
I tried that already - thanks though.
I have someone else saying that I should:
PHP Code:
1.) Convert router 3 WAN interfaces to static IP and disable NAT 2.) Convert router 4 WAN interfaces to static IP and disable NAT 3.) Add static route on router 1 to 192.168.0.0/24 via router 3's WAN IP 4.) Add static route on router 4 to 192.168.4.0/24 via router 3's WAN IP. 5.) Add static route on router 3 to 192.168.4.0/24 via router 4's WAN IP.
I'm going to try that a bit later and see what happens.
If there is anyone else with a solution, please put it forward.
Much appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.