Date: Wed, 8 Jan 1997 14:53:11 -0700 (MST) From: Softweyr LLC <softweyr@xmission.com> To: patrickk@ispronet.com Cc: questions@freebsd.org Subject: Re: tun0 PPP no go, take a look at this Message-ID: <199701082153.OAA23155@xmission.xmission.com> In-Reply-To: <199701081531.QAA26885@xs1.simplex.nl> from "Patrick Kessen" at Jan 8, 97 04:35:23 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> ---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" No, no, don't try to configure tun0 in sysconfig, ppp will configure it for you! > defaultrouter="199.10.10.1" Your defaultrouter needs to point to the initial address you give to the other end of your PPP link. More on this subject later. > 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 At this point you need to make some guesses about IP addresses so you can run the default route through here. This will enable PPP to demand dial the link. For instance, if your address usually looks like 199.10.11.xxx, and the router you connect to usually looks like 199.10.10.1, try this instead: set ifaddr 199.10.11.8/24 199.10.10.1/24 This will give the address 199.10.11.8 to the tun0 device upon startup, linked to 199.10.10.1, and tells PPP to allow the lower 24 bits to vary during the address negotiation. Feel free to use /32 if you need. This will, however, allow your default route through address 199.10.10.1 to be active, allowing PPP to demand-dial the link whenever a packet is routed off-site and the link is down. > dial Dial? Take out the dial command and try 'ppp -auto simplex'. When it works every time, put it in /etc/rc.local. The forget about it until the next time you upgrade your system. > ---my ppp.linkup > > MYADDR: Put a 'delete 0' here to avoid getting complaints about the route existing each time the link comes up. > add 0 0 HISADDR -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701082153.OAA23155>