mpd 5.5
mpd.conf:
Код: Выделить всё
startup:
# configure mpd users
set user foo bar admin
set user foo1 bar1
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 0.0.0.0 5006
set web open
# set netflow peer 10.20.254.5 8818
# set netflow peer timeouts 60 120
#
# Default configuration is "dialup"
default:
load pppoe_client
pppoe_client:
#
# 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 iface up-script "/usr/local/etc/mpd5/up.sh"
# set iface enable netflow-in netflow-out
set iface enable tcpmssfix
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 blabla
set auth password blabla
set link max-redial 0
set link mtu 1492
set link keep-alive 10 60
set pppoe iface bge0
set pppoe service ""
open
Код: Выделить всё
Apr 29 19:01:11 router mpd: PPPoE: rec'd ACNAME "NAS1"
Apr 29 19:01:11 router mpd: [L1] PPPoE: connection successful
Apr 29 19:01:11 router mpd: [L1] Link: UP event
Apr 29 19:01:11 router mpd: [L1] LCP: Up event
Apr 29 19:01:11 router mpd: [L1] LCP: state change Starting --> Req-Sent
Apr 29 19:01:11 router mpd: [L1] LCP: SendConfigReq #1
Apr 29 19:01:11 router mpd: [L1] PROTOCOMP
Apr 29 19:01:11 router mpd: [L1] MRU 1492
Apr 29 19:01:11 router mpd: [L1] MAGICNUM fc8a0dde
Apr 29 19:01:11 router mpd: [L1] LCP: rec'd Configure Request #1 (Req-Sent)
Apr 29 19:01:11 router mpd: [L1] MRU 1492
Apr 29 19:01:11 router mpd: [L1] AUTHPROTO CHAP MD5
Apr 29 19:01:11 router mpd: [L1] MAGICNUM 8a2b7a88
Apr 29 19:01:11 router mpd: [L1] LCP: SendConfigAck #1
Apr 29 19:01:11 router mpd: [L1] MRU 1492
Apr 29 19:01:11 router mpd: [L1] AUTHPROTO CHAP MD5
Apr 29 19:01:11 router mpd: [L1] MAGICNUM 8a2b7a88
Apr 29 19:01:11 router mpd: [L1] LCP: state change Req-Sent --> Ack-Sent
Apr 29 19:01:11 router mpd: [L1] LCP: rec'd Configure Ack #1 (Ack-Sent)
Apr 29 19:01:11 router mpd: [L1] PROTOCOMP
Apr 29 19:01:11 router mpd: [L1] MRU 1492
Apr 29 19:01:11 router mpd: [L1] MAGICNUM fc8a0dde
Apr 29 19:01:11 router mpd: [L1] LCP: state change Ack-Sent --> Opened
Apr 29 19:01:11 router mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Apr 29 19:01:11 router mpd: [L1] LCP: LayerUp
Apr 29 19:01:11 router mpd: [L1] CHAP: rec'd CHALLENGE #1 len: 35
Apr 29 19:01:11 router mpd: [L1] Name: "sv-yar-bras-r1"
Apr 29 19:01:11 router mpd: [L1] CHAP: Using authname "blabla"
Apr 29 19:01:11 router mpd: [L1] CHAP: sending RESPONSE #1 len: 31
Apr 29 19:01:11 router mpd: [L1] CHAP: rec'd SUCCESS #1 len: 4
Apr 29 19:01:11 router mpd: [L1] LCP: authorization successful
Apr 29 19:01:11 router mpd: [L1] Link: Matched action 'bundle "B1" ""'
Apr 29 19:01:11 router mpd: [L1] Link: Join bundle "B1"
Apr 29 19:01:11 router mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Apr 29 19:01:11 router mpd: [B1] IPCP: Open event
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Initial --> Starting
Apr 29 19:01:11 router mpd: [B1] IPCP: LayerStart
Apr 29 19:01:11 router mpd: [B1] IPCP: Up event
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Starting --> Req-Sent
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #1
Apr 29 19:01:11 router mpd: [B1] IPADDR 0.0.0.0
Apr 29 19:01:11 router mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #2
Apr 29 19:01:11 router mpd: [B1] IPADDR 0.0.0.0
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Nak #2 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1] IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1] 188.168.48.53 is OK
Apr 29 19:01:11 router mpd: [B1] IPCP: SendConfigReq #3
Apr 29 19:01:11 router mpd: [B1] IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1] IPCP: rec'd Configure Ack #3 (Req-Sent)
Apr 29 19:01:11 router mpd: [B1] IPADDR 188.168.48.53
Apr 29 19:01:11 router mpd: [B1] IPCP: state change Req-Sent --> Ack-Rcvd
Apr 29 19:01:13 router mpd: [B1] IPCP: state change Ack-Rcvd --> Req-Sent
Apr 29 19:01:13 router mpd: [B1] IPCP: SendConfigReq #4
Apr 29 19:01:13 router mpd: [B1] IPADDR 188.168.48.53
Apr 29 19:01:13 router mpd: [B1] IPCP: rec'd Configure Ack #4 (Req-Sent)
Apr 29 19:01:13 router mpd: [B1] IPADDR 188.168.48.53
Apr 29 19:01:13 router mpd: [B1] IPCP: state change Req-Sent --> Ack-Rcvd
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Configure Request #2 (Ack-Rcvd)
Apr 29 19:01:14 router mpd: [B1] IPADDR 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] no IP address available for peer!
Apr 29 19:01:14 router mpd: [B1] NAKing with 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IPCP: SendConfigNak #2
Apr 29 19:01:14 router mpd: [B1] IPADDR 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Configure Request #3 (Ack-Rcvd)
Apr 29 19:01:14 router mpd: [B1] IPCP: SendConfigAck #3
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Ack-Rcvd --> Opened
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerUp
Apr 29 19:01:14 router mpd: [B1] 188.168.48.53 -> 0.0.0.0
Apr 29 19:01:14 router mpd: [B1] IFACE: Adding IPv4 address to ng0 failed: Destination address required
Apr 29 19:01:14 router mpd: [B1] IFACE: IfaceChangeAddr() error, closing IPCP
Apr 29 19:01:14 router mpd: [B1] IPCP: parameter negotiation failed
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Opened --> Stopping
Apr 29 19:01:14 router mpd: [B1] IPCP: SendTerminateReq #5
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerDown
Apr 29 19:01:14 router mpd: [B1] IFACE: Removing IPv4 address from ng0 failed: Can't assign requested address
Apr 29 19:01:14 router mpd: [B1] IPCP: rec'd Terminate Ack #5 (Stopping)
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Stopping --> Stopped
Apr 29 19:01:14 router mpd: [B1] IPCP: LayerFinish
Apr 29 19:01:14 router mpd: [B1] Bundle: No NCPs left. Closing links...
Apr 29 19:01:14 router mpd: [B1] Bundle: closing link "L1"...
Apr 29 19:01:14 router mpd: [L1] Link: CLOSE event
Apr 29 19:01:14 router mpd: [L1] LCP: Close event
Apr 29 19:01:14 router mpd: [L1] LCP: state change Opened --> Closing
Apr 29 19:01:14 router mpd: [L1] Link: Leave bundle "B1"
Apr 29 19:01:14 router mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Apr 29 19:01:14 router mpd: [B1] IPCP: Close event
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Stopped --> Closed
Apr 29 19:01:14 router mpd: [B1] IPCP: Down event
Apr 29 19:01:14 router mpd: [B1] IPCP: state change Closed --> Initial
Apr 29 19:01:14 router mpd: [L1] LCP: SendTerminateReq #2
Apr 29 19:01:14 router mpd: [L1] LCP: LayerDown
Apr 29 19:01:14 router mpd: [L1] LCP: rec'd Terminate Ack #2 (Closing)
Apr 29 19:01:14 router mpd: [L1] LCP: state change Closing --> Closed
Apr 29 19:01:14 router mpd: [L1] LCP: LayerFinish
Apr 29 19:01:14 router mpd: [L1] Link: DOWN event
Apr 29 19:01:14 router mpd: [L1] LCP: Down event
Apr 29 19:01:14 router mpd: [L1] LCP: state change Closed --> Initial
Код: Выделить всё
ng0: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
Звонил провайдеру, говорит перезапустите подключение, рестартю mpd, а толку нету =(
у меня этот провайдер в setfib1
Код: Выделить всё
# many routing
setfib1_enable="YES"
setfib1_defaultroute="217.150.42.97"