Hardware Reference
In-Depth Information
#
Tell the beagle to use the host as the gateway
.
ssh root
@
$beagleAddr
"/sbin/route add default gw $hostAddr"
||
true
Then, on your host, run the following commands:
host$
chmod +x setDNS.sh
host$
./setDNS.sh
host$
ssh -X root@192.168.7.2
bone#
ping -c2 google.com
PING google.com (216.58.216.96) 56(84) bytes of data.
64 bytes from ord30s22....net (216.58.216.96): icmp_req=1 ttl=55
time=7.49 ms
64 bytes from ord30s22....net (216.58.216.96): icmp_req=2 ttl=55
time=7.62 ms
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 7.496/7.559/7.623/0.107 ms
This will look up what Domain Name System (DNS) servers your host is using and copy
them to the right place on the Bone. The
ping
command is a quick way to verify your
connection.
Letting the world see your bone: setting up port forwarding
Now your Bone can access the world via the USB port and your host computer, but what
if you have a web server on your Bone that you want to access from the world? The solu-
tion is to use
port forwarding
from your host. Web servers typically listen to port
80
.
First, look up the IP address of your host:
host$
ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:4e:00:22:51
inet addr:
137.112.41.35
Bcast:137.112.41.255
Mask:255.255.255.0
inet6 addr: fe80::2e0:4eff:fe00:2251/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5371019 errors:0 dropped:0 overruns:0 frame:0
TX packets:4720856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1667916614 (1.6 GB) TX bytes:597909671 (597.9 MB)