root писал(а):ну, а почему бы и нет, нуна тока поморочится с роутингом при подключении второго и все должно работать.
что конкретно у тя не получается ? установить соединение ? получить IP-адрес ? и т.д.
опиши подробнее свой вопрос
не получается поднять линки одновременно, да и что делать в роутингом тоже до конца не понятно.
mpd.conf
- Код: Выделить всё
default:
load pppoe_client
load pppoe_client1
pppoe_client:
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 enable multilink
set link action bundle B1
set auth authname login
set auth password pasw
set link max-redial 0
set link mtu 1460
set link keep-alive 10 60
set pppoe iface nfe0
set pppoe service ""
open
pppoe_client1:
create bundle static B2
# set iface route default
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
create link static L2 pppoe
set link enable multilink
set link action bundle B2
set auth authname login2
set auth password pasw2
set link max-redial 0
set link mtu 1460
set link keep-alive 10 60
set pppoe iface nfe0
set pppoe service ""
open
подымается 2 линка (при условии что перед рестартом сделать route default delete) но поочередно падают и опять подымаются вот лог:
- Код: Выделить всё
Jan 27 12:14:27 batmen mpd: [B1] IPCP: Open event
Jan 27 12:14:27 batmen mpd: [B1] IPCP: state change Initial --> Starting
Jan 27 12:14:27 batmen mpd: [B1] IPCP: LayerStart
Jan 27 12:14:27 batmen mpd: [B1] IPCP: Up event
Jan 27 12:14:27 batmen mpd: [B1] IPCP: state change Starting --> Req-Sent
Jan 27 12:14:27 batmen mpd: [B1] IPCP: SendConfigReq #5
Jan 27 12:14:27 batmen mpd: [B1] IPADDR 0.0.0.0
Jan 27 12:14:27 batmen mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jan 27 12:14:27 batmen mpd: [B1] IPCP: rec'd Configure Request #1 (Req-Sent)
Jan 27 12:14:27 batmen mpd: [B1] IPADDR ххх.ххх.ххх.х
Jan 27 12:14:27 batmen mpd: [B1] ххх.ххх.ххх.х is OK
Jan 27 12:14:27 batmen mpd: [B1] IPCP: SendConfigAck #1
Jan 27 12:14:27 batmen mpd: [B1] IPADDR ххх.ххх.ххх.ххх
Jan 27 12:14:27 batmen mpd: [B1] IPCP: state change Req-Sent --> Ack-Sent
Jan 27 12:14:27 batmen mpd: [L1] rec'd unexpected protocol CCP, rejecting
Jan 27 12:14:27 batmen mpd: [B1] IPCP: rec'd Configure Reject #5 (Ack-Sent)
Jan 27 12:14:27 batmen mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jan 27 12:14:27 batmen mpd: [B1] IPCP: SendConfigReq #6
Jan 27 12:14:27 batmen mpd: [B1] IPADDR 0.0.0.0
Jan 27 12:14:27 batmen mpd: [B1] IPCP: rec'd Configure Nak #6 (Ack-Sent)
Jan 27 12:14:27 batmen mpd: [B1] IPADDR ххх.ххх.ххх.хх
Jan 27 12:14:27 batmen mpd: [B1] ххх.ххх.ххх.хх is OK
Jan 27 12:14:27 batmen mpd: [B1] IPCP: SendConfigReq #7
Jan 27 12:14:27 batmen mpd: [B1] IPADDR ххх.ххх.ххх.хх
Jan 27 12:14:27 batmen mpd: [B1] IPCP: rec'd Configure Ack #7 (Ack-Sent)
Jan 27 12:14:27 batmen mpd: [B1] IPADDR ххх.ххх.ххх.ххх
Jan 27 12:14:27 batmen mpd: [B1] IPCP: state change Ack-Sent --> Opened
Jan 27 12:14:27 batmen mpd: [B1] IPCP: LayerUp
Jan 27 12:14:27 batmen mpd: [B1] ххх.ххх.ххх.хх -> ххх.ххх.ххх.х
Jan 27 12:14:27 batmen mpd: [B1] IFACE: Up event
Jan 27 12:14:52 batmen mpd: [L2] LCP: no reply to 1 echo request(s)
Jan 27 12:15:02 batmen mpd: [L2] LCP: no reply to 2 echo request(s)
Jan 27 12:15:12 batmen mpd: [L2] LCP: no reply to 3 echo request(s)
Jan 27 12:15:22 batmen mpd: [L2] LCP: no reply to 4 echo request(s)
Jan 27 12:15:32 batmen mpd: [L2] LCP: no reply to 5 echo request(s)
Jan 27 12:15:32 batmen mpd: [L2] LCP: peer not responding to echo requests
Jan 27 12:15:32 batmen mpd: [L2] LCP: state change Opened --> Stopping
Jan 27 12:15:32 batmen mpd: [L2] Link: Leave bundle "B2"
Jan 27 12:15:32 batmen mpd: [B2] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Jan 27 12:15:32 batmen mpd: [B2] IPCP: Close event
Jan 27 12:15:32 batmen mpd: [B2] IPCP: state change Opened --> Closing
Jan 27 12:15:32 batmen mpd: [B2] IPCP: SendTerminateReq #8
Jan 27 12:15:32 batmen mpd: [B2] IPCP: LayerDown
Jan 27 12:15:32 batmen mpd: [B2] IFACE: Down event
Jan 27 12:15:32 batmen mpd: [B2] IPCP: Down event
Jan 27 12:15:32 batmen mpd: [B2] IPCP: LayerFinish
Jan 27 12:15:32 batmen mpd: [B2] Bundle: No NCPs left. Closing links...
Jan 27 12:15:32 batmen mpd: [B2] IPCP: state change Closing --> Initial
Jan 27 12:15:32 batmen mpd: [L2] LCP: SendTerminateReq #7
Jan 27 12:15:32 batmen mpd: [L2] LCP: LayerDown
Jan 27 12:15:34 batmen mpd: [L2] LCP: SendTerminateReq #8
Jan 27 12:15:36 batmen mpd: [L2] LCP: state change Stopping --> Stopped
Jan 27 12:15:36 batmen mpd: [L2] LCP: LayerFinish
Jan 27 12:15:36 batmen mpd: [L2] PPPoE: connection closed
Jan 27 12:15:36 batmen mpd: [L2] Link: DOWN event
Jan 27 12:15:36 batmen mpd: [L2] LCP: Down event
Jan 27 12:15:36 batmen mpd: [L2] LCP: state change Stopped --> Starting
Jan 27 12:15:36 batmen mpd: [L2] LCP: LayerStart
Jan 27 12:15:36 batmen mpd: [L2] Link: reconnection attempt 1 in 1 seconds
Jan 27 12:15:37 batmen mpd: [L2] Link: reconnection attempt 1
Jan 27 12:15:37 batmen mpd: [L2] PPPoE: Connecting to ''
Jan 27 12:15:37 batmen mpd: PPPoE: rec'd ACNAME "mt-duby"
Jan 27 12:15:38 batmen mpd: [L2] PPPoE: connection successful
Jan 27 12:15:38 batmen mpd: [L2] Link: UP event
Jan 27 12:15:38 batmen mpd: [L2] LCP: Up event
Jan 27 12:15:38 batmen mpd: [L2] LCP: state change Starting --> Req-Sent
Jan 27 12:15:38 batmen mpd: [L2] LCP: SendConfigReq #9
Jan 27 12:15:38 batmen mpd: [L2] PROTOCOMP
Jan 27 12:15:38 batmen mpd: [L2] MRU 1492
Jan 27 12:15:38 batmen mpd: [L2] MAGICNUM ec7aa844
Jan 27 12:15:38 batmen mpd: [L2] MP MRRU 2048
Jan 27 12:15:38 batmen mpd: [L2] MP SHORTSEQ
Jan 27 12:15:38 batmen mpd: [L2] ENDPOINTDISC [802.1] 00 04 61 51 77 ff
Jan 27 12:15:38 batmen mpd: [L2] LCP: rec'd Configure Request #1 (Req-Sent)
Jan 27 12:15:38 batmen mpd: [L2] AUTHPROTO CHAP MSOFTv2
Jan 27 12:15:38 batmen mpd: [L2] MRU 1480
Jan 27 12:15:38 batmen mpd: [L2] MAGICNUM 2f326795
Jan 27 12:15:38 batmen mpd: [L2] LCP: SendConfigAck #1
Jan 27 12:15:38 batmen mpd: [L2] AUTHPROTO CHAP MSOFTv2
Jan 27 12:15:38 batmen mpd: [L2] MRU 1480
Jan 27 12:15:38 batmen mpd: [L2] MAGICNUM 2f326795
Jan 27 12:15:38 batmen mpd: [L2] LCP: state change Req-Sent --> Ack-Sent
Jan 27 12:15:38 batmen mpd: [L2] LCP: rec'd Configure Reject #9 (Ack-Sent)
Jan 27 12:15:38 batmen mpd: [L2] PROTOCOMP
Jan 27 12:15:38 batmen mpd: [L2] MP MRRU 2048
Jan 27 12:15:38 batmen mpd: [L2] ENDPOINTDISC [802.1] 00 04 61 51 77 ff
Jan 27 12:15:38 batmen mpd: [L2] MP SHORTSEQ
Jan 27 12:15:38 batmen mpd: [L2] LCP: SendConfigReq #10
Jan 27 12:15:38 batmen mpd: [L2] MRU 1492
Jan 27 12:15:38 batmen mpd: [L2] MAGICNUM ec7aa844
Jan 27 12:15:38 batmen mpd: [L2] LCP: rec'd Configure Ack #10 (Ack-Sent)
Jan 27 12:15:38 batmen mpd: [L2] MRU 1492
Jan 27 12:15:38 batmen mpd: [L2] MAGICNUM ec7aa844
Jan 27 12:15:38 batmen mpd: [L2] LCP: state change Ack-Sent --> Opened
Jan 27 12:15:38 batmen mpd: [L2] LCP: auth: peer wants CHAP, I want nothing
Jan 27 12:15:38 batmen mpd: [L2] LCP: LayerUp
Jan 27 12:15:38 batmen mpd: [L2] CHAP: rec'd CHALLENGE #1 len: 28
Jan 27 12:15:38 batmen mpd: [L2] Name: "mt-duby"
Jan 27 12:15:38 batmen mpd: [L2] CHAP: Using authname "lanoser"
Jan 27 12:15:38 batmen mpd: [L2] CHAP: sending RESPONSE #1 len: 61
Jan 27 12:15:38 batmen mpd: [L2] CHAP: rec'd SUCCESS #1 len: 46
Jan 27 12:15:38 batmen mpd: [L2] MESG: S=B3651205377E6D78122BB50A445C64C0541FF7C1
Jan 27 12:15:38 batmen mpd: [L2] LCP: authorization successful
Jan 27 12:15:38 batmen mpd: [L2] Link: Matched action 'bundle "B2" ""'
Jan 27 12:15:38 batmen mpd: [L2] Link: Join bundle "B2"
Jan 27 12:15:38 batmen mpd: [B2] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Jan 27 12:15:38 batmen mpd: [B2] IPCP: Open event
Jan 27 12:15:38 batmen mpd: [B2] IPCP: state change Initial --> Starting
Jan 27 12:15:38 batmen mpd: [B2] IPCP: LayerStart
Jan 27 12:15:38 batmen mpd: [B2] IPCP: Up event
Jan 27 12:15:38 batmen mpd: [B2] IPCP: state change Starting --> Req-Sent
Jan 27 12:15:38 batmen mpd: [B2] IPCP: SendConfigReq #9
Jan 27 12:15:38 batmen mpd: [B2] IPADDR 0.0.0.0
Jan 27 12:15:38 batmen mpd: [B2] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jan 27 12:15:38 batmen mpd: [B2] IPCP: rec'd Configure Request #1 (Req-Sent)
Jan 27 12:15:38 batmen mpd: [B2] IPADDR ххх.ххх.ххх.х
Jan 27 12:15:38 batmen mpd: [B2] ххх.ххх.ххх.х is OK
Jan 27 12:15:38 batmen mpd: [B2] IPCP: SendConfigAck #1
Jan 27 12:15:38 batmen mpd: [B2] IPADDR ххх.ххх.ххх.х
Jan 27 12:15:38 batmen mpd: [B2] IPCP: state change Req-Sent --> Ack-Sent
Jan 27 12:15:38 batmen mpd: [L2] rec'd unexpected protocol CCP, rejecting
Jan 27 12:15:38 batmen mpd: [B2] IPCP: rec'd Configure Reject #9 (Ack-Sent)
Jan 27 12:15:38 batmen mpd: [B2] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Jan 27 12:15:38 batmen mpd: [B2] IPCP: SendConfigReq #10
Jan 27 12:15:38 batmen mpd: [B2] IPADDR 0.0.0.0
Jan 27 12:15:38 batmen mpd: [B2] IPCP: rec'd Configure Nak #10 (Ack-Sent)
Jan 27 12:15:38 batmen mpd: [B2] IPADDR ххх.ххх.ххх.хх
Jan 27 12:15:38 batmen mpd: [B2] ххх.ххх.ххх.хх is OK
Jan 27 12:15:38 batmen mpd: [B2] IPCP: SendConfigReq #11
Jan 27 12:15:38 batmen mpd: [B2] IPADDR ххх.ххх.ххх.хх
Jan 27 12:15:38 batmen mpd: [B2] IPCP: rec'd Configure Ack #11 (Ack-Sent)
Jan 27 12:15:38 batmen mpd: [B2] IPADDR ххх.ххх.ххх.хх
Jan 27 12:15:38 batmen mpd: [B2] IPCP: state change Ack-Sent --> Opened
Jan 27 12:15:38 batmen mpd: [B2] IPCP: LayerUp
Jan 27 12:15:38 batmen mpd: [B2] ххх.ххх.ххх.хх -> ххх.ххх.ххх.х
Jan 27 12:15:38 batmen mpd: [B2] IFACE: Up event
Jan 27 12:16:07 batmen mpd: [L1] LCP: no reply to 1 echo request(s)
Jan 27 12:16:17 batmen mpd: [L1] LCP: no reply to 2 echo request(s)
Jan 27 12:16:27 batmen mpd: [L1] LCP: no reply to 3 echo request(s)
Jan 27 12:16:37 batmen mpd: [L1] LCP: no reply to 4 echo request(s)
Jan 27 12:16:47 batmen mpd: [L1] LCP: no reply to 5 echo request(s)
Jan 27 12:16:47 batmen mpd: [L1] LCP: peer not responding to echo requests
Jan 27 12:16:47 batmen mpd: [L1] LCP: state change Opened --> Stopping
Jan 27 12:16:47 batmen mpd: [L1] Link: Leave bundle "B1"
Jan 27 12:16:47 batmen mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Jan 27 12:16:47 batmen mpd: [B1] IPCP: Close event
Jan 27 12:16:47 batmen mpd: [B1] IPCP: state change Opened --> Closing
Jan 27 12:16:47 batmen mpd: [B1] IPCP: SendTerminateReq #8
Jan 27 12:16:47 batmen mpd: [B1] IPCP: LayerDown
Jan 27 12:16:47 batmen mpd: [B1] IFACE: Down event
Jan 27 12:16:47 batmen mpd: [B1] IPCP: Down event
Jan 27 12:16:47 batmen mpd: [B1] IPCP: LayerFinish
Jan 27 12:16:47 batmen mpd: [B1] Bundle: No NCPs left. Closing links...
Jan 27 12:16:47 batmen mpd: [B1] IPCP: state change Closing --> Initial
Jan 27 12:16:47 batmen mpd: [L1] LCP: SendTerminateReq #17
Jan 27 12:16:47 batmen mpd: [L1] LCP: LayerDown
Jan 27 12:16:49 batmen mpd: [L1] LCP: SendTerminateReq #18
Jan 27 12:16:51 batmen mpd: [L1] LCP: state change Stopping --> Stopped
я так понимаю все из-за маршрута по умолчанию, он для обоих получается одинаковым, одни говорят должно работать при Source routing+разрулить фаером, другие говорят не будет работать, задача канечно специфическая, но уже просто интересно найти ответ в конце концов, в винде кстати подымается 2 линка без проблем.., вот какая картина во время подымания, и падания линков:
- Код: Выделить всё
(10:19:43)</> #ifconfig
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:04:61:51:77:ff
inet 192.168.1.143 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33200
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 194.хх.ххх.хх --> 192.168.101.1 netmask 0xffffffff
ng1: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1460
inet 194.хх.ххх.хх --> 192.168.101.1 netmask 0xffffffff
(10:20:20)</> #ping meta.ua
ping: cannot resolve meta.ua: Host name lookup failure
(10:20:25)</> #netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.101.1 UGS 0 5 ng0
127.0.0.1 link#3 UH 0 457036 lo0
192.168.1.0/24 link#1 U 2 113245039 nfe0
192.168.1.143 link#1 UHS 0 0 lo0
192.168.101.1 link#6 UH 0 0 ng0 =>
192.168.101.1 link#7 UH 0 0 ng1
194.44.101.44 link#6 UHS 0 0 lo0
194.44.101.60 link#7 UHS 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%lo0/64 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff01:3::/32 fe80::1%lo0 U lo0
ff02::%lo0/32 fe80::1%lo0 U lo0
(10:20:29)</> #ping meta.ua
ping: cannot resolve meta.ua: Host name lookup failure
(10:20:42)</> #
маршрут default 192.168.101.1 UGS 0 5 ng0 - то появляется то исчезает, хотя в конфиге опции добавления маршрута нет.