A while back I created a thread (http://forums.dlink.com/index.php?topic=14904.msg87126) on this forum about connecting to the web from my DNS 323, e.g. typing in commands like 'ping google.com', 'wget google.com' when connected to the DNS 323 through telnet. Since then a few things changed so I decided to ask this question again.
I'm connected from my laptop (it's a Linux laptop) to my DNS 323 directly with an ethernet crossover cable. My laptop is connected to the internet from wireless. Doing 'ifconfig -a' on my laptop shows the following:
eth0 Link encap:Ethernet HWaddr 00:....
inet addr:192.168.0.39 Bcast:192.168.0.255 Mask:255.255.255.0
And doing 'route' on my laptop shows the following:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 wlan0
192.168.0.0 * 255.255.255.0 U 1 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
In the LAN Settings of the DNS 323 web interface, I've set it to the following:
Static IP: 192.168.0.32
Subnet mask: 255.255.255.0
Gateway: ?
DNS1: ?
DNS2: ?
I tried setting Gateway and DNS1 to 192.168.0.39 (the IP address of my laptop), but doing a 'ping google.com' from DNS 323 telnet or a 'ping 209.85.143.104' doesn't succeed. The former gives a 'ping: bad address 'google.com'' error.
I tried setting Gateway and DNS1 to be empty, but doing a 'ping google.com' from DNS 323 telnet or a 'ping 209.85.143.104' still doesn't succeed. This time the latter gives a 'ping: sendto: Network is unreachable'.
Based on the output from the 'route' command above, if I had to guess I'd say the DNS 323 needs to be able to access 192.168.1.1, which is the gateway. However, it's on a different subnet so it's not possible unless I change other stuff. Is that correct? If so, what do I need to change?
Could anyone please advise on what I need to do to be able to connect to the internet from my DNS 323 while it is connected to my laptop? Thanks.