ppp is broken???
Bob
bob at a1poweruser.com
Mon May 7 14:25:22 UTC 2007
The method you are using is obsolete.
The following is all you need.
Take special note of rc.conf statements to use.
#################### 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
-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Nagy László Zsolt
Sent: Monday, May 07, 2007 8:53 AM
To: bob at a1poweruser.com; freebsd-questions at freebsd.org
Subject: Re: ppp is broken???
Bob wrote:
> Add these statements to the end of your ppp.conf file.
>
>
>
> disable iface-alias # Stop adding old IP address as alias when ppp
> # redials because line was lost. These old IPs
> # showed using ifconfig -a on tun0.
>
> # Remove all previous IP address
>
I'll try this.
> Post contents of your ppp.conf and rc.conf files for review for why you
> keep losing your connection.
>
ppp.conf:
papchap:
# set log Phase Chat LCP IPCP CCP tun command
set log phase tun command
set device PPPoE:rl0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set dial
set login
enable lqr
add default HISADDR
# enable dns # I use my own DNS server (named)
enable tcpmssfixup
# non-default below (hack for pptpd)
set authname ntony at flat.enternet.hu
set authkey i_am_not_telling_this
nat enable yes
nat port tcp 172.16.0.48:3389 51234
rc.conf:
allscreens="80x30"
font8x14="iso02-8x14"
font8x16="iso02-8x16"
font8x8="iso02-8x8"
keymap="hu.iso2.102keys"
keyrate="fast"
scrnmap="iso-8859-1_to_cp437"
gateway_enable="YES"
hostname="not_telling.dyndns.org"
ifconfig_vr0="inet 172.16.0.1 netmask 255.255.240.0"
firewall_enable="YES"
firewall_type="OPEN"
firewall_logging="YES"
# ADSL
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
named_enable="YES"
kern_securelevel=2
kern_securelevel_enable="NO"
saver="logo"
sshd_enable="YES"
usbd_enable="NO"
moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
apache2_enable="YES"
apache2ssl_enable="YES"
squid_enable="NO"
mysql_enable="NO"
postgresql_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_reserved_port_only="YES"
mountd_flags="-r"
inetd_enable="YES"
dovecot_enable="YES"
gdm_enable="YES"
dhcpd_enable="YES"
dhcpd_ifaces="vr0"
tomcat50_enable="YES"
samba_enable="YES"
slapd_enable="YES"
slapd_flags=' -h "ldap://127.0.0.1/ ldaps://0.0.0.0/"'
#postfix_enable="YES"
_______________________________________________
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