LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2019, 09:26 PM   #1
Numbnuts
LQ Newbie
 
Registered: Oct 2017
Distribution: MXLinux, Raspian, Kali, Win-dohs, BusyBox, OpenWrt, DD-Wrt
Posts: 13

Rep: Reputation: Disabled
Unable to network to Printer


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
Attached Thumbnails
Click image for larger version

Name:	Setup.png
Views:	19
Size:	250.6 KB
ID:	29468  
 
Old 01-15-2019, 06:36 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
  1. 192.168.1.1 Router
  2. 192.168.1.10 Laptop 1
  3. 192.168.1.11 Laptop 2
  4. 192.168.1.12 Laptop 3
  5. 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.
 
Old 01-15-2019, 09:11 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.

Last edited by frankbell; 01-15-2019 at 09:14 PM.
 
Old 01-16-2019, 07:33 PM   #4
Numbnuts
LQ Newbie
 
Registered: Oct 2017
Distribution: MXLinux, Raspian, Kali, Win-dohs, BusyBox, OpenWrt, DD-Wrt
Posts: 13

Original Poster
Rep: Reputation: Disabled
frankbell
PHP Code:
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 betterswitch.  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 printerVary the last figure in the IPV4 addressSet them upe.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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS Network Printer/ server indicator blinks no printer output wine Linux - Networking 8 03-18-2006 10:20 PM
"Unable to create printer" from KDE Wizard when setting up SMB printer Happy2Bme SUSE / openSUSE 1 01-18-2005 07:30 AM
Xante Printer Network Printer, Slack 9.1 Conpen2000 Linux - Hardware 0 01-12-2004 10:08 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration