pppoe configuration and dns name resolution
mail at ozzmosis.com
Tue Oct 16 17:02:36 UTC 2012
On Tue 2012-10-16 20:38:47 UTC+0530, Jack (jacks.1785 at gmail.com) wrote:
> I'm new as a FreeBSD user, and trying to configure my
> pppoe connection.
> After reading handbook and searching on various forums,
> I prepared the ppp.conf file, and tried starting the ppp via
> # ppp -ddial adsl
> Here 'adsl' is the profile name, in /etc/ppp/ppp.conf.
> I also tried
> #ppp -auto adsl
> but the error message was same.
I use a similar setup here except I use static IPs for both the ADSL modem
(in bridge mode) and the FreeBSD box connecting to it. The FreeBSD box
then runs a DHCP server (dns/dnsmasq in ports) for any other machines
on my LAN to talk to.
> I'm pasting my related configuration files if they can help.
> Please tell me if any other files are needed.
Nothing really stands out glancing at your configs. I'd be looking for
clues in /var/log/ppp.log.
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
> inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00
> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> Opened by PID 1907
tun0 should have been reassigned a public address here by the remote
PPP host (your ISP). Also the MTU is still stuck at 1500 despite you
correctly configuring 1492 in ppp.conf. So I think the PPP negotiation
is failing. ppp.log may explain why.
Mine looks like this:
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
inet 22.214.171.124 --> 126.96.36.199 netmask 0xffffffff
Opened by PID 45904
Below is my (edited) rc.conf & ppp.conf. I simply start & stop the PPP
session with "service ppp start" & "service ppp stop" as root.
ifconfig_bge0="inet 192.168.1.4 netmask 255.255.255.0"
set log phase chat lcp ipcp ccp tun command lqm
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255
nat enable yes
set echoperiod 30
set device PPPoE:bge0
set authname myusername
set authkey mypassword
set mru 1492
set mtu 1492
set redial 15 0
add default HISADDR
More information about the freebsd-questions