Datasheet
ZEUS Embedded Linux Development Kit Quickstart AEL Embedded Linux
© 2007 Eurotech Ltd Issue C 26
Using PPP with ethernet
If you booted the ZEUS with other interfaces active (for example eth0), you will need to
use the route command to set up a static route to the IP you want to ping via the ppp0
interface (e.g. the Eurotech website IP address shown above). If no other interfaces
were up at boot time, then ppp0 will be established as the default interface
automatically and you will be able to ping any IP address without modifying the routing
tables.
In the event of other network interfaces being present, enter the following command at
your terminal emulator to force all connections to IP address 194.200.159.163 to be
established via ppp0:
# route add -net 194.200.159.163 netmask 255.255.255.255 gw 192.168.202.1
ppp0
where:
• 194.200.159.163 is the IP address you want to ping, and
• 192.168.202.1 is the P-t-P IP address of the modem, which can be obtained from
the output of ifconfig:
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:660 (660.0 B) TX bytes:660 (660.0 B)
ppp0 Link encap:Point-Point Protocol
inet addr:10.225.150.216 P-t-P:192.168.202.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2830 (2.7 KiB) TX bytes:4328 (4.2 KiB)
You can check that the route has been added to the kernel's routing table by calling
route with no arguments:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
194.200.159.163 192.168.202.1 255.255.255.255 UGH 0 0 0 ppp0
Note that it will take a while before the final routing table is displayed while route
checks that all routes are valid.