Hi,
This is how I got my Huawei E1762 usb modem going with ppp on FreeBSD 8.2.
My usb modem is normally plugged into my Billion router. However, I need to stay connected when I travel. So I just wanted to take the usb modem with me, and make it work via a usb port on FreeBSD hosts using ppp. [This explains the contents of the ppp.linkup and ppp.linkdown files.]
When you plug in the modem, it identifies itself as:
My starting point was Greg Lehey's post. His ppp.conf didn't work for me but the post was a great help.
Here is my working /etc/ppp/ppp.conf. Use your own authname and authkey, and substitute your ISP's APN for 'internode':
Here is /etc/ppp/ppp.linkdown
Here is /etc/ppp/ppp.linkup
Hope this helps.
Cheers,
--
Phil
This is how I got my Huawei E1762 usb modem going with ppp on FreeBSD 8.2.
My usb modem is normally plugged into my Billion router. However, I need to stay connected when I travel. So I just wanted to take the usb modem with me, and make it work via a usb port on FreeBSD hosts using ppp. [This explains the contents of the ppp.linkup and ppp.linkdown files.]
When you plug in the modem, it identifies itself as:
Code:
$ devinfo -rv | grep u3g
u3g0 pnpinfo vendor=0x12d1 product=0x1003 devclass=0x00 \
devsubclass=0x00 sernum="" release=0x0000 intclass=0xff \
intsubclass=0xff at bus=1 hubaddr=4 port=5 devaddr=2 interface=0
My starting point was Greg Lehey's post. His ppp.conf didn't work for me but the post was a great help.
Here is my working /etc/ppp/ppp.conf. Use your own authname and authkey, and substitute your ISP's APN for 'internode':
Code:
# Run this as root (if you want linkup and linkdown route changes to work)
#
# /usr/sbin/ppp -ddial internerd
#
default:
allow users *
#set log Phase Chat Connect hdlc LCP IPCP IPV6CP CCP tun
internerd:
set device /dev/cuaU0.0
set timeout 0
set authname phil.chadwick
set authkey gn55xzn76
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internode\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
\\dATD*99# TIMEOUT 40 CONNECT"
set crtscts on
disable vjcomp
disable acfcomp
disable deflate
disable deflate24
disable pred1
disable protocomp
disable mppe
disable ipv6cp
disable lqr
disable echo
nat enable yes
#disable dns
resolv writable
#set dns 208.67.220.220 208.67.222.222
set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0
#add default HISADDR
Here is /etc/ppp/ppp.linkdown
Code:
# Warning: executed with uid of ppp invoker
default:
shell logger "LABEL down (up UPTIME): OCTETSIN received, OCTETSOUT sent"
internerd:
shell route delete default
shell route add default billion
Here is /etc/ppp/ppp.linkup
Code:
# Warning: executed with uid of ppp invoker
internerd:
shell route delete default
shell route add default -interface INTERFACE
Hope this helps.
Cheers,
--
Phil