Проблема не соединяется ADSL модему Который сидит той же подсети для с

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
Проблема, не соединяется к ADSL модему. Который сидит в той же подсети для сетевой карты rl0 и имеет адрес 192.168.1.1 (модем сидит через 2 Wi-Fi точки, которые в режиме моста, т.е. они прозрачны). Пробовал и ppp и mpd4 (конфиги и логи ниже), нчиего. Хотя 1 раз Mpd соединился, конфиг не менял.
ifconfig:
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:16:76:57:ed:4d
inet 192.168.1.22 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:04:61:71:fc:e3
inet 192.168.112.251 netmask 0xffffff00 broadcast 192.168.112.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
Роуты:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
127.0.0.1 127.0.0.1 UH 0 9315 lo0
192.168.1.0/24 link#1 UC 0 0 rl0
192.168.1.1 00:17:9a:10:5b:67 UHLW 1 12 rl0 35
192.168.112.0/24 link#2 UC 0 0 vr0
192.168.112.6 00:1a:4d:8f:85:f5 UHLW 1 11390 vr0 1052
192.168.112.251 00:04:61:71:fc:e3 UHLW 1 1046 lo0
192.168.112.254 00:16:76:57:ed:4d UHLW 1 2400 vr0 1131
Конфиг ppp
default:
set log all
mtc:
set device PPPoE:rl0
set authname asso1459
set authkey 123asso1459
set dial
set login
add default HISADDR
set redial 0 0
set timeout 0
set reconnect 3 0
enable lqr
set lqrperiod 5
Запускаю ppp -ddial mtc
Лог:
Jul 14 17:56:03 serv2 ppp[26499]: Phase: Using interface: tun0
Jul 14 17:56:03 serv2 ppp[26499]: Phase: deflink: Created in closed state
Jul 14 17:56:03 serv2 ppp[26499]: tun0: ID0: 0x28389e78 = fopen("/etc/ppp/ppp.conf", "r")
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Debug: ReadSystem: Checking mtc (/etc/ppp/ppp.conf).
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set device PPPoE:rl0
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set authname asso1459
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set authkey ********
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set dial
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set login
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: add default HISADDR
Jul 14 17:56:03 serv2 ppp[26499]: tun0: ID0: 10 = socket(17, 3, 0)
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set redial 0 0
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set timeout 0
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set reconnect 3 0
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: enable lqr
Jul 14 17:56:03 serv2 ppp[26499]: tun0: Command: mtc: set lqrperiod 5
Jul 14 17:56:03 serv2 ppp[26500]: tun0: ID0: 0x28389e78 = fopen("/var/run/tun0.pid", "w")
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: PPP Started (ddial mode).
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: bundle: Establish
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: deflink: closed -> opening
Jul 14 17:56:03 serv2 ppp[26500]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds)
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: List of netgraph node ``rl0:'' (id 1) hooks:
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Found orphans -> ethernet
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Connecting netgraph socket .:tun0 -> [9]::tun0
Jul 14 17:56:03 serv2 ppp[26500]: tun0: ID0: 2 = socket(2, 2, 0)
Jul 14 17:56:03 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbfde5c)
Jul 14 17:56:03 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbfde5c)
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Found the following interfaces:
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 1, name "rl0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 2, name "vr0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 3, name "plip0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 4, name "lo0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 5, name "pflog0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 6, name "pfsync0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Index 7, name "tun0"
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Timer: timer_Start: Inserting physical throughput timer[0x2840f068]
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: deflink: Connected!
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: deflink: opening -> dial
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Phase: deflink: dial -> carrier
Jul 14 17:56:03 serv2 ppp[26500]: tun0: Debug: Waiting for carrier
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Timer: Select returns -1
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Timer: ---- Begin of Timer Service List---
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Timer: physical throughput timer[0x2840f068]: freq = 1.00s, next = 0.00s, state = running
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Timer: ---- End of Timer Service List ---
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Timer: timer_Start: Inserting physical throughput timer[0x2840f068]
Jul 14 17:56:04 serv2 ppp[26500]: tun0: Debug: Waiting for carrier
Jul 14 17:56:05 serv2 ppp[26500]: tun0: Timer: Select returns -1
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Disconnected!
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: carrier -> hangup
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: deflink: Close
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 14 17:56:34 2008
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: hangup -> opening
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Timer: timer_Start: Inserting dial timer[0x2840dd44]
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Enter pause (0) for redialing.
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Timer: Select returns -1
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Chat: deflink: Redial timer expired.
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = NgMkSockNode("", &cs, &ds)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: List of netgraph node ``rl0:'' (id 1) hooks:
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Found orphans -> ethernet
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Connecting netgraph socket .:tun0 -> [9]::tun0
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 2 = socket(2, 2, 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbfde5c)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbfde5c)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Sending PPPOE_CONNECT to .:tun0
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Timer: timer_Start: Inserting physical throughput timer[0x2840f068]
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Connected!
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: opening -> dial
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: dial -> carrier
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Waiting for carrier
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Timer: Select returns -1
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: Signal 15, terminate.
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Disconnected!
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: carrier -> logout
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: logout -> hangup
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: logout -> hangup
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Disconnected!
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: deflink: Close
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: Connect time: 0 secs: 0 octets in, 0 octets out
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 14 17:56:39 2008
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: deflink: hangup -> closed
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: route_IfDelete (7)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Found ff01:7::/32 <AF_UNSPEC>
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: route_IfDelete: Skip it (pass 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Found ff02:7::/32 fe80:7::216:76ff:fe57:ed4d
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: route_IfDelete: Skip it (pass 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Found ff01:7::/32 <AF_UNSPEC>
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = socket(17, 3, 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 148 = write(0, data, 148)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: wrote 148: cmd = Delete, dst = ff01:7::/32, gateway = <none>
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Found ff02:7::/32 fe80:7::216:76ff:fe57:ed4d
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = socket(17, 3, 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 148 = write(0, data, 148)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: wrote 148: cmd = Delete, dst = ff02:7::/32, gateway = <none>
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = socket(2, 2, 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(0, 3223349521, 0xbfbfe9ec)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(0, 2149607696, 0xbfbfe9ec)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: bundle: Dead
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: DoLoop done.
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Phase: PPP Terminated (normal).
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: route_IfDelete (7)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = socket(2, 2, 0)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(0, 3223349521, 0xbfbfe64c)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = ioctl(0, 2149607696, 0xbfbfe64c)
Jul 14 17:56:39 serv2 ppp[26500]: tun0: Debug: Radius: radius_Destroy
Jul 14 17:56:39 serv2 ppp[26500]: tun0: ID0: 0 = unlink("/var/run/tun0.pid")
Конфиг mpd4: mpd.conf
startup:
default:
load optima
optima:
# log auth iface pptp
new -i ng0 optima optima
# set pppoe iface rl0
set iface enable tcpmssfix
set iface route default
set iface disable on-demand
set iface idle 0
set bundle disable multilink
set auth authname asso1459
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
set link mtu 1492
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set bundle disable noretry
set link max-redial 0
open
mpd.links
optima:
set link type pppoe
set pppoe iface rl0
set pppoe service "optima"
set pppoe disable incoming
set pppoe enable originate
Лог, который сыпется в консоль:
Multi-link PPP daemon for FreeBSD
process 26249 started, version 4.4.1 (root@serv2.akoval.com 17:08 11-Jul-2008)
Usage: set pppoe iface ifacename
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] using interface ng0
[optima] link: OPEN event
[optima] LCP: Open event
[optima] LCP: state change Initial --> Starting
[optima] LCP: LayerStart
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 1
[optima] LCP: Down event
[optima] pausing 5 seconds before open
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 2
[optima] LCP: Down event
[optima] pausing 5 seconds before open
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 3
[optima] LCP: Down event
[optima] pausing 6 seconds before open
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 4
[optima] LCP: Down event
[optima] pausing 5 seconds before open
[optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 5
[optima] LCP: Down event
[optima] pausing 6 seconds before open
lo;; 26154
[optima] CONSOLE: root: lo;; 26154
Unknown command: 'lo;;'. Try "help".
[optima] [optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 6
[optima] LCP: Down event
[optima] pausing 6 seconds before open
[optima] [optima] PPPoE: Skipping link optima with undefined interface or session
[optima] PPPoE node for link is not initialized
[optima] link: DOWN event
[optima] link: reconnection attempt 7
[optima] LCP: Down event
[optima] pausing 6 seconds before open
[optima] IFACE: Close event
[optima] IPCP: Close event
process 26249 terminated
И ничего не соединяется. Что может быть?