Linux rp-pppoe plugin re-connect problem - PPP

This is a discussion on Linux rp-pppoe plugin re-connect problem - PPP ; Hi All, I am facing a problem in re-connecting the pppoe session in my target. When the link goes down inorder to make ppp reconnect i have enabled the "persist" option. I'm gettting the error "write: Bad file descriptor (9)". ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Linux rp-pppoe plugin re-connect problem

  1. Linux rp-pppoe plugin re-connect problem

    Hi All,

    I am facing a problem in re-connecting the pppoe session in my target.
    When the link goes down inorder to make ppp reconnect i have enabled
    the "persist" option. I'm gettting the error "write: Bad file
    descriptor (9)". The re-connect happens successfuly sometimes. And
    eventhough i have specified the holdoff as 60, the re-connection
    happens around 2 hours after the connection goes down..Will appreciate
    your inputs on this.

    Here is my PPP options
    ======================
    asyncmap 0
    debug #PPPD will output connection information
    defaultroute #This interface will be a default gateway.
    nodeflate #Do not use compression
    nobsdcomp #Do not use bsd compression
    noccp #Disable CCP (Compression Control Protocol)
    noaccomp #Disable Address/Control compression
    nopcomp #Disable protocol field compres.
    novj #Disable Van Jacobson TCP/IP header compres.
    novjccomp #Disable the connection-ID compression
    nopredictor1 #Do not accept or agree to Predictor-1 compres.
    name new_miniv_1
    plugin rp-pppoe.so
    persist #re-open connection if ppp is down
    holdoff 60
    lcp-echo-interval 20
    lcp-echo-failure 15


    __________________________________________________ _________
    <31>Jan 2 01:59:57 pppd[1490]: PADS: Service-Name: ''

    <30>Jan 2 01:59:57 pppd[1490]: PPP session is 531

    <31>Jan 2 01:59:57 pppd[1490]: using channel 21

    <30>Jan 2 01:59:57 pppd[1490]: Using interface ppp0

    <29>Jan 2 01:59:57 pppd[1490]: Connect: ppp0 <--> tap0

    <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MTU to 1500

    <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MRU to 1500

    <31>Jan 2 01:59:57 pppd[1490]: sent [LCP ConfReq id=0xc 0x4cdbe8b4>]

    <29>Jan 2 01:59:57 pppd[1490]: Connection terminated.

    <31>Jan 2 02:00:00 pppd[1490]: sent [LCP ConfReq id=0xc 0x4cdbe8b4>]

    <27>Jan 2 02:00:00 pppd[1490]: write: Bad file descriptor (9)

    <31>Jan 2 02:00:03 pppd[1490]: sent [LCP ConfReq id=0xc 0x4cdbe8b4>]

    <27>Jan 2 02:00:03 pppd[1490]: write: Bad file descriptor (9)

    <31>Jan 2 02:00:06 pppd[1490]: sent [LCP ConfReq id=0xc 0x4cdbe8b4>]

    <27>Jan 2 02:00:06 pppd[1490]: write: Bad file descriptor (9)


  2. Re: Linux rp-pppoe plugin re-connect problem

    I think there is some problem with the timers. The problem occurs
    whenever there is a LCP Term from the peer for the pppoe connection and
    PPPoe client trying to re-establish. The pppoe negotiation is
    successful, but the ppp connection is getting terminated. Appreciate
    any help on this

    <30>Jan 1 00:08:02 pppd[75]: LCP terminated by peer (User request)
    <30>Jan 1 00:08:02 pppd[75]: Connect time 0.5 minutes.
    <30>Jan 1 00:08:02 pppd[75]: Sent 0 bytes, received 0 bytes.
    <31>Jan 1 00:08:02 pppd[75]: Script /etc/ppp/ip-down started (pid 89)
    <28>Jan 1 00:08:02 pppd[75]: Couldn't increase MTU to 1500
    <28>Jan 1 00:08:02 pppd[75]: Couldn't increase MRU to 1500
    <31>Jan 1 00:08:02 pppd[75]: sent [LCP TermAck id=0x2]
    <31>Jan 1 00:08:02 pppd[75]: Script /etc/ppp/ip-down finished (pid
    89), status = 0x0
    <29>Jan 1 00:08:05 pppd[75]: Connection terminated.
    <31>Jan 1 00:08:11 pppd[75]: PADS: Service-Name: ''
    <30>Jan 1 00:08:11 pppd[75]: PPP session is 1
    <31>Jan 1 00:08:11 pppd[75]: using channel 2
    <30>Jan 1 00:08:11 pppd[75]: Using interface ppp0
    <29>Jan 1 00:08:11 pppd[75]: Connect: ppp0 <--> tap0
    <28>Jan 1 00:08:11 pppd[75]: Couldn't increase MTU to 1500
    <28>Jan 1 00:08:11 pppd[75]: Couldn't increase MRU to 1500
    <31>Jan 1 00:08:11 pppd[75]: sent [LCP ConfReq id=0x2
    ]
    <29>Jan 1 00:08:11 pppd[75]: Modem hangup
    <29>Jan 1 00:08:41 pppd[75]: Modem hangup
    <29>Jan 1 00:08:41 pppd[75]: Connection terminated.


    Thanks
    Vanitha
    vanitha@agilis.st.com.sg wrote:
    > Hi All,
    >
    > I am facing a problem in re-connecting the pppoe session in my target.
    > When the link goes down inorder to make ppp reconnect i have enabled
    > the "persist" option. I'm gettting the error "write: Bad file
    > descriptor (9)". The re-connect happens successfuly sometimes. And
    > eventhough i have specified the holdoff as 60, the re-connection
    > happens around 2 hours after the connection goes down..Will appreciate
    > your inputs on this.
    >
    > Here is my PPP options
    > ======================
    > asyncmap 0
    > debug #PPPD will output connection information
    > defaultroute #This interface will be a default gateway.
    > nodeflate #Do not use compression
    > nobsdcomp #Do not use bsd compression
    > noccp #Disable CCP (Compression Control Protocol)
    > noaccomp #Disable Address/Control compression
    > nopcomp #Disable protocol field compres.
    > novj #Disable Van Jacobson TCP/IP header compres.
    > novjccomp #Disable the connection-ID compression
    > nopredictor1 #Do not accept or agree to Predictor-1 compres.
    > name new_miniv_1
    > plugin rp-pppoe.so
    > persist #re-open connection if ppp is down
    > holdoff 60
    > lcp-echo-interval 20
    > lcp-echo-failure 15
    >
    >
    > __________________________________________________ _________
    > <31>Jan 2 01:59:57 pppd[1490]: PADS: Service-Name: ''
    >
    > <30>Jan 2 01:59:57 pppd[1490]: PPP session is 531
    >
    > <31>Jan 2 01:59:57 pppd[1490]: using channel 21
    >
    > <30>Jan 2 01:59:57 pppd[1490]: Using interface ppp0
    >
    > <29>Jan 2 01:59:57 pppd[1490]: Connect: ppp0 <--> tap0
    >
    > <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MTU to 1500
    >
    > <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MRU to 1500
    >
    > <31>Jan 2 01:59:57 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <29>Jan 2 01:59:57 pppd[1490]: Connection terminated.
    >
    > <31>Jan 2 02:00:00 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:00 pppd[1490]: write: Bad file descriptor (9)
    >
    > <31>Jan 2 02:00:03 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:03 pppd[1490]: write: Bad file descriptor (9)
    >
    > <31>Jan 2 02:00:06 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:06 pppd[1490]: write: Bad file descriptor (9)



  3. Re: Linux rp-pppoe plugin re-connect problem

    I think there is some problem with the timers. The problem occurs
    whenever there is a LCP Term from the peer for the pppoe connection and
    PPPoe client trying to re-establish. The pppoe negotiation is
    successful, but the ppp connection is getting terminated. Appreciate
    any help on this

    <30>Jan 1 00:08:02 pppd[75]: LCP terminated by peer (User request)
    <30>Jan 1 00:08:02 pppd[75]: Connect time 0.5 minutes.
    <30>Jan 1 00:08:02 pppd[75]: Sent 0 bytes, received 0 bytes.
    <31>Jan 1 00:08:02 pppd[75]: Script /etc/ppp/ip-down started (pid 89)
    <28>Jan 1 00:08:02 pppd[75]: Couldn't increase MTU to 1500
    <28>Jan 1 00:08:02 pppd[75]: Couldn't increase MRU to 1500
    <31>Jan 1 00:08:02 pppd[75]: sent [LCP TermAck id=0x2]
    <31>Jan 1 00:08:02 pppd[75]: Script /etc/ppp/ip-down finished (pid
    89), status = 0x0
    <29>Jan 1 00:08:05 pppd[75]: Connection terminated.
    <31>Jan 1 00:08:11 pppd[75]: PADS: Service-Name: ''
    <30>Jan 1 00:08:11 pppd[75]: PPP session is 1
    <31>Jan 1 00:08:11 pppd[75]: using channel 2
    <30>Jan 1 00:08:11 pppd[75]: Using interface ppp0
    <29>Jan 1 00:08:11 pppd[75]: Connect: ppp0 <--> tap0
    <28>Jan 1 00:08:11 pppd[75]: Couldn't increase MTU to 1500
    <28>Jan 1 00:08:11 pppd[75]: Couldn't increase MRU to 1500
    <31>Jan 1 00:08:11 pppd[75]: sent [LCP ConfReq id=0x2
    ]
    <29>Jan 1 00:08:11 pppd[75]: Modem hangup
    <29>Jan 1 00:08:41 pppd[75]: Modem hangup
    <29>Jan 1 00:08:41 pppd[75]: Connection terminated.


    Thanks
    Vanitha
    vanitha@agilis.st.com.sg wrote:
    > Hi All,
    >
    > I am facing a problem in re-connecting the pppoe session in my target.
    > When the link goes down inorder to make ppp reconnect i have enabled
    > the "persist" option. I'm gettting the error "write: Bad file
    > descriptor (9)". The re-connect happens successfuly sometimes. And
    > eventhough i have specified the holdoff as 60, the re-connection
    > happens around 2 hours after the connection goes down..Will appreciate
    > your inputs on this.
    >
    > Here is my PPP options
    > ======================
    > asyncmap 0
    > debug #PPPD will output connection information
    > defaultroute #This interface will be a default gateway.
    > nodeflate #Do not use compression
    > nobsdcomp #Do not use bsd compression
    > noccp #Disable CCP (Compression Control Protocol)
    > noaccomp #Disable Address/Control compression
    > nopcomp #Disable protocol field compres.
    > novj #Disable Van Jacobson TCP/IP header compres.
    > novjccomp #Disable the connection-ID compression
    > nopredictor1 #Do not accept or agree to Predictor-1 compres.
    > name new_miniv_1
    > plugin rp-pppoe.so
    > persist #re-open connection if ppp is down
    > holdoff 60
    > lcp-echo-interval 20
    > lcp-echo-failure 15
    >
    >
    > __________________________________________________ _________
    > <31>Jan 2 01:59:57 pppd[1490]: PADS: Service-Name: ''
    >
    > <30>Jan 2 01:59:57 pppd[1490]: PPP session is 531
    >
    > <31>Jan 2 01:59:57 pppd[1490]: using channel 21
    >
    > <30>Jan 2 01:59:57 pppd[1490]: Using interface ppp0
    >
    > <29>Jan 2 01:59:57 pppd[1490]: Connect: ppp0 <--> tap0
    >
    > <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MTU to 1500
    >
    > <28>Jan 2 01:59:57 pppd[1490]: Couldn't increase MRU to 1500
    >
    > <31>Jan 2 01:59:57 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <29>Jan 2 01:59:57 pppd[1490]: Connection terminated.
    >
    > <31>Jan 2 02:00:00 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:00 pppd[1490]: write: Bad file descriptor (9)
    >
    > <31>Jan 2 02:00:03 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:03 pppd[1490]: write: Bad file descriptor (9)
    >
    > <31>Jan 2 02:00:06 pppd[1490]: sent [LCP ConfReq id=0xc > 0x4cdbe8b4>]
    >
    > <27>Jan 2 02:00:06 pppd[1490]: write: Bad file descriptor (9)



  4. Re: Linux rp-pppoe plugin re-connect problem

    vanitha@agilis.st.com.sg writes:
    > <31>Jan 1 00:08:11 pppd[75]: sent [LCP ConfReq id=0x2
    > ]
    > <29>Jan 1 00:08:11 pppd[75]: Modem hangup


    "Modem hangup" here means that the lower layer (PPPoE) went down.

    > > <31>Jan 2 02:00:00 pppd[1490]: sent [LCP ConfReq id=0xc > > 0x4cdbe8b4>]
    > >
    > > <27>Jan 2 02:00:00 pppd[1490]: write: Bad file descriptor (9)


    This also seems to mean that the lower layer has been disconnected.
    I'd start by investigating what's wrong with PPPoE.

    --
    James Carlson, KISS Network
    Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
    MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677

  5. Re: Linux rp-pppoe plugin re-connect problem

    I raised a bug request to the ppp.samba.org. And Paul has provided a
    fix for this to the cvs version of pppd. Now its working fine for me.

    Thanks


+ Reply to Thread