FreeBSD 6.2 Настройка подключения PPPoE

Проблемы установки, настройки и работы Правильной Операционной Системы

Модератор: terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
VVK2007
проходил мимо
Сообщения: 1
Зарегистрирован: 2007-06-11 16:00:51

FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение VVK2007 » 2007-06-11 16:26:57

Помогите пожайлуста настроить файл ppp.conf для подключения к интернету через АДСЛ.
При подключении интерфейс tun0 не получает IP адрес провайдера. Не могу разобраться почему. Для подключения использую стандартный конф для PPPoE.

ppp.conf

default
set log Phase tun command
set speed sync
set mru 1500
set mtu 1500
set ctsrts off
adsl:
set device PPPoE:re0
set authname ******
set authkey *****
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
add default HISADDR

Заупскаю командой
ppp -ddial adsl
Получаю:
Warking in ddial mode
Using interface : tun0

ifconfig

tun0: --------
Opened by PID 809

А запись типа inet Local_ADR --> PEER_ADR отсутствует

Попробовал конфигурацию вот такую:

ppp.conf

default
set log Phase tun command
set speed sync
set mru 1500
set mtu 1500
set ctsrts off
adsl:
set device PPPoE:re0
set authname ******
set authkey *****
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2-10.0.0.254
add default HISADDR

Заупскаю командой
ppp -ddial adsl
Получаю:
Warking in ddial mode
Using interface : tun0

ifconfig

tun0: --------
inet 10.0.0.1 --> 10.0.0.92
Opened by PID 809

Ни в первом ни во втором случает внешние адреса интернета не пингуются все интерфесы внутри локальной сети и внутри компа пинугются.

Мой комп:
2 сетевых карты:
1) 192.168.1.3 - Смотрит на АДСЛ модем. АДСЛ модем марки Длинк DSL-500T
2) 192.168.0.226 - Смотрит в локальную сеть

Подскажите что может быть не так в настройках ppp.conf или может причину надо искать не вэтом?

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Непрочитанное сообщение dikens3 » 2007-06-11 19:01:39

http://www.lissyara.su/?id=1330

Тут мой рабочий. Попробуй его.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

Гость
проходил мимо

Непрочитанное сообщение Гость » 2007-07-09 21:09:35

У меня чот не устанавливается соединение PPPoE. Набираю ppp,
затем dial inetsrv.

ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

set device /dev/cuad1

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
enable dns

papchap:
set phone PHONE_NUM
set authname USERNAME
set authkey PASSWORD

set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR

inetsrv:
set device PPPoE:vr0
enable lqr
set speed sync
set cd 5
set dial
set redial 10.10 5000
set login
enable dns
set mtu 1492
set mru 1492
set authname malor
set authkey mypassword
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
nat enable yes
ppp.log:
Jun 30 18:32:54 gangster newsyslog[529]: logfile first created
Jul 8 20:15:22 gangster ppp[1656]: Phase: Using interface: tun0
Jul 8 20:15:22 gangster ppp[1656]: Phase: deflink: Created in closed state
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: ident user-ppp VERSION

(built COMPILATIONDATE)
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set device /dev/cuad1
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set speed 115200
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set dial ABORT BUSY ABORT

NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set timeout 180
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: enable dns
Jul 8 20:15:27 gangster ppp[1656]: tun0: Phase: PPP Started (interactive mode).
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: /dev/ttyp4: dial inetsrv
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set device PPPoE:vr0
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: enable lqr
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set speed sync
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set cd 5
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set dial
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set redial 10.10 5000
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set login
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: enable dns
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set mtu 1492
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set mru 1492
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set authname mallory
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set authkey ********
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: set ifaddr 10.0.0.1/0

10.0.0.2/0 255.255.255.0 0.0.0.0
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: add default HISADDR
Jul 8 20:16:02 gangster ppp[1656]: tun0: Command: inetsrv: nat enable yes
Jul 8 20:16:02 gangster ppp[1656]: tun0: Phase: bundle: Establish
Jul 8 20:16:02 gangster ppp[1656]: tun0: Phase: deflink: closed -> opening
Jul 8 20:16:03 gangster ppp[1656]: tun0: Phase: deflink: Connected!
Jul 8 20:16:03 gangster ppp[1656]: tun0: Phase: deflink: opening -> dial
Jul 8 20:16:03 gangster ppp[1656]: tun0: Chat: deflink: Dial attempt 1 of 5000
Jul 8 20:16:03 gangster ppp[1656]: tun0: Phase: deflink: dial -> carrier
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: Disconnected!
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: carrier -> hangup
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets

in, 0 octets out
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on

Sun Jul 8 20:16:03 2007
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: hangup -> opening
Jul 8 20:16:08 gangster ppp[1656]: tun0: Phase: deflink: Enter pause (10) for

redialing.
Jul 8 20:16:18 gangster ppp[1656]: tun0: Chat: deflink: Redial timer expired.
Jul 8 20:16:18 gangster ppp[1656]: tun0: Phase: deflink: Connected!
Jul 8 20:16:18 gangster ppp[1656]: tun0: Phase: deflink: opening -> dial
Jul 8 20:16:18 gangster ppp[1656]: tun0: Chat: deflink: Dial attempt 2 of 5000
Jul 8 20:16:18 gangster ppp[1656]: tun0: Phase: deflink: dial -> carrier
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: Disconnected!
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: carrier -> hangup
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets

in, 0 octets out
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on

Sun Jul 8 20:16:18 2007
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: hangup -> opening
Jul 8 20:16:23 gangster ppp[1656]: tun0: Phase: deflink: Enter pause (10) for

redialing.
Jul 8 20:16:33 gangster ppp[1656]: tun0: Chat: deflink: Redial timer expired.
Jul 8 20:16:33 gangster ppp[1656]: tun0: Phase: deflink: Connected!
Jul 8 20:16:33 gangster ppp[1656]: tun0: Phase: deflink: opening -> dial
Jul 8 20:16:33 gangster ppp[1656]: tun0: Chat: deflink: Dial attempt 3 of 5000
Jul 8 20:16:33 gangster ppp[1656]: tun0: Phase: deflink: dial -> carrier
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: Disconnected!
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: carrier -> hangup
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets

in, 0 octets out
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on

Sun Jul 8 20:16:33 2007
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: hangup -> opening
Jul 8 20:16:38 gangster ppp[1656]: tun0: Phase: deflink: Enter pause (10) for

redialing.
Jul 8 20:16:48 gangster ppp[1656]: tun0: Chat: deflink: Redial timer expired.
Jul 8 20:16:48 gangster ppp[1656]: tun0: Phase: deflink: Connected!
Jul 8 20:16:48 gangster ppp[1656]: tun0: Phase: deflink: opening -> dial
Jul 8 20:16:48 gangster ppp[1656]: tun0: Chat: deflink: Dial attempt 4 of 5000
Jul 8 20:16:48 gangster ppp[1656]: tun0: Phase: deflink: dial -> carrier
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: Disconnected!
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: carrier -> hangup
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets

in, 0 octets out
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on

Sun Jul 8 20:16:48 2007
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: hangup -> opening
Jul 8 20:16:53 gangster ppp[1656]: tun0: Phase: deflink: Enter pause (10) for

redialing.
Jul 8 20:16:58 gangster ppp[1656]: tun0: Command: /dev/ttyp4: quit
Jul 8 20:16:58 gangster ppp[1656]: tun0: Phase: deflink: Disconnected!
Jul 8 20:16:58 gangster ppp[1656]: tun0: Phase: deflink: opening -> closed
Jul 8 20:16:58 gangster ppp[1656]: tun0: Phase: bundle: Dead
Jul 8 20:16:58 gangster ppp[1656]: tun0: Phase: PPP Terminated (normal).
Что делать?

FreeBSD 6.2

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Непрочитанное сообщение dikens3 » 2007-07-09 21:57:57

Бери мой рабочий по ссылке выше, он нормально работает.
А чудеса в логах типа:

Код: Выделить всё

Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set device /dev/cuad1
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set speed 115200
Jul 8 20:15:27 gangster ppp[1656]: tun0: Command: default: set dial ABORT BUSY ABORT 
Вот нафига?

Запуск PPPoE делается так:

Код: Выделить всё

/usr/sbin/ppp -quiet -ddial -nat inetsrv
Описание PPPoE поищи на NAG.RU, и tcpdump чё-то там 0x8863 и смотри что там происходит.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

Гость
проходил мимо

Непрочитанное сообщение Гость » 2007-07-09 23:52:01

Сделал согласно вашему тексту - /etc/ppp/ppp.conf:

Код: Выделить всё

default:

inetsrv:
    set log Phase tun command
    set device PPPoE:vr0
    set authname malor
    set authkey mypassword
    set mru 1492
    set mtu 1492
    enable lqr
    set lqrperiod 10
    enable lqr echo
    enable echo
    set dial
    set login
    set timeout 0
    set redial 0 0

# NAT
   nat enable yes
# Тут порт Radmin прокидываем
   nat port tcp 192.168.1.1:6666        6666
   nat log no
   nat same_ports yes
   nat unregistered_only yes
   nat deny_incoming no
В /var/log/ppp.log:

Код: Выделить всё

Jul 10 00:50:31 gangster ppp[1091]: Phase: Using interface: tun0
Jul 10 00:50:31 gangster ppp[1091]: Phase: deflink: Created in closed state
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set device PPPoE:vr0
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set authname tev
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set authkey ********
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set mru 1492
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set mtu 1492
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: enable lqr
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set lqrperiod 10
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: enable lqr echo
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: enable echo
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set dial
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set login
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set timeout 0
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: set redial 0 0
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat enable yes
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat port tcp 192.168.1.1:6666 6666
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat log no
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat same_ports yes
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat unregistered_only yes
Jul 10 00:50:36 gangster ppp[1091]: tun0: Command: inetsrv: nat deny_incoming no
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: PPP Started (ddial mode).
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: bundle: Establish
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: deflink: closed -> opening
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: deflink: Connected!
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: deflink: opening -> dial
Jul 10 00:50:36 gangster ppp[1150]: tun0: Phase: deflink: dial -> carrier
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: Disconnected!
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: carrier -> hangup
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Tue Jul 10 00:50:36 2007
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: hangup -> opening
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: Enter pause (0) for redialing.
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: Connected!
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: opening -> dial
Jul 10 00:50:41 gangster ppp[1150]: tun0: Phase: deflink: dial -> carrier
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: Disconnected!
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: carrier -> hangup
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Tue Jul 10 00:50:41 2007
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: hangup -> opening
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: Enter pause (0) for redialing.
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: Connected!
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: opening -> dial
Jul 10 00:50:46 gangster ppp[1150]: tun0: Phase: deflink: dial -> carrier
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: Disconnected!
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: carrier -> hangup
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Tue Jul 10 00:50:46 2007
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: hangup -> opening
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: Enter pause (0) for redialing.
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: Connected!
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: opening -> dial
Jul 10 00:50:51 gangster ppp[1150]: tun0: Phase: deflink: dial -> carrier
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: Disconnected!
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: carrier -> hangup
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Tue Jul 10 00:50:51 2007
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: hangup -> opening
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: Enter pause (0) for redialing.
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: Connected!
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: opening -> dial
Jul 10 00:50:56 gangster ppp[1150]: tun0: Phase: deflink: dial -> carrier
Jul 10 00:51:01 gangster ppp[1150]: tun0: Phase: deflink: Disconnected!
Jul 10 00:51:01 gangster ppp[1150]: tun0: Phase: deflink: carrier -> hangup
Jul 10 00:51:01 gangster ppp[1150]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 10 00:51:01 gangster ppp[1150]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 10 00:51:01 gangster ppp[1150]: tun0: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Tue Jul 10 00:50:56 2007 
Как быть?[/code]

Аватара пользователя
dikens3
подполковник
Сообщения: 4856
Зарегистрирован: 2006-09-06 16:24:08
Откуда: Нижний Новгород
Контактная информация:

Непрочитанное сообщение dikens3 » 2007-07-10 10:12:23

set log Phase tun command
Увеличь уровень логов:

Код: Выделить всё

 set log Phase Chat LCP IPCP CCP tun command
Соединение не устанавливается, пароль или логин кривой, вообще не пускают или PPPoE сервака нет в сети.

из конфига про NAT оставь только сам NAT:

Код: Выделить всё

# NAT
   nat enable yes 
Да и то, если кто-то ещё ходить будет через тебя в инет.

P.S. Уровни логов добавляй пока в логах не поймешь в чём проблема, она там должна появиться.
Лучше установить FreeBSD, чем потратить 30 лет на Linux'ы и выяснить какой из них хуже.

malor
ефрейтор
Сообщения: 55
Зарегистрирован: 2007-07-09 20:20:25

Re: FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение malor » 2007-07-16 21:28:33

При конфиге - /etc/ppp/ppp.conf:

Код: Выделить всё

default:

inetsrv:
    set log Phase Chat LCP IPCP CCP tun command
    set device PPPoE:vr0
    set authname malor
    set authkey yaroslavl
    set mru 1492
    set mtu 1492
    enable lqr
    set lqrperiod 10
    enable lqr echo
    enable echo
    set dial
    set login
    set timeout 0
    set redial 0 0 
логи /var/log/ppp.log такие:

Код: Выделить всё

Jul 16 22:07:15 gangster ppp[1120]: Phase: Using interface: tun0
Jul 16 22:07:15 gangster ppp[1120]: Phase: deflink: Created in closed state
Jul 16 22:07:15 gangster ppp[1120]: Phase: PPP Started (interactive mode).
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set device PPPoE:vr0
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set authname malor
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set authkey ********
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set mru 1492
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set mtu 1492
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: enable lqr
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set lqrperiod 10
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: enable lqr echo
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: enable echo
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set dial
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set login
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set timeout 0
Jul 16 22:07:25 gangster ppp[1120]: tun0: Command: inetsrv: set redial 0 0
Jul 16 22:07:25 gangster ppp[1120]: tun0: Phase: bundle: Establish
Jul 16 22:07:25 gangster ppp[1120]: tun0: Phase: deflink: closed -> opening
Jul 16 22:07:25 gangster ppp[1120]: tun0: Phase: deflink: Connected!
Jul 16 22:07:25 gangster ppp[1120]: tun0: Phase: deflink: opening -> dial
Jul 16 22:07:25 gangster ppp[1120]: tun0: Phase: deflink: dial -> carrier
Jul 16 22:07:26 gangster ppp[1120]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "inetsrv")
Jul 16 22:07:26 gangster ppp[1120]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Jul 16 22:07:26 gangster ppp[1120]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Jul 16 22:07:26 gangster ppp[1120]: tun0: Phase: deflink: carrier -> login
Jul 16 22:07:26 gangster ppp[1120]: tun0: Phase: deflink: login -> lcp
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: FSM: Using "deflink" as a transport
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: State change Initial --> Closed
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: State change Closed --> Stopped
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACFCOMP[2]
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  PROTOCOMP[2]
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0x3267b04e
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 10000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(1) state = Stopped
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: LayerStart
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigRej(1) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACFCOMP[2]
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  PROTOCOMP[2]
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0x3267b04e
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 10000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvIdent(0) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM de06e7df
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  TEXT user-ppp 3.1 (built Jan 23
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(2) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(2) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigNak(2) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: SendConfigReq(3) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0x3267b04e
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 10000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigAck(3) state = Req-Sent
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0x3267b04e
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 10000ms
Jul 16 22:07:26 gangster ppp[1120]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(3) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(3) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(4) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(4) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(5) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(5) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(6) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(6) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(7) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(7) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(8) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(8) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(9) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(9) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(10) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(10) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(11) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(11) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(12) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(12) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(13) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(13) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvConfigReq(14) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  ACCMAP[6] 0x00000000
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1460
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM[6] 0xde06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  QUALPROTO[8] proto c025, interval 30000ms
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  AUTHPROTO[5] 0xc223 (CHAP 0x81)
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendConfigNak(14) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MRU[4] 1492
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvIdent(1) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  MAGICNUM de06e7df
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP:  TEXT user-ppp 3.1 (built Jan 23
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: RecvTerminateReq(15) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: SendTerminateAck(15) state = Ack-Rcvd
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: State change Ack-Rcvd --> Req-Sent
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: Received NGM_PPPOE_CLOSE
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: Device disconnected
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: State change Req-Sent --> Starting
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: LayerFinish
Jul 16 22:07:29 gangster ppp[1120]: tun0: LCP: deflink: State change Starting --> Initial
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: Disconnected!
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: lcp -> logout
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: Disconnected!
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: logout -> hangup
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: Connect time: 4 secs: 630 octets in, 240 octets out
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: 20 packets in, 18 packets out
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase:  total 217 bytes/sec, peak 92 bytes/sec on Mon Jul 16 22:07:27 2007
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: deflink: hangup -> closed
Jul 16 22:07:29 gangster ppp[1120]: tun0: Phase: bundle: Dead

malor
ефрейтор
Сообщения: 55
Зарегистрирован: 2007-07-09 20:20:25

Re: FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение malor » 2007-07-17 8:21:29

Ядро я не изменял, FreeBSD токоустановленная.

Аватара пользователя
Morty
ст. лейтенант
Сообщения: 1370
Зарегистрирован: 2007-07-17 23:25:12

Re: FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение Morty » 2007-07-17 23:54:39

совсем недавно у вас и очень уже мне у вас нравиться ! не удержался тоже захтелось шонить написать.

Вот свой рабочий конфиг выкладываю(Фря 6.2 , ядро компилил)

Код: Выделить всё

default:
  set log Phase tun command # you can add more detailed logging if you wish
  set ifaddr 81.10.10.10/0 81.10.10.10/0
  set ctsrts off
  set speed sync
  set timeout 0
  set redial  0 0
  enable lqr
  set lqrperiod 10
  enable lqr echo
  enable echo
# N A T
  nat enable yes
  nat log yes
  nat same_ports yes
  enable dns  

provider:
  set device PPPoE:rl0 # replace xl1 with your Ethernet device
  set authname Login_
  set authkey Pass_
  set dial
  set login
  add default HISADDR
Здесь Ип естественно левый и думаю не мало важно (если я правильно понимаю при МОСТЕ) ип должен быть задан в таком виде set ifaddr 81.10.10.10/0 81.10.10.10/0 (у меня без этого не пахало). Взято из Винды по её аналогии, когда виндой конектишься на PPPoE то на ipconfig в резултате пишет что то типа ip 81.10.10.10 netmask 255.255.255.255 gateway 81.10.10.10
В результате у меня на rl0 ип нема rl1 в локалку, tun0 81.10.10.10->ип прова
и kldstat если надо дает такое
kernel
acpi.ko
netgraph.ko
ng_ether.ko
ng_pppoe.ko
ng_socket.ko

PS: причем PPPoE сам настраивал первый раз и по этому форуму за что вам всем большое спаисбо ! -)

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35090
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение Alex Keda » 2007-07-17 23:57:57

а я ни разу не настраивал...
тока один раз - ppp - когда с фряхи на poptop стучался - надо было в сетку удалённую сходить...
Убей их всех! Бог потом рассортирует...

Аватара пользователя
dvg_lab
сержант
Сообщения: 291
Зарегистрирован: 2007-07-02 22:51:25
Откуда: Москва

Re: FreeBSD 6.2 Настройка подключения PPPoE

Непрочитанное сообщение dvg_lab » 2007-07-18 8:18:34

буквально на прошлых выходных расковырял и pppoe и pptp под mpd правда, он гораздо устойчивей чем ppp и умеет умерший линк поднимать по новой, еси надо могу конфиги кинуть (mpd 3.18 на 4.2 так и не перешёл) :)
FreeBSD the power to serve.