Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2009 09:16:17 -0300
From:      Franco Vitali <francovitali@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   PPP won t reconnect
Message-ID:  <ed550db30901300416r1c944742i6405b44b8b820c55@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I search the web for an answer, but i can=B4t find it. There are only
unanswered posts, and some of them tell that there is a bug in PPP.

I have a production machine with a RELENG_7 and a connection with the cable
provider via PPP.

The problem is that, when the connection drops, PPP remains like nothing
happens, not even a log (even if i plug the ethernet cable). And, ovbiously=
,
doesn't reconnect. In theory, the daemon must reconnect in "ddial" mode.
What I am missing ?

The configuration files are as folows:
--------------------------------------------------------------------
/etc/rc.conf

hostname=3D"vnet01.vnet"
gateway_enable=3D"YES"
firewall_enable=3D"YES"
firewall_type=3D"open"
firewall_nat_enable=3D"YES"
firewall_nat_interface=3D"tun0"
firewall_nat_flags=3D"-f /etc/natd.conf"
dummynet_enable=3D"YES"

ifconfig_rl0=3D"inet 192.168.2.9 netmask 255.255.255.0"
keymap=3D"us.iso"
sshd_enable=3D"YES"
........
ddclient_enable=3D"YES"

ppp_enable=3D"YES"
ppp_mode=3D"ddial"
ppp_nat=3D"NO"
ppp_profile=3D"bvc"
ppp_user=3D"root"
--------------------------------------------------------------------
/etc/ppp/ppp.conf

default:
 set log Phase Chat LCP IPCP CCP tun command

bvc:
 set device PPPoE:ed0
 set authname "******"
 set authkey "*******"
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set dial
 set login
 enable dns
 add default HISADDR
--------------------------------------------------------------------
/etc/natd.conf

interface tun0
use_sockets yes
same_ports yes
dynamic yes
--------------------------------------------------------------------
ifconfig -a

ed0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:00:21:6a:0b:4c
        media: Ethernet autoselect (10baseT/UTP)
rl0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=3D8<VLAN_MTU>
        ether 00:e0:7d:e1:52:b4
        inet 192.168.2.9 netmask 0xffffff00 broadcast 192.168.2.255
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mt=
u
1500
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=3D8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1478
        inet 190.97.1.31 --> 190.97.1.1 netmask 0xffffff00
        Opened by PID 1174
tun1: flags=3D8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
--------------------------------------------------------------------
netstat -rn

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            190.97.1.1         UGS         1  7591577   tun0
127.0.0.1          127.0.0.1          UH          0      678    lo0
190.97.1.1         190.97.1.31        UGH         1        0   tun0
192.168.2.0/24     link#2             UC          0        0    rl0
--------------------------------------------------------------------



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