Connect your printer to the router•
Reboot the router via Administration, Reboot Router•
Via an ssh client (for example putty under Windows) connect via SSH on port 22 to the router:
login as: root•
password: <your password that you use to login to the web interface>•
check if your printer was recognized:•
root@my-ddwrt-router:~# dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb 2-1: new full speed USB device using ohci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x047E pid 0x1001
usbcore: registered new interface driver usblp
This indicates that a printer is detected on the USB port
Now enter•
root@my-ddwrt-router:~# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:9100 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 268 192.168.1.1:22 192.168.1.118:53385 ESTABLISHED
tcp 0 0 192.168.1.1:80 192.168.1.118:53547 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53538 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53545 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53548 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53543 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53540 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53544 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53541 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53542 TIME_WAIT
tcp 0 0 192.168.1.1:80 192.168.1.118:53546 TIME_WAIT
udp 0 0 127.0.0.1:34954 0.0.0.0:*
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
raw 0 0 0.0.0.0:255 0.0.0.0:* 255
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 3 [ ] STREAM CONNECTED 1178
unix 3 [ ] STREAM CONNECTED 1177
unix 2 [ ] DGRAM 1161
We are especially interested in the line
tcp 0 0 0.0.0.0:9100 0.0.0.0:* LISTEN
It is saying that a service via tcp is listening on port 9100
Linksys_E3000
Printing 6