PPP oddity with 6.2-RELEASE

Darin derwood at naebunny.net
Thu Jan 18 13:29:07 UTC 2007


This system has been running 5.x for over a year with no problems.
Last weekend, I cvsuped, and did buildworld using RELENG_6_2.
This machine is set up to connect to my isp via PPPOE upon boot.

Now, when it boots, it does the connection fine, and TUN0 is set up.  
But, immediately after that, it starts another PPP process, and tries to 
reconnect using TUN1.
It keeps re-trying until I kill the second pid.  Nothing has changed in 
my config files.
Any ideas???

Darin -

Here is a sample from the /var/log/ppp.log:

=====================================================
Jan 14 23:38:46 bsd ppp[344]: tun0: Phase: Pap Input: SUCCESS ()
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: FSM: Using "deflink" as a transport
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: deflink: State change Initial 
--> Closed
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: deflink: LayerStart.
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: MPPE: Not usable without CHAP81
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: deflink: SendConfigReq(1) state 
= Closed
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP:  DEFLATE[4] win 15
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP:  PRED1[2]
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: deflink: State change Closed 
--> Req-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: Phase: deflink: lcp -> open
Jan 14 23:38:46 bsd ppp[344]: tun0: Phase: bundle: Network
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: FSM: Using "deflink" as a 
transport
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: State change Initial 
--> Closed
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: LayerStart.
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: SendConfigReq(1) 
state = Closed
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 10.0.0.2
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with 
slot compression
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: State change Closed 
--> Req-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: RecvConfigReq(51) 
state = Req-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 67.38.156.1
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: SendConfigAck(51) 
state = Req-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 67.38.156.1
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: State change Req-Sent 
--> Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: CCP: deflink: State change Req-Sent 
--> Stopped
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: RecvConfigRej(1) 
state = Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with 
slot compression
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: SendConfigReq(2) 
state = Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 10.0.0.2
Jan 14 23:38:46 bsd ppp[344]: tun0: Phase: deflink: IPV6CP protocol 
reject closes IPV6CP !
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: RecvConfigNak(2) 
state = Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 67.38.156.22
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] changing address: 
10.0.0.2  --> 67.38.156.22
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: SendConfigReq(3) 
state = Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 67.38.156.22
Jan 14 23:38:46 bsd ppp[344]: tun0: Phase: deflink: IPV6CP protocol 
reject closes IPV6CP !
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: RecvConfigAck(3) 
state = Ack-Sent
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP:  IPADDR[6] 67.38.156.22
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: State change Ack-Sent 
--> Opened
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: deflink: LayerUp.
Jan 14 23:38:46 bsd ppp[344]: tun0: IPCP: myaddr 67.38.156.22 hisaddr = 
67.38.156.1
Jan 14 23:38:49 bsd ppp[344]: tun0: Phase: deflink: IPV6CP protocol 
reject closes IPV6CP !
Jan 14 23:38:52 bsd ppp[344]: tun0: Phase: deflink: IPV6CP protocol 
reject closes IPV6CP !
Jan 14 23:38:53 bsd ppp[766]: Phase: Using interface: tun1
Jan 14 23:38:53 bsd ppp[766]: Phase: deflink: Created in closed state
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: default: ident user-ppp 
VERSION (built COMPILATIONDATE)
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: default: set ifaddr 
10.0.0.2/0 10.0.0.3/0
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: set device 
PPPoE:txp0
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: set authname 
xxxxx at xxxxxxxxx.xxx
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: set authkey ********
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: set dial
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: set login
Jan 14 23:38:53 bsd ppp[766]: tun1: Command: Ameritech: add default HISADDR
Jan 14 23:38:53 bsd ppp[766]: tun1: Warning: Add route failed: 0.0.0.0/0 
already exists
==========================================================

Here is my /etc/ppp/ppp.conf:

==========================================================
default:
 set log Phase Chat IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 set ifaddr 10.0.0.2/0 10.0.0.3/0

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
Ameritech:
 set device PPPoE:txp0:SBC
 set authname xxxxxx at xxxxxxx.xxx
 set authkey ******
 set dial
 set login
 add default HISADDR
 nat enable yes
 nat same_ports yes
 nat addr 192.168.0.5 aa.bb.bb.dd
 nat addr 192.168.0.6 aa.bb.cc.dd
 nat addr 192.168.0.7 aa.bb.cc.dd
 nat port udp 192.168.0.250:4500 4500
 nat port udp 192.168.0.250:500 500
 accept dns
 set dns 192.168.0.6 192.168.0.5
 disable ipv6cp
============================================================


And, here is my /etc/rc.conf:

==========================================================
gateway_enable="YES"
hostname="xxx.xxxxxxxxxxx.xxx"
ifconfig_txp0="inet 10.0.0.3  netmask 255.255.255.0"
ifconfig_txp1="inet 192.168.0.1  netmask 255.255.255.0"
dhcpd_enable="YES"
dhcpd_conf=/usr/local/etc/dhcpd.conf
dhcpd_ifaces="txp1"
defaultrouter="192.168.0.1"
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="Ameritech"
natd_enable="YES"
natd_interface="txp1"
natd_flags="-f /etc/natd.conf"
nfs_client_enable="YES"
sshd_enable="YES"
sendmail_enable="NONE"
firewall_enable="YES"
firewall_script="/etc/ipfw.newset"
firewall_logging="YES"
log_in_vain="YES"
inetd_enable="NO"
kern_securelevel_enable="NO"
==========================================================


More information about the freebsd-stable mailing list