Bluetooth DUN tun0 IP setting
Gary Dunn
knowtree at aloha.com
Wed Feb 23 11:27:40 UTC 2011
On Sat, 2011-02-19 at 22:42 +0100, Maciej Milewski wrote:
> Dnia sobota, 19 lutego 2011 o 16:26:14 Gary Dunn napisał(a):
> > Previously sent to freebsd-questions and received no response. Hopefully
> > someone here has solved this.
> >
> > Freebsd 8.0-RELEASE-p2.
> > Fujitsu Lifebook T1010.
> > T-Mobile myTouch 3G slide.
> > Android 2.1.
> > PDA Net tether app.
> >
> > I get to where I can run rfcomm -a ... and PDA Net on phone responds
> > that it is running, shows byte count, but a few seconds my console
> > displays error.
> >
> > tun0: Error: ipcp_InterfaceUp: unable to set ip address.
> I had such error when there was a mistake(one letter missing) in my ppp.conf.
> If you search the net you'll see similar errors. Check your ppp.conf or
> provide it here to look into it. One more pair of eyes can see that error
> eventually :)
Here is my ppp.conf. My googling returns two trends, 1) info about
rfcomm ON Android, 2) a lot of people having problems with PDA Net in
DUN mode. The developers appear to be focused on the Windows and Mac USB
tether configuration, which requires a custom app on the PC.
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself at cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.11.2.1.2.1 2009/10/25 01:10:29
kensmith Exp $
#################################################################
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
#
set device /dev/cuau1
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
rfcomm-dialup:
# This is IMPORTANT option
enable force-scripts
# You might want to change these
set authname
set authkey
#set phone "*99***1#"
set phone "123"
# You might want to adjust dial string as well
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40
CONNECT"
set login
set timeout 30
enable dns
resolv rewrite
set ifaddr 10.10.0.1/0 10.10.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
--
Gary Dunn, Honolulu
Open Slate Project
http://openslate.org
http://www.facebook.com/garydunn808
http://e9erust.blogspot.com
Twitter @garydunn808
Sent from Slate001
More information about the freebsd-mobile
mailing list