PPPoE question
bob at a1poweruser.com
bob at a1poweruser.com
Wed Feb 15 15:28:12 PST 2006
Ian,
This is what works for most people.
Doing nat in pppoe is not normally done.
Doing nat as part of your firewall process is the accepted place.
And I see no reason to have compiled NETGRAPH in your kernel.
PPPoE, ppp.conf statements for DSL connection
#################### start of DSL ppp.conf ###################
default:
set log Phase tun #use to avoid excessive log sizes
set timeout 0 # no idle time out, will not disconnect
dialisp:
set device PPPoE:XXX # replace xxx with your NIC device
name
set authname YOURLOGINNAME # Replace with your ISP account
username
set authkey YOURPASSWORD # Replace with your ISP account
password
add default HISADDR # Add a (sticky) default route
(Mandatory)
enable dns # Gets the ISP's DNS IP address & places
them
# in resolv.conf for reference by FBSD box.
############### End of DSL ppp.conf
#################################
Replace the XXX in the [set device PPPoE:XXX] statement with the
NIC's FBSD interface name. Sometimes it will be necessary to use a
service tag to establish your connection depending on how your ISP
and/or the phone company has its DSL network configured. Service
tags are used to distinguish between different PPPoE servers
attached to a given network. You should have been given any required
service tag information in the documentation provided by your ISP.
If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag
added:
set device PPPoE:xxxx:service_tag
The xxxx is the FBSD interface name used by PPPoE. The interface
must be UP (IE: enabled). It is only used as a transport, and does
not need to be assigned an IP address. This can be done
automatically at boot time by updating the /etc/rc.conf file. The
format of the statement to add is ifconfig_xxxx=up where xxxx is the
NIC's FBSD interface name used by PPPoE that you specified in the
/etc/ppp/ppp.conf file.
ee /etc/rc.conf # add following statements
ifconfig_xxxx=up
ifconfig_tun0="DHCP" # get your ISP assigned IP address
To setup user ppp to dial your ISP automatically at FBSD boot time,
you have to add the following statements to the rc.conf file. The
ddial option means to redial every time the connection to the ISP
gets dropped.
ee /etc/rc.conf
# Activate user ppp auto start at boot time
ppp_enable="YES" # Start User PPP task
ppp_mode="ddial" # ddial, auto, background
ppp_profile="dialisp" # section in ppp.conf to exec
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Ian Barnes
Sent: Wednesday, February 15, 2006 3:26 PM
To: freebsd-questions at freebsd.org
Subject: PPPoE question
Hi,
I am trying to setup my pppoe connection and I keep getting the
following
error:
Gateway ppp[526]: tun0: Error: ipcp_InterfaceUP: unable to set ip
address
My ppp.conf looks something like this:
default:
nat enable yes
nat same_ports yes
nat use_sockets yes
nat unregistered_only yes
dsl1:
set log Phase Chat tun command
set mru 1492
set mtu 1492
set device PPPoE:dc0 # Where xl0 is your NIC code
set authname online321996 at domain.com
set authkey password
set dial
set login
set timeout 120
set ifaddr 10.10.0.1/0 10.10.0.2/0
add default HISADDR
I have the following options compiled into my kernel:
#PPPOE stuff
options NETGRAPH
options NETGRAPH_SOCKET
options NETGRAPH_PPPOE
options NETGRAPH_ETHER
options PPP_DEFLATE
I run ppp: ppp -nat -ddial dsl1. It tries to connect, but I keep
getting
that error.
Any ideas ?
Cheers
Ian
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list