My project is a intranet application working as an offline captive portal. This part i have working.
However, I need to add a thermal network printer that does not have USB or Bluetooth. I would like to plug the printer directly into my Raspberry Pi 3's eth0 socket, receive a static IP so that my application can send jobs to the printer.
I do NOT need anyone connected to the hotspot to use the printer, just a direct connection from the Pi to the printer so that the application can print receipts.
Is this possible?
It would be awesome if the printer could get the same IP everytime :)
My attempt at a configuration...
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface wlan0 inet manual
auto br0
iface br0 inet static
bridge_ports eth0 wlan0
address 192.168.2.1
netmask 255.255.255.0
/etc/dnsmasq.conf
bogus-priv
server=/localnet/192.168.2.1
local=/localnet/
address=/#/192.168.2.1
interface=br0
domain=localnet
dhcp-range=192.168.2.10,192.168.2.254,1h
dhcp-option=3,192.168.2.1
dhcp-option=6,192.168.2.1
dhcp-authoritative
thanks and much appreciated