I have a Linux machine with eth0 for my router-modem and I want to add a second interface eth1 to connect to my Apple LaserWriter printer.

Everything is on 192.168.1.x:

  • My address IP is
  • My router (default gw) IP is
  • My printer IP is

What should I do to route traffic to the printer. Is adding a static route all there is to it?

Would this work?

route add -host netmask dev eth1

What about determining the correct netmask if the above one is wrong?


I'd put the printer on a separate subnet then this will happen automatically. For example, make the printer and your machine's eth1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.