Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 1997 15:41:10 -0500
From:      "Steve Sims" <SimsS@IBM.Net>
To:        <patrickk@simplex.nl>
Cc:        "questions" <Questions@FreeBSD.ORG>
Subject:   Re: tun0 PPP no go, take a look at this
Message-ID:  <199701082041.UAA229018@smtp-gw01.ny.us.ibm.net>

next in thread | raw e-mail | index | archive | help
From: "Patrick Kessen" <patrickk@simplex.nl>
> the connection is made, PPP is started but no IP traffic to/from my ISP is
> possible.  take a look and help please

I wonder why you hard-wired the INET address of the tun0 device in
/etc/sysconfig?  In /etc/ppp/ppp.conf the "set ifaddr 0 0' line (or, better
yet, "set ifaddr 1.1.1.1/0 2.2.2.2/0 255.255.255.0") will assign the
appropriate values to the tun0 (and, implicitly, the local-side ppp
interface) when the connection is made.


Same deal with the default route stuff.  Append 'add 0 0' to the 'simplex'
section of ppp.conf and insert an appropriate section in /etc/ppp/ppp.linkup
thus:
simplex:
 delete ALL
 add  0 0 HISADDR


(See the *.sample files in the base distribution for more info.)

...sjs...


> 
> - ---a part of my sysconfig :
> 
> network_interfaces="lo0 tun0 ep0"
> ifconfig_ep0="inet 199.10.10.1  netmask 255.255.255.0"
> 
> ifconfig_lo0="inet 127.0.0.1"
> 
> ifconfig_tun0="inet 194.109.14.188 127.0.0.1 netmask 255.255.255.0"
> 
> defaultrouter="199.10.10.1"
> router="NO"
> 
> - ---my ppp.conf
> 
> default:
>  set device /dev/modem
>  set speed 57600
>  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK 
> \\dATDT\\T TIMEOUT 40 CONNECT"
>  set redial 10 9
> 
> simplex:
>  set phone 0206653388
>  set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
>  deny chap
>  accept pap
>  set authname <my userid>
>  set authkey <my password>
>  set ifaddr 0 0
>  dial
> 
> - ---my ppp.linkup
> 
> MYADDR:
>  add 0 0 HISADDR




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701082041.UAA229018>