Hifumi: Printer server
Hardware - R2S
Network:
eth0- RTL8211Eeth1- RTL8153
The RTL8153 device needs MAC assignment as it will use random value by default:
/etc/udev/rules.d/10-network-mac-addr.rules
SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth1", PROGRAM="/sbin/ip link set %k address 8a:f4:c8:41:48:35"
Printer setup
Configure and unpause all printers
#!/bin/sh -x
lpstat -le | grep ' permanent ' | cut -f1 -d' ' | while read P; do
lpadmin -p "$P" -o printer-error-policy=retry-current-job
lpadmin -p "$P" -o printer-is-shared=true
lpadmin -p "$P" -E
done
Printer status
lpstat -t
Guest VLAN bridge
This will bride eth0 to GUEST VLAN (10) on eth1.
in /etc/rc.local:
ip link set eth0 addrgenmode none up
ip link add link eth1 name guest type vlan id 10
ip link add br-guest type bridge
ip link set guest master br-guest
ip link set eth0 master br-guest addrgenmode none
ip link set br-guest addrgenmode none up
Prevent DHCP from running on eth0.
In /etc/sv/dhcpcd/conf:
OPTS="-M --denyinterfaces eth0"