Starnet 4 Опубликовано: 2011-02-12 19:12:31 Share Опубликовано: 2011-02-12 19:12:31 Здравствуйте. Поднимаю pppoe соединение через адсл модем. Конектиться вроде без ошибок. Получаю много айпи о провайдера. Не могу поянть в чом трабл. Может кто-то с таким сталкивался? конфиг ppp.conf default: set log Phase tun command # you can add more detailed logging if you wish adsl: set device PPPoE:rl1 # replace xl1 with your Ethernet device set authname my login set authkey my pass set mru 1492 set mtu 1492 set ctsrts off enable lqr set timeout 0 set readial 0 0 add default HISADDR после запуска ppp -ddial adsl получаем tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000<LINKSTATE> inet 178.94.39.151 --> 195.5.5.204 netmask 0xffffffff inet 178.94.96.112 --> 195.5.5.204 netmask 0xffffffff inet 178.94.47.118 --> 195.5.5.204 netmask 0xffffffff inet 178.94.144.31 --> 195.5.5.204 netmask 0xffffffff Opened by PID 22883 на интервейсе tun0 не один апишник а несколько! и так может быть хоть 100 ip если не убить ppp. В чом трабл? ppp.log Feb 12 21:06:58 billing ppp[22882]: Phase: Using interface: tun0 Feb 12 21:06:58 billing ppp[22882]: Phase: deflink: Created in closed state Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set device PPPoE:rl1 Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set authname my login Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set authkey ******** Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set mru 1492 Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set mtu 1492 Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set ctsrts off Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: enable lqr Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set timeout 0 Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: set redial 0 0 Feb 12 21:06:58 billing ppp[22882]: tun0: Command: adsl: nat enable no Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: PPP Started (ddial mode). Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: bundle: Establish Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: deflink: closed -> opening Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: deflink: Connected! Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: deflink: opening -> dial Feb 12 21:06:58 billing ppp[22883]: tun0: Phase: deflink: dial -> carrier Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: carrier -> hangup Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: 0 packets in, 0 packets out Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sat Feb 12 21:06:58 2011 Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: hangup -> opening Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: Enter pause (0) for redialing. Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: Connected! Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: opening -> dial Feb 12 21:07:03 billing ppp[22883]: tun0: Phase: deflink: dial -> carrier Feb 12 21:07:06 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "KV-JE-R2") Feb 12 21:07:06 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SESSIONID Feb 12 21:07:06 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SUCCESS Feb 12 21:07:06 billing ppp[22883]: tun0: Phase: deflink: carrier -> login Feb 12 21:07:06 billing ppp[22883]: tun0: Phase: deflink: login -> lcp Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: bundle: Authenticate Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: deflink: his = PAP, mine = none Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: Pap Output: my login ******** Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: Pap Input: SUCCESS () Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: deflink: lcp -> open Feb 12 21:07:07 billing ppp[22883]: tun0: Phase: bundle: Network Feb 12 21:07:08 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:08 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:08 billing ppp[22883]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 178.94.39.151 -> 195.5.5.204): File exists Feb 12 21:07:08 billing ppp[22883]: tun0: Error: ipcp_InterfaceUp: unable to set ip address Feb 12 21:07:11 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:20 billing last message repeated 3 times Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: bundle: Terminate Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: open -> lcp Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: lcp -> logout Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: logout -> hangup Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: Connect time: 20 secs: 227 octets in, 244 octets out Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: 17 packets in, 17 packets out Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: total 23 bytes/sec, peak 81 bytes/sec on Sat Feb 12 21:07:11 2011 Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: hangup -> opening Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: bundle: Establish Feb 12 21:07:23 billing ppp[22883]: tun0: Phase: deflink: Enter pause (3) for redialing. Feb 12 21:07:26 billing ppp[22883]: tun0: Phase: deflink: Connected! Feb 12 21:07:26 billing ppp[22883]: tun0: Phase: deflink: opening -> dial Feb 12 21:07:26 billing ppp[22883]: tun0: Phase: deflink: dial -> carrier Feb 12 21:07:29 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "KV-JE-R2") Feb 12 21:07:29 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SESSIONID Feb 12 21:07:29 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SUCCESS Feb 12 21:07:29 billing ppp[22883]: tun0: Phase: deflink: carrier -> login Feb 12 21:07:29 billing ppp[22883]: tun0: Phase: deflink: login -> lcp Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: bundle: Authenticate Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: deflink: his = PAP, mine = none Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: Pap Output: my login ******** Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: Pap Input: SUCCESS () Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: deflink: lcp -> open Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: bundle: Network Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:30 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:30 billing ppp[22883]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 178.94.96.112 -> 195.5.5.204): File exists Feb 12 21:07:30 billing ppp[22883]: tun0: Error: ipcp_InterfaceUp: unable to set ip address Feb 12 21:07:33 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:42 billing last message repeated 3 times Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: bundle: Terminate Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: open -> lcp Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: lcp -> logout Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: logout -> hangup Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: Connect time: 19 secs: 227 octets in, 244 octets out Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: 34 packets in, 34 packets out Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: total 24 bytes/sec, peak 81 bytes/sec on Sat Feb 12 21:07:34 2011 Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: hangup -> opening Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: bundle: Establish Feb 12 21:07:45 billing ppp[22883]: tun0: Phase: deflink: Enter pause (3) for redialing. Feb 12 21:07:48 billing ppp[22883]: tun0: Phase: deflink: Connected! Feb 12 21:07:48 billing ppp[22883]: tun0: Phase: deflink: opening -> dial Feb 12 21:07:48 billing ppp[22883]: tun0: Phase: deflink: dial -> carrier Feb 12 21:07:51 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "KV-JE-R2") Feb 12 21:07:51 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SESSIONID Feb 12 21:07:51 billing ppp[22883]: tun0: Phase: Received NGM_PPPOE_SUCCESS Feb 12 21:07:51 billing ppp[22883]: tun0: Phase: deflink: carrier -> login Feb 12 21:07:51 billing ppp[22883]: tun0: Phase: deflink: login -> lcp Feb 12 21:07:52 billing ppp[22883]: tun0: Phase: bundle: Authenticate Feb 12 21:07:52 billing ppp[22883]: tun0: Phase: deflink: his = PAP, mine = none Feb 12 21:07:52 billing ppp[22883]: tun0: Phase: Pap Output: my login ******** Feb 12 21:07:53 billing ppp[22883]: tun0: Phase: Pap Input: SUCCESS () Feb 12 21:07:53 billing ppp[22883]: tun0: Phase: deflink: lcp -> open Feb 12 21:07:53 billing ppp[22883]: tun0: Phase: bundle: Network Feb 12 21:07:53 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:53 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:07:53 billing ppp[22883]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 178.94.47.118 -> 195.5.5.204): File exists Feb 12 21:07:53 billing ppp[22883]: tun0: Error: ipcp_InterfaceUp: unable to set ip address Feb 12 21:07:56 billing ppp[22883]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Feb 12 21:08:05 billing last message repeated 3 times Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: bundle: Terminate Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: open -> lcp Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: lcp -> logout Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: logout -> hangup Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: Disconnected! Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: Connect time: 20 secs: 227 octets in, 244 octets out Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: 51 packets in, 51 packets out Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: total 23 bytes/sec, peak 81 bytes/sec on Sat Feb 12 21:07:56 2011 Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: hangup -> opening Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: bundle: Establish Feb 12 21:08:08 billing ppp[22883]: tun0: Phase: deflink: Enter pause (3) for redialing. Ссылка на сообщение Поделиться на других сайтах
roneaf 2 Опубліковано: 2011-02-13 00:28:42 Share Опубліковано: 2011-02-13 00:28:42 Я только начинающий пользователь *nix н у меня на FreeBSD 8.0 работает такой конфиг inet: set device PPPoE:em0:1 set authname 1 set authkey 1 set dial set login set openmode active set mppe 128 stateful set timeout 180 set redial 0 0 disable ipv6cp disable ipv6 disable pred1 deny pred1 disable lqr deny lqr add default HISADDR Ссылка на сообщение Поделиться на других сайтах
natiss 16 Опубліковано: 2011-02-13 14:54:49 Share Опубліковано: 2011-02-13 14:54:49 http://myfreebsd.ru/network/pppoe-klient-user-levelpppoe: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) set device PPPoE:fxp0 # указываем интерфейс (физический или vlan) к которому подключен провайдер set speed sync set mru 1492 set mtu 1492 set ctsrts off enable lqr add default HISADDR # добавляем маршрут по умолчанию set dns 8.8.8.8 # устанавливаем DNS (можно указывать Google) set authname username # логин set authkey passwd # пароль [b]set dial set login[/b] Ссылка на сообщение Поделиться на других сайтах
natiss 16 Опубліковано: 2011-02-13 15:35:02 Share Опубліковано: 2011-02-13 15:35:02 Ну или так /usr/local/sbin/mpd5 -d /usr/local/etc/mpd5-ut -p /var/run/mpd5-ut.pid -b # cat /usr/local/etc/mpd5-ut/mpd.conf | less startup: # configure mpd users set user foo bar admin set user foo1 bar1 # configure the console set console self 127.0.0.1 5007 set console open default: load ut ut: # # PPPoE client: only outgoing calls, auto reconnect, # ipcp-negotiated address, one-sided authentication, # default route points on ISP's end # create bundle static B1 set iface route default set ipcp ranges 0.0.0.0/0 0.0.0.0/0 create link static L1 pppoe set link action bundle B1 set auth authname bdsmbsdm999@dsl.ukrtel.net set auth password harDcOre set link max-redial 0 set link mtu 1460 set link keep-alive 10 60 set pppoe iface ed0 set pppoe service "" open Ссылка на сообщение Поделиться на других сайтах
mill 0 Опубліковано: 2011-02-13 20:27:38 Share Опубліковано: 2011-02-13 20:27:38 Настраивайте через MPD5. Он меньше грузит проц и работает как часы. Ссылка на сообщение Поделиться на других сайтах
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Зарегистрировать аккаунтВхід
Уже зарегистрированы? Войдите здесь.
Войти сейчас