Нужен. У меня терпения не хватило разбиться т.к. инет был срочно нужен. Пришлос PPPoE деактивировать временно на той машине. Конфиги практически идентичны вашим за исключением некоторых опций, таких как:Сан сказав(ла):Скажите, а что, у всех все получилось? Нужен ли рабочий конфиг ppp.conf?
[color=indigo]
default:
set log phase chat ccp lcp ipcp tun command #Что пишем в лог
set ifaddr 10.0.0.1/0 10.0.0.2/0
disable mppe
deny mppe
EtsPlus.Net:
set device PPPoE:eth0 #Вместо eth0 - свой сетевой адаптер
set authname loginname #Имя пользователя в биллинге
set authkey password #Пароль в биллинге
add default HISADDR
accept dns
[/color]
[color=indigo]
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="EtsPlus.Net"
[/color]
[color=indigo]
static_routes="lan"
route_lan="-net 10/8 10.0.x.254" #где x - номер вашей подсети
[/color]
Видимо это происходит из-за ошибки добавления постоянного маршрута.union# ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes
92 bytes from my-gw.etsplus.net (10.0.32.254): Destination Port Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 5400 0332 0 0000 3f 01 ac56 10.0.32.100 213.180.204.8
92 bytes from my-gw.etsplus.net (10.0.32.254): Destination Port Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 5400 0338 0 0000 3f 01 ac50 10.0.32.100 213.180.204.8
92 bytes from my-gw.etsplus.net (10.0.32.254): Destination Port Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 5400 0340 0 0000 3f 01 ac48 10.0.32.100 213.180.204.8
Пробовал добавлять как через rc.conf так и строкой в rc.localWarning: Add route failed: 0.0.0.0/0 already exists
именно. Я как раз ip получаю динамически. Спасибо, попробую.Сан сказав(ла):Если все соблюдено, как описано у меня, то, возможно, причина в файле /etc/rc.conf, строка ifconfig_eth0="DHCP".
Решение:
Прописание IP-адреса статически.
Причина:
dhclient стартует позже ppp, поэтому перезаписывает таблицу маршрутизации (default gateway)!
send host-name "host.ktv"; #указываем свой хост
request subnet-mask, broadcast-address; #указываем какие параметры получать по dhcp
option domain-name-servers 127.0.0.1; #указываем адрес днс
Тоже вариант (без запроса роутеров),)vmart сказав(ла):Проблему решил с помощью добавления в файл dhclient.conf некоторых опций:
Sep 8 21:46:32 gangster ppp[1157]: Phase: Using interface: tun0
Sep 8 21:46:32 gangster ppp[1157]: Phase: deflink: Created in closed state
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set cd 5
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set dial
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set login
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set authname malor
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set authkey ********
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set redial 30 999
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set reconnect 30 999
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: disable ipv6cp
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: enable lqr
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: accept lqr
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: set timeout 0
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: disable PAP deflate pred1 protocomp dns
Sep 8 21:46:32 gangster ppp[1157]: tun0: Command: pppoe-out: deny PAP deflate pred1 protocomp dns
Sep 8 21:46:32 gangster ppp[1160]: tun0: Phase: PPP Started (ddial mode).
Sep 8 21:46:32 gangster ppp[1160]: tun0: Phase: bundle: Establish
Sep 8 21:46:32 gangster ppp[1160]: tun0: Phase: deflink: closed -> opening
Sep 8 21:46:33 gangster ppp[1160]: tun0: Phase: deflink: Connected!
Sep 8 21:46:33 gangster ppp[1160]: tun0: Phase: deflink: opening -> dial
Sep 8 21:46:33 gangster ppp[1160]: tun0: Phase: deflink: dial -> carrier
Sep 8 21:46:33 gangster ppp[1160]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "sttkgw.infy.ru")
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: deflink: carrier -> login
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: deflink: login -> lcp
Sep 8 21:46:35 gangster ppp[1160]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: bundle: Authenticate
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: Chap Input: CHALLENGE (28 bytes)
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: Chap Output: RESPONSE (malor)
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: Chap Input: SUCCESS (Welcome)
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: deflink: lcp -> open
Sep 8 21:46:35 gangster ppp[1160]: tun0: Phase: bundle: Network
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: FSM: Using "deflink" as a transport
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: State change Initial --> Closed
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: LayerStart.
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 127.0.0.1
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: RecvConfigReq(32) state = Req-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 83.69.21.1
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: COMPPROTO[6] 16 VJ slots without slot compression
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: SendConfigAck(32) state = Req-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 83.69.21.1
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: COMPPROTO[6] 16 VJ slots without slot compression
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: RecvConfigNak(1) state = Ack-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 83.69.21.68
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] changing address: 127.0.0.1 --> 83.69.21.68
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 83.69.21.68
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: RecvConfigAck(2) state = Ack-Sent
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: IPADDR[6] 83.69.21.68
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: deflink: LayerUp.
Sep 8 21:46:35 gangster ppp[1160]: tun0: IPCP: myaddr 83.69.21.68 hisaddr = 83.69.21.1
[b]#netstat -nr[/b]
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
83.69.21.1 83.69.21.68 UH 0 4 tun0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.1 link#2 UC 0 0 vr0
192.168.1.2 00:60:94:a5:80:67 UHLW 1 34 vr0 610
192.168.1.10 4c:00:10:50:2b:e0 UHLW 1 3 vr0 891
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#4 UHL lo0
ff01:4::/32 fe80::1%lo0 UC lo0
ff01:5::/32 link#5 UC tun0
ff02::%lo0/32 fe80::1%lo0 UC lo0
ff02::%tun0/32 link#5 UC tun0
[b]#ifconfig[/b]
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=8<VLAN_MTU>
ether 00:e0:4c:00:26:72
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.1.160 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:30:18:55:11:2e
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1460
inet 83.69.21.68 --> 83.69.21.1 netmask 0xffffffff
Opened by PID 1160
default:
pppoe-out:
# set device PPPoE:fxp0:inetsrv
set device PPPoE:vr0:inetsrv
set log Phase Chat IPCP tun command
set cd 5
set dial
set login
set authname malor
set authkey moi_parol
set redial 30 999
set reconnect 30 999
disable ipv6cp
enable lqr
accept lqr
set timeout 0
disable PAP deflate pred1 protocomp dns
deny PAP deflate pred1 protocomp dns
6. In most cases, your ISP will also be your default router. If this
is the case, add the line
add default HISADDR
to /etc/ppp/ppp.conf (or to /etc/ppp/ppp.linkup for setups that do
not use -auto mode).
This tells ppp to add a default route to whatever the peer address
is (10.0.0.2 in this example). This route is `sticky', meaning that
should the value of HISADDR change, the route will be updated
accordingly.