On Sunday 20 June 2004 18:13, Jorge Manuel B. S. Vicetto wrote:
Hi Henry.
Quoting Henry Harpending
: We recently converted our home to wireless, orphaning 2 hp-jetdirect printers. I would like to make them accessible by wiring them to one of our computers. Here is what I did:
Our wireless network has addresses 192.168.. with the server being 192.168.0.2. I ran a cable to one printer from our server from the internet card, assigning it the ip number 10.0.0.1/24 and naming 10.0.0.1 as gateway. I attached the jetdirect to this card as 10.0.0.5 and everything works fine from the server. But how do I access this 10.0.. net from another computer?
I tried telling another machine that it could reach 10.0.. via the gateway 192.168.0.2 and no luck. It can ping 10.0.0.1, the card, but it can't ping the 10.0.0.5 printer. I tried adding a route to 10.0.0.5/32 gateway 10.0.0.1 to the other computer's routing table, but no go.
Is your routing table ok ?
netstat -nr or ip route
I have the same failure to reach 10.0.0.5 whether or not IP forwarding is turned on at the server 192.168.0.2.
Are you setting the ip forwarding by
cat 1 > /proc/sys/net/ipv4/ip_forward
?
If this doesn't help, try using traceroute to find what's going on.
Here are the results of what you suggest, from the server 192.168.0.2:; #cat /proc/sys/net/ipv4/ip_forward 1 #netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.0.0 10.0.0.1 255.255.255.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0 #traceroute 10.0.0.5 traceroute to 10.0.0.5 (10.0.0.5), 30 hops max, 40 byte packets 1 10.0.0.5 1.748 ms 1.779 ms 1.777 ms I can't see anything wrong here but I really don't know what I am doing. BTW does anyone know what 169.254.0.0 is? Thanks, Henry Harpending