I want to have the printer in a room away from the main DSL modem/ wifi-router. The main Telekom router has an IP of 192.168.2.1. I was able to connect the OpenWrt router to it through SSID, secret;
have followed the instructions here; https://openwrt.org/docs/guide-user/network/routedclient
but they are above my understanding.
I would appreciate it if a kind soul shows me what shall I put in my network and firewall configuration files.
Please note that I'm connected to the router through a serial connection. No fancy luci interface, but uci is available, and I can do vi.
many thanks!
If you are using Linux/BSD/Mac OS, you likely have CUPS (Common Unix Printing System). Web search setting up Network printing in CUPS.
Depending on the make and model of the printer, you will need to set up a print filter. If you need additional help, please provide the Operating System and make/model of your printer.
thank you for your response. Setting up CUPS or similar is the route I don't want to go.
When the printer is connected (through Ethernet) to the main DSL modem/router, it is easily visible by other computers on the LAN.
Basically, I want to make the printer visible (through the OpenWrt router) to other computers, rather than through a cable to the main DSL modem/router.
I don't understand your response. Do you want the printer to advertise (avahi) it's availability to wireless devices? If that is the case, you will have to program the printer wireless with your routers psk or use the printers ad-hoc guest network with no encryption.
It has network capability. So, simply connect it via ethernet to your network. Your LAN clients can be wifi, or ethernet, it doesn't matter, it's all just packets to the printer.
Connecting it to the network through a secondary OpenWrt router is exactly what I'm trying to do and don't know how. Connecting it to the main home modem/router through a cable is not an option.
change this to 'lan' ... not 'wan' and set your lan interface to dhcp in /etc/config/network... and probably disable dhcp / odhcpd. ( i personally use a free static ip on the LAN network... but if you have serial... while your testing dhcp might be better and many prefer it for dump-ap style setups )
so you are essentially creating a "wireless-bridge"... or a "dumb-ap in sta mode"... never done it like that with sta tho' so i'm not 1000% sure it will pass dhcp up to the router in sta mode.
In the routed client example you linked a subnet was setup
Telcom DSL 192.168.1.1 <-- subnet --> OpenWrt router 192.168.2.0/24
The OpenWrt router is on a different network from TelcomDSL
An ethernet printer will get assigned an IP address, via dhcp, of 192.168.2.x. x is a number 1 - 254.
On the other hand, if you set the OpenWrt routers as a true bridge
Telcom DSL 192.168.1.1 <--bridge--> OpenWrt router 192.168.1.x. is a number that is not used by the Telcom DSL router. The Telcom DSL and OpenWrt router are on the same network
Is the issue that you aren't able to browse for the printer? What happens if you manually set up the printer and try to print? Browsing requires multicast/broadcast which probably doesn't work across the "bridge" unless you're using WDS or a WiFi mesh for the bridge. (relayd probably won't work)