PPPoE config FreeBSD. Komeye ehtiyacim var

14 views
Skip to first unread message

Babek Ismayilov

unread,
Oct 20, 2007, 1:52:24 AM10/20/07
to linux-az...@googlegroups.com
pppoe-ni bele qururam alinmir. Sizde baxin configlere:


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"


ppp.conf

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by ws...@cdrom.com
#
# 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


GENERIC-e de bunlari elave etdim:

# Enables PPPoE
  options NETGRAPH
options NETGRAPH_SOCKET
options NETGRAPH_PPPOE

dial elyende bele olur:


web# ppp
Working in interactive mode
Using interface: tun1
ppp ON web> ddial primus
Warning: ddial: Invalid command
Warning: ddial: Failed 1
ppp ON web> ddial
Warning: ddial: Invalid command
Warning: ddial: Failed 1
ppp ON web> dial
Warning: deflink: /dev/cuad1: Bad file descriptor
ppp ON web> dial primus
ppp ON web> login
Warning: login: Invalid command
Warning: login: Failed 1
ppp ON web>
ppp ON web>



Sizce, ne etmeliyem yene. Demey olar ki 2 heftedi ki, men bu pppoe uzerinde elleshirem.





--
Your sincerely,
Babek Ismayilov
Information Technology Specialist

Contacts:
Mobile: (+994 55) 7574768

Metin Amiroff

unread,
Oct 24, 2007, 7:26:15 AM10/24/07
to linux-az...@googlegroups.com
Babek,

Belke eyni avadanlığa PCBsd quraşdırıb nümune olaraq yaranan quraşdırma fayllarına baxasan?
Reply all
Reply to author
Forward
0 new messages