Есть подключение 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 ххх.ххх.ххх.ххх не пингуется....
Хелп!!!!