[Raspbian-devel] Testing AT&T, so routing setup

ken gebser at mousecar.com
Thu May 5 19:05:48 UTC 2016


Test context:

Having problems with my internet connection, technicians came out, said 
they fixed the problem, and left.  The connection was a bit better 
(fewer lost ping packets), but nowhere close to where it should be.  
They say they see no other problem with their equipment, the problem is 
probably with my equipment.  Repeat that exact same story two more times 
in the following week.

Here's what mtr shows me:

HOST: yes.mynet.net             Loss%   Snt   Last   Avg Best  Wrst StDev
   1.|-- 192.168.0.1              0.0%   100    0.4   0.8 0.3  20.1   2.4
   2.|-- 77.219.160.1            53.0%   100   71.3 100.7 9.1 321.5  90.4

So what I'm thinking is to take an RPi and my DSL modem and plug it in 
directly to the box outside (on the customer side, of course) and test 
it from there.  If I get the same results from there, I've eliminated 
everything on my side as the source of the problem except the DSL modem 
and the RPi.  Since, however, I get the same results on four other nodes 
inside the house as I get from the Pi, the problem is likely not the Pi's.


Setting up for testing:

Working on the Pi just from the bash prompt as root, how do I set the 
routing table (etc.) to connect directly to the DSL modem?  The routing 
table on my router currently shows:

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
77.219.160.1    0.0.0.0         255.255.255.255 UH 0      0        0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U 0      0        0 br0
169.254.0.0     0.0.0.0         255.255.0.0     U 0      0        0 br0
127.0.0.0       0.0.0.0         255.0.0.0       U 0      0        0 lo
0.0.0.0         77.219.160.1    0.0.0.0         UG 0      0        0 ppp0

Here's the Pi's current routing table:

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    0 0        0 eth0
10.10.0.0       0.0.0.0         255.255.255.0   U     0 0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     0 0        0 eth0

To plug the Pi directly into the modem, I think I'm going to need to run 
ppp and then run some commands to temporarily set the IP address of the 
ethernet port (eth0) and the routing table.  I much prefer to do all 
this without changing config files so that when I reboot the Pi, the 
settings go back to their original.  What do I need to 'apt-get' for the 
ppp executables?  And... I'm more accustomed to using the 'route' 
command to manually set up a routing table, but have used 'ip' commands 
too, if that's more familiar to you.

Thanks.




More information about the Raspbian-devel mailing list