PPP won t reconnect
Franco Vitali
francovitali at gmail.com
Fri Jan 30 04:44:10 PST 2009
I search the web for an answer, but i can´t 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="vnet01.vnet"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="open"
firewall_nat_enable="YES"
firewall_nat_interface="tun0"
firewall_nat_flags="-f /etc/natd.conf"
dummynet_enable="YES"
ifconfig_rl0="inet 192.168.2.9 netmask 255.255.255.0"
keymap="us.iso"
sshd_enable="YES"
........
ddclient_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="bvc"
ppp_user="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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:00:21:6a:0b:4c
media: Ethernet autoselect (10baseT/UTP)
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<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=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu
1500
lo0: flags=8049<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=8051<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=8010<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
--------------------------------------------------------------------
More information about the freebsd-net
mailing list