Начитался форума и Handbook-а вот результат:
в /etc/rc.conf:
network_interfaces="ed0 ex0 lo0"
ifconfig_ed0="inet 192.168.254.1 netmask 255.255.255.0"
ifconfig_ex0="inet 192.168.1.2 netmask 255.255.255.0"
hostname="voi.net"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="open"
firewall_quiet="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="test"
===========================
в /etc/ppp/ppp.conf:
default:
test:
set device PPPoE:ex0
set MTU 1492
set MRU 1492
set dial
set crtscts off
set speed sync
accept lqr
disable deflate
disable pred1
disable vjcomp
disable acfcomp
disable protocomp
set log Phase Chat LCP IPCP CCP Warning Error Alert
set ifaddr 192.168.1.2/0 192.168.1.1/0 255.255.255.255 255.255.255.255
set login
set authname user1@dsl.prov2.net
set authkey 28780315
# add default HISADDR # Add a (sticky) default route - так и не понял, что же здесь указывать, поэтому написал
add default 192.168.1.1
=====================================================
Не работает. Вот /var/log/ppp.log:
Nov 25 16:40:14 voi ppp[195]: Phase: Using interface:tun0
Nov 25 16:40:14 voi ppp[195]: Phase: deflink: Created in closed state
Nov 25 16:40:14 voi ppp[195]: Phase: Listening at local socket /var/run/ppp/ppp.pid. Nov 25 16:40:14 voi ppp[196]: Phase: PPP Started (ddial mode).
Nov 25 16:40:14 voi ppp[196]: Phase: bundle: Establish
Nov 25 16:40:14 voi ppp[196]: Phase: deflink: closed -> opening
Nov 25 16:40:16 voi ppp[196]: Phase: deflink: Connected!
Nov 25 16:40:16 voi ppp[196]: Phase: deflink: opening -> dial
Nov 25 16:40:16 voi ppp[196]: Phase: deflink: dial -> carrier
Nov 25 16:40:16 voi ppp[196]: Phase: Received NGM_PPPOE_ACNAME(hook "BRAS-1_CMTS")
Nov 25 16:40:16 voi ppp[196]: Phase: Received NGM_PPPOE_SESSIONID
Nov 25 16:40:16 voi ppp[196]: Phase: Received NGM_PPPOE_SUCCESS
Nov 25 16:40:16 voi ppp[196]: Phase: deflink: carrier -> login
Nov 25 16:40:16 voi ppp[196]: Phase: deflink: login -> lcp
Nov 25 16:40:16 voi ppp[196]: LCP: FSM: Using "deflink" as a transport
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: State change Initial -->Closed
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: State change Closed -->Stopped
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: RecvConfigReq(1) state=Stopped
Nov 25 16:40:16 voi ppp[196]: LCP: MRU[4]1492
Nov 25 16:40:16 voi ppp[196]: LCP: AUTHPROTO[4] 0xc023 (PAP)
Nov 25 16:40:16 voi ppp[196]: LCP: MAGICNUM[6]0xcda21070
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: SendConfigReq(1) state=Stopped
Nov 25 16:40:16 voi ppp[196]: LCP: MRU[4]1492
Nov 25 16:40:16 voi ppp[196]: LCP: MAGICNUM[6] 0xa4270e42
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: SendConfigAck(1)state=Stopped
Nov 25 16:40:16 voi ppp[196]: LCP: MRU[4] 1492
Nov 25 16:40:16 voi ppp[196]: LCP: AUTHPROTO[4] 0xc023(PAP)
Nov 25 16:40:16 voi ppp[196]: LCP: MAGICNUM[6] 0xcda21070
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: LayerStart
Nov 25 16:40:16 voi ppp[196]: LCP: deflink: State change Stopped --> Ack-Sent
Nov 25 16:40:17 voi ppp[196]: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Nov 25 16:40:17 voi ppp[196]: LCP: MRU[4] 1492
Nov 25 16:40:17 voi ppp[196]: LCP: MAGICNUM[6] 0xa4270e42
Nov 25 16:40:17 voi ppp[196]: LCP: deflink: State change Ack-Sent --> Opened
Nov 25 16:40:17 voi ppp[196]: LCP: deflink: LayerUp
Nov 25 16:40:17 voi ppp[196]: Phase: bundle: Authenticate
Nov 25 16:40:17 voi ppp[196]: Phase: deflink: his = PAP, mine = none
Nov 25 16:40:17 voi ppp[196]: Phase: Pap Output: user1@dsl.prov2.net ******** Nov 25 16:40:17 voi ppp[196]: Phase: Pap Input: SUCCESS ()
Nov 25 17:26:07 voi ppp[56]: CCP: FSM: Using "deflink" as a transport
Nov 25 17:26:07 voi ppp[56]: CCP: deflink: State change Initial --> Closed
Nov 25 17:26:07 voi ppp[56]: CCP: deflink: LayerStart.
Nov 25 17:26:07 voi ppp[56]: CCP: MPPE: Not usable without CHAP81
Nov 25 17:26:07 voi ppp[56]: CCP: deflink: SendConfigReq(1) state = Closed
Nov 25 17:26:07 voi ppp[56]: CCP: DEFLATE[4] win 15
Nov 25 17:26:07 voi ppp[56]: CCP: PRED1[2]
Nov 25 17:26:07 voi ppp[56]: CCP: deflink: State change Closed --> Req-Sent
Nov 25 17:26:07 voi ppp[56]: Phase: deflink: lcp -> open
Nov 25 17:26:07 voi ppp[56]: Phase: bundle: Network
Nov 25 17:26:07 voi ppp[56]: IPCP: FSM: Using "deflink" as a transport
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: State change Initial --> Closed
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: LayerStart.
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: SendConfigReq(1) state = Closed
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 192.168.1.2
Nov 25 17:26:07 voi ppp[56]: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: State change Closed --> Req-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 195.5.5.160
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 195.5.5.160
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: State change Req-Sent --> Ack-Sent
Nov 25 17:26:07 voi ppp[56]: LCP: deflink: RecvProtocolRej(1) state = Opened
Nov 25 17:26:07 voi ppp[56]: LCP: deflink: -- Protocol 0x80fd Compression Control Protocol) was rejected!
Nov 25 17:26:07 voi ppp[56]: CCP: deflink: State change Req-Sent --> Stopped
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 192.168.1.2
Nov 25 17:26:07 voi ppp[56]: LCP: deflink: RecvProtocolRej(2) state = Opened
Nov 25 17:26:07 voi ppp[56]: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Nov 25 17:26:07 voi ppp[56]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 82.207.40.53
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] changing address: 192.168.1.2 --> 82.207.40.53
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 82.207.40.53
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Nov 25 17:26:07 voi ppp[56]: IPCP: IPADDR[6] 82.207.40.53
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: State change Ack-Sent --> Opened
Nov 25 17:26:07 voi ppp[56]: IPCP: deflink: LayerUp.
Nov 25 17:26:07 voi ppp[56]: IPCP: myaddr 82.207.40.53 hisaddr = 195.5.5.160
Nov 25 17:26:08 voi ppp[56]: LCP: deflink: RecvEchoRequest(1) state = Opened
Nov 25 17:26:08 voi ppp[56]: LCP: deflink: SendEchoReply(1) state = Opened
Nov 25 17:26:18 voi ppp[56]: LCP: deflink: RecvEchoRequest(2) state = Opened
Nov 25 17:26:18 voi ppp[56]: LCP: deflink: SendEchoReply(2) state = Opened
Nov 25 17:26:29 voi ppp[56]: LCP: deflink: RecvEchoRequest(3) state = Opened
Nov 25 17:26:29 voi ppp[56]: LCP: deflink: SendEchoReply(3) state = Opened
............................
Nov 25 17:53:06 voi ppp[56]: LCP: deflink: RecvEchoRequest(13) state = Opened
Nov 25 17:53:06 voi ppp[56]: LCP: deflink: SendEchoReply(13) state = Opened
++++++++++++++++++++++++++++
Кроме этого, во время загрузки системы при поднятии сетевого интерфейса на экране выдавало:
in6_ifattach: ex0 is not multicast capable? IPv6 not enable
А при старте ppp показывало
Nov 25 16:40:16 voi /kernel: session in wrong state
Что же сделано не так? Подскажите!!!!!