•
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
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
268 192.168.1.1:22
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
tcp
0
udp
0
0 127.0.0.1:34954
udp
0
0 0.0.0.0:53
udp
0
0 0.0.0.0:67
raw
0
0 0.0.0.0:255
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags
unix
3
[ ]
unix
3
[ ]
unix
2
[ ]
We are especially interested in the line
tcp
0
It is saying that a service via tcp is listening on port 9100
Printing
0 0.0.0.0:9100
0 0.0.0.0:80
0 0.0.0.0:53
0 0.0.0.0:22
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
0 192.168.1.1:80
Type
State
STREAM
CONNECTED
STREAM
CONNECTED
DGRAM
0 0.0.0.0:9100
Linksys_E3000
Foreign Address
0.0.0.0:*
0.0.0.0:*
0.0.0.0:*
0.0.0.0:*
192.168.1.118:53385
192.168.1.118:53547
192.168.1.118:53538
192.168.1.118:53545
192.168.1.118:53548
192.168.1.118:53543
192.168.1.118:53540
192.168.1.118:53544
192.168.1.118:53541
192.168.1.118:53542
192.168.1.118:53546
0.0.0.0:*
0.0.0.0:*
0.0.0.0:*
0.0.0.0:*
I-Node Path
1178
1177
1161
0.0.0.0:*
State
LISTEN
LISTEN
LISTEN
LISTEN
ESTABLISHED
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
255
LISTEN
6