The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"PPPoE"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"PPPoE"  
Сообщение от tuxper email on 14-Ноя-06, 14:36 
Есть подключение PPPoE, без модема, т.е. кабель втыкается в свитч прова.
ОС FreeBSD, конфиг ppp.conf:

default:
set log Phase Chat LCP IPCP CCP tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
#ident user-ppp VERSION (built COMPILATIONDATE)

# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
megaline:
set device PPPoE:rl0
set authname myname
set authkey mypassword
set dial
set login
add default 192.168.254.254

В логах, знаю много, но все же...:

Nov 14 16:43:07 kg-united ppp[613]: Phase: Using interface: tun0
Nov 14 16:43:07 kg-united ppp[613]: Phase: deflink: Created in closed state
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: set device PPPoE:rl0
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: set authname kg-united
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: set authkey ********
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: set dial
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: set login
Nov 14 16:43:07 kg-united ppp[613]: tun0: Command: megaline: add default 192.168.254.254
Nov 14 16:43:07 kg-united ppp[613]: tun0: Warning: Add route failed: 0.0.0.0/0: errno: Network is unreachable
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: PPP Started (ddial mode).
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: bundle: Establish
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: deflink: closed -> opening
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: deflink: Connected!
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: deflink: opening -> dial
Nov 14 16:43:07 kg-united ppp[614]: tun0: Phase: deflink: dial -> carrier
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "7206Mega")
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: deflink: carrier -> login
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: deflink: login -> lcp
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: FSM: Using "deflink" as a transport
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: State change Initial --> Closed
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: State change Closed --> Stopped
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: RecvConfigReq(1) state = Stopped
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MRU[4] 1492
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MAGICNUM[6] 0x4ef428cb
Nov 14 16:43:08 kg-united ppp[614]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: ACFCOMP[2]
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: PROTOCOMP[2]
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MRU[4] 1492
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MAGICNUM[6] 0x0b0e80e0
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: SendConfigAck(1) state = Stopped
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MRU[4] 1492
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MAGICNUM[6] 0x4ef428cb
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: LayerStart
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: State change Stopped --> Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: ACFCOMP[2]
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: PROTOCOMP[2]
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: ACCMAP[6] 0x00000000
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MRU[4] 1492
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: MAGICNUM[6] 0x0b0e80e0
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: LayerUp
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: bundle: Authenticate
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from 7206Mega)
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Chap Output: RESPONSE (kg-united)
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: Chap Input: SUCCESS
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: FSM: Using "deflink" as a transport
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: deflink: State change Initial --> Closed
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: deflink: LayerStart.
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: MPPE: Not usable without CHAP81
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: DEFLATE[4] win 15
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: PRED1[2]
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: deflink: State change Closed --> Req-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: deflink: lcp -> open
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: bundle: Network
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: FSM: Using "deflink" as a transport
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: State change Initial --> Closed
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: LayerStart.
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] 10.0.0.1
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] 192.168.254.254
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] 192.168.254.254
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: RecvProtocolRej(2) state = Opened
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Nov 14 16:43:08 kg-united ppp[614]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] 10.0.0.1
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: RecvProtocolRej(3) state = Opened
Nov 14 16:43:08 kg-united ppp[614]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Nov 14 16:43:08 kg-united ppp[614]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] ххх.ххх.ххх.ххх
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] changing address: 10.0.0.1 --> ххх.ххх.ххх.ххх
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] ххх.ххх.ххх.ххх
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: IPADDR[6] ххх.ххх.ххх.ххх
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: deflink: LayerUp.
Nov 14 16:43:08 kg-united ppp[614]: tun0: IPCP: myaddr ххх.ххх.ххх.ххх hisaddr = 192.168.254.254
Nov 14 16:43:09 kg-united ppp[614]: tun0: Warning: ff02:5::/32: Change route failed: errno: Network is unreachable

Коннект вроде есть по логу, но пинга нет, даже мой ip ххх.ххх.ххх.ххх не пингуется....

Хелп!!!!

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

  • PPPoE, Аноним, 22:03 , 14-Ноя-06, (1)  
  • PPPoE, Skif, 03:49 , 15-Ноя-06, (2)  
    • PPPoE, Tuxper, 16:50 , 15-Ноя-06, (3)  
      • PPPoE, Skif, 18:38 , 15-Ноя-06, (4)  

Сообщения по теме [Сортировка по времени, UBB]


1. "PPPoE"  
Сообщение от Аноним on 14-Ноя-06, 22:03 
netstat -nr в студию


Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "PPPoE"  
Сообщение от Skif (ok) on 15-Ноя-06, 03:49 
найди отличия:
http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/pppoe.html

23.5.2. Настройка ppp.conf
Вот пример работающего ppp.conf:

default:
  set log Phase tun command # you can add more detailed logging if you wish
  set ifaddr 10.0.0.1/0 10.0.0.2/0

name_of_service_provider:
  set device PPPoE:xl1 # replace xl1 with your Ethernet device
  set authname YOURLOGINNAME
  set authkey YOURPASSWORD
  set dial
  set login
  add default HISADDR

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "PPPoE"  
Сообщение от Tuxper email(??) on 15-Ноя-06, 16:50 
>найди отличия:
>http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/pppoe.html
>
>23.5.2. Настройка ppp.conf
>Вот пример работающего ppp.conf:
>
>default:
>  set log Phase tun command # you can add more
>detailed logging if you wish
>  set ifaddr 10.0.0.1/0 10.0.0.2/0
>
>name_of_service_provider:
>  set device PPPoE:xl1 # replace xl1 with your Ethernet device
>
>  set authname YOURLOGINNAME
>  set authkey YOURPASSWORD
>  set dial
>  set login
>  add default HISADDR


OK, заработало, только вот если в rc.conf прописать следующее:
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="megaline"
ppp_user="root"

При старте, пишет: starting PPP as "root" и стоит на этом, потом Ctrl+C и загрузка дальше пошла, но ppp соединения нет,
если с консоли: ppp -ddial megaline
Все ок... в чем грабли?

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "PPPoE"  
Сообщение от Skif email(ok) on 15-Ноя-06, 18:38 
>
>OK, заработало, только вот если в rc.conf прописать следующее:
>ppp_enable="YES"
>ppp_mode="ddial"
>ppp_profile="megaline"
>ppp_user="root"
>
>При старте, пишет: starting PPP as "root" и стоит на этом, потом
>Ctrl+C и загрузка дальше пошла, но ppp соединения нет,
> если с консоли: ppp -ddial megaline
>Все ок... в чем грабли?


Вот кнопочки нажимать как раз и ненадо было, надо было дождаться. Либо отдельным скриптом стартуйте своим.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру