Подключаюсь к провайдеру через PPPoe (через сетевую карту), но чето никак не получается...
За основу взял статью http://www.oneyed.org/fribi-adsl.html, перекомпилировал ядро, добавив в него:
-------------------------
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
-------------------------
отредактировал rc.conf
-------------------------
ppp_mode="background"
ppp_profile="pppoe"
-------------------------
потом ppp.conf
---------------------------------------------------------------------------
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe: set device PPPoE:xl:0:
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout
set authname login
set authkey pass
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
-------------------------------------------------------------------------------
соединяюсь с провайдером:
---------------------------------------------------------------------
$ su
Password:
shark# ppp -ddial
Warning: Bad label in /etc/ppp/ppp.conf (line 11) - missing colon
Working in ddial mode
Using interface: tun0
Warning: Bad label in /etc/ppp/ppp.conf (line 11) - missing colon
Warning: No default entry found in config file.
-----------------------------------------------------------------------
после чего инет не работает :( Подскажите в чем проблема плз?
PS: после ppp-ddial
shark# ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<rxcsum,txcsum>
inet 192.168.10.32 netmask 0xffffff00 broadcast 192.168.10.255
inet6 fe80::250:4ff:fe60:6c31%xl0 prefixlen 64 scopeid 0x1
ether 00:50:04:60:6c:31
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
Opened by PID 629