On Sat, 20 Oct 2007 10:00:27 +0500 Babek Ismayilov wrote:
i need to configure PPPoE in FreeBSD 6.2.
I tested but it didn't work out. I'm want to show you the result of the
command:
web# ppp
Working in interactive mode
Using interface: tun0
ppp ON web dial Internet
ppp ON web ping box.az
Warning: ping: Invalid command
Warning: ping: Failed 1
ppp ON web
ppp ON web pppd
Warning: pppd: Invalid command
Warning: pppd: Failed 1
ppp ON web quit
web# pppd
There is a very good diagnostic file /var/log/ppp.log . You may
populate it by the needed info. (Hint: man ppp)
Here is rc.conf
rc.conf
# -- sysinstall generated deltas -- # Fri Oct 19 16:25:38 2007
# Created: Fri Oct 19 16:25:38 2007
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
#defaultrouter=172.16.200.1
hostname=web.pronet
ifconfig_rl0=inet 172.16.200.201 netmask 255.255.255.0
inetd_enable=YES
linux_enable=YES
sshd_enable=YES
usbd_enable=YES
ppp_interface=rl1
ppp_enable=YES
ppp_mode=ddial
ppp_nat=NO
ppp_profile=primus
network_interfaces=rl1 lo0
ifconfig_rl1=inet 10.0.0.1 netmask 255.255.255.0
Where did you get info for rl0, rl1 interface?
Why did you disable rl0 interface with network_interfaces=?
(Hint: there is no need for _PPPoE_ in any those ip-addresses)
ppp.conf
Is it a copy-n-paste problem that you don't have a space before
commands? I.e.:
-
default:
set log Phase Chat LCP IPCP CCP tun command
-
#
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $
#
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that device references the correct serial port
# for your modem. (cuad0 = COM1, cuad1 = COM2)
#
set device PPPoE:rl1
set speed 115200
set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
primus:
set authname pronet
set authkey 3060683
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
added there lines to GENERIC:
The needed modules should have been loaded automagically.
# Enables PPPoE
options NETGRAPH
options NETGRAPH_SOCKET
options NETGRAPH_PPPOE
But still didnt work out.
Please give some advice.
Please take a look at /usr/share/examples/ppp.conf.sample. There is a
good example. Just two labels and a some ten commands. Insert your
values and get your PPPoE.
HTH and WBR
--
bsam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]