From: Ned F. <nfo...@wh...> - 2009-05-22 02:17:33
|
Chuck Randall wrote: > I have a Verdex XL6P connected via ethernet cable to my Linux (Ubuntu) > laptop. The two can talk to each other over the local subnet > 192.168.1.*, but the gumstix cannot access internet IP addresses. It > just hangs when pinging: > > verdex:~$ ping 17.112.152.32 > PING 17.112.152.32 (17.112.152.32): 56 data bytes > < hangs > > > The laptop gets to the internet via wireless with a 10.0.1.1 gateway. > > Q: How can I have the Verdex access the internet through the Linux > laptop? > > I do have a 'gateway' statement in the Verdex /etc/network/interfaces > file: > > # gumstix wired eth0 interface > iface eth0 inet static > address 192.168.1.100 <-- gumstix IP address > netmask 255.255.255.0 > broadcast 192.168.1.255 > gateway 192.168.1.1 <-- Linux laptop IP address > > On the Linux laptop, I have this: > > iface eth0 inet static > address 192.168.1.1 > netmask 255.255.255.0 > broadcast 192.168.1.255 > gateway 192.168.1.1 > Someone will probably give you more specific instructions, but it takes more than what you have configured so far. 192.168 addresses are private addresses, which by convention are never routed through a gateway off the local network where they originate. To do what you want you have to enable (where I'm not sure, since it depends on the version of Linux you are using) Network Address Translation (NAT) between eth0 and ath0. There may be other ways, also. You can search the Internet for info on how to set that up. -- Ned Forrester nfo...@wh... Oceanographic Systems Lab 508-289-2226 Applied Ocean Physics and Engineering Dept. Woods Hole Oceanographic Institution Woods Hole, MA 02543, USA http://www.whoi.edu/ http://www.whoi.edu/sbl/liteSite.do?litesiteid=7212 http://www.whoi.edu/hpb/Site.do?id=1532 http://www.whoi.edu/page.do?pid=10079 |