Silver
Usb tethering? January 14, 2011 10:51AM |
Re: Usb tethering? January 14, 2011 04:48PM |
Registered: 13 years ago Posts: 261 |
apt-get install ppp echo <<HERE > /etc/ppp/peers/sprint noauth connect "/usr/sbin/chat -v -f /etc/chatscripts/sprint" defaultroute usepeerdns /dev/ttyACM0 230400 local novj HERE echo <<HERE > /etc/chatscripts/sprint TIMEOUT 5 ABORT '\nBUSY\r' ABORT '\nERROR\r' ABORT '\nNO ANSWER\r' ABORT '\nNO CARRIER\r' ABORT '\nNO DIALTONE\r' ABORT '\nRINGING\r\n\r\nRINGING\r' '' \rAT TIMEOUT 12 OK ATD#777 TIMEOUT 22 CONNECT "" HERETo connect:
pon sprintTo disconnect:
poff sprintYou may also have to do the following depending on your network setup. Bear in mind that removing the default route may drop your ssh connection to your dockstar unless there is a specific route.
# after connection... route del -net default eth0 route add -net default ppp0
# before disconnection... route del -net default eth0 route add -net default ppp0-PG
Silver
Re: Usb tethering? January 16, 2011 07:30AM |
Re: Usb tethering? January 16, 2011 08:12AM |
Registered: 13 years ago Posts: 261 |
Silver
Re: Usb tethering? January 16, 2011 10:29AM |
root@debian:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
root@debian:~# pon sprint root@debian:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.23.6.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
root@debian:~# route del -net default eth0 root@debian:~# route add -net default ppp0 root@debian:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.23.6.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
Re: Usb tethering? January 16, 2011 10:37AM |
Registered: 13 years ago Posts: 261 |
Silver
Re: Usb tethering? January 16, 2011 11:04AM |
root@debian:~# cat /etc/resolv.conf nameserver 170.206.225.21 nameserver 170.206.225.22 root@debian:~# ping news.bbc.co.uk ^C root@debian:~# ping 212.58.244.60 PING 212.58.244.60 (212.58.244.60) 56(84) bytes of data. ^C --- 212.58.244.60 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5005ms
Re: Usb tethering? January 16, 2011 11:19AM |
Registered: 13 years ago Posts: 261 |
crtscts # hardware flow control lock # lock the serial port noauth # don't expect the modem to authenticate itself local # don't use Carrier Detect or Data Terminal Ready persist # Redial if connection lost holdoff 5 # Reconnect after 5s on connection loss lcp-echo-failure 4 # prevent timeouts lcp-echo-interval 65535 # prevent timeoutsIt also shows how to create connect/disconnect chatscripts and fixup the routes automatically on connect/disconnect - but don't worry about this until you get your connection reliable.