DNS Crash? - PPP

This is a discussion on DNS Crash? - PPP ; Hello, As of late I've been having this problem with my DSL over PPPoE. Here's what I'm getting in the logs: Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_CLOSE Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Device disconnected ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: DNS Crash?

  1. DNS Crash?

    Hello,

    As of late I've been having this problem with my DSL over PPPoE.
    Here's what I'm getting in the logs:

    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_CLOSE
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Device disconnected
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: open -> lcp
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Terminate
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> logout
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: logout -> hangup
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connect time:
    196469 secs: 306771962 octets in, 44945232 octets out
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: 273844 packets
    in, 223869 packets out
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: total 1790 bytes/sec,
    peak 413943 bytes/sec on Sun Oct 5 23:41:37 2003
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: hangup -> opening
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Establish
    Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Enter pause (3)
    for redialing.
    Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connected!
    Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: opening -> dial
    Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: dial -> carrier
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_ACNAME
    (hook "62011020042789-")
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SESSIONID
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SUCCESS
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: carrier -> login
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: login -> lcp
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: bundle: Authenticate
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: his = PAP, mine
    = none
    Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Pap Output:

    Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: Pap Input: SUCCESS ()
    Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> open
    Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: bundle: Network

    After this happened, I cannot look anything up on DNS. But, it appears
    that I have basic IP connectivity. The ifconfig utility shows that sis0
    is up (the ethernet DSL interface) and tun0 is up with an assigned IP
    address, peer IP address, and netmask. I restarted named, but I have
    the same trouble. I then started nslookup in interactive mode and
    selected my ISP's server (My ISP is SBC Communications) and tried to do
    a name lookup, and I got no response. The name that I did the lookup on
    was www.yahoo.com. I tried pinging the ISP's DNS server directly by IP
    adress, but I got 100% packet loss. I can ping the peer, but I cannot
    ping beyond the peer which would indicate some kind of connection
    problem. I ended up rebooting the machine and now everything is fine.
    What happened? I'm running FreeBSD 4.8-RELEASE-p13 if anyone is
    interested. I'm also running PPP version is 3.1 as well.


    *NOTE* This message is crossposted.
    --
    Daniel Rudy

    Remove nospam, invalid, and 0123456789 to reply.


  2. Re: DNS Crash?

    Daniel Rudy writes:

    ]Hello,

    ] As of late I've been having this problem with my DSL over PPPoE.
    ]Here's what I'm getting in the logs:

    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_CLOSE
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Device disconnected
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: open -> lcp
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Terminate
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> logout
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: logout -> hangup
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connect time:
    ]196469 secs: 306771962 octets in, 44945232 octets out
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: 273844 packets
    ]in, 223869 packets out
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: total 1790 bytes/sec,
    ]peak 413943 bytes/sec on Sun Oct 5 23:41:37 2003
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: hangup -> opening
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Establish
    ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Enter pause (3)
    ]for redialing.
    ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connected!
    ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: opening -> dial
    ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: dial -> carrier
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_ACNAME
    ](hook "62011020042789-")
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SESSIONID
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SUCCESS
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: carrier -> login
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: login -> lcp
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: bundle: Authenticate
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: his = PAP, mine
    ]= none
    ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Pap Output:
    ]
    ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: Pap Input: SUCCESS ()
    ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> open
    ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: bundle: Network

    ]After this happened, I cannot look anything up on DNS. But, it appears
    ]that I have basic IP connectivity. The ifconfig utility shows that sis0
    ]is up (the ethernet DSL interface) and tun0 is up with an assigned IP
    ]address, peer IP address, and netmask. I restarted named, but I have
    ]the same trouble. I then started nslookup in interactive mode and
    ]selected my ISP's server (My ISP is SBC Communications) and tried to do
    ]a name lookup, and I got no response. The name that I did the lookup on
    ]was www.yahoo.com. I tried pinging the ISP's DNS server directly by IP
    ]adress, but I got 100% packet loss. I can ping the peer, but I cannot
    ]ping beyond the peer which would indicate some kind of connection
    ]problem. I ended up rebooting the machine and now everything is fine.
    ]What happened? I'm running FreeBSD 4.8-RELEASE-p13 if anyone is
    ]interested. I'm also running PPP version is 3.1 as well.

    This indicates a problem with your routing. I am not sure of the
    commands on freebsd, but on linux you would use
    route -n
    to show the routes. You need at least two, perhaps three routes.
    One should be starting with 0.0.0.0 which is the default route. I
    suspect that for some reason your ppp when it comes up again has a messed up
    default route.

  3. Re: DNS Crash?

    On Thursday, in article
    unruh@string.physics.ubc.ca "Bill Unruh" wrote:

    > Daniel Rudy writes:
    >
    > ]Hello,
    >
    > ] As of late I've been having this problem with my DSL over PPPoE.
    > ]Here's what I'm getting in the logs:
    >
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_CLOSE
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Device disconnected
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: open -> lcp
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Terminate
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> logout
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: logout -> hangup
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connect time:
    > ]196469 secs: 306771962 octets in, 44945232 octets out
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: 273844 packets
    > ]in, 223869 packets out
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: total 1790 bytes/sec,
    > ]peak 413943 bytes/sec on Sun Oct 5 23:41:37 2003
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: hangup -> opening
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Establish
    > ]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Enter pause (3)
    > ]for redialing.
    > ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connected!
    > ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: opening -> dial
    > ]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: dial -> carrier
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_ACNAME
    > ](hook "62011020042789-")
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SESSIONID
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SUCCESS
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: carrier -> login
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: login -> lcp
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: bundle: Authenticate
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: his = PAP, mine
    > ]= none
    > ]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Pap Output:
    > ]
    > ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: Pap Input: SUCCESS ()
    > ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> open
    > ]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: bundle: Network
    >
    > ]After this happened, I cannot look anything up on DNS. But, it appears
    > ]that I have basic IP connectivity. The ifconfig utility shows that sis0
    > ]is up (the ethernet DSL interface) and tun0 is up with an assigned IP
    > ]address, peer IP address, and netmask. I restarted named, but I have
    > ]the same trouble. I then started nslookup in interactive mode and
    > ]selected my ISP's server (My ISP is SBC Communications) and tried to do
    > ]a name lookup, and I got no response. The name that I did the lookup on
    > ]was www.yahoo.com. I tried pinging the ISP's DNS server directly by IP
    > ]adress, but I got 100% packet loss. I can ping the peer, but I cannot
    > ]ping beyond the peer which would indicate some kind of connection
    > ]problem. I ended up rebooting the machine and now everything is fine.
    > ]What happened? I'm running FreeBSD 4.8-RELEASE-p13 if anyone is
    > ]interested. I'm also running PPP version is 3.1 as well.
    >
    > This indicates a problem with your routing. I am not sure of the
    > commands on freebsd, but on linux you would use
    > route -n
    > to show the routes. You need at least two, perhaps three routes.
    > One should be starting with 0.0.0.0 which is the default route. I
    > suspect that for some reason your ppp when it comes up again has a messed up
    > default route.
    >


    Similar loss of routing happened here twice since Aug 20. First time
    I wasn't sure of cause and rebooted NetBSD router then the ADSL modem
    after which routing was restored. Second time I found the router IP
    address at the ISP had changed (I'd seen a ng posting that this could
    happen and had logged the original IP) so just getting the ADSL modem
    to reconnect solved it. It is still a potential problem as I haven't
    worked out any method to automate reconnection in above circumstance,
    although it's possible there is a setting I've missed in the modem
    config. I had no reply from my ISP when I queried what had happened.

    David

    --
    David Lord - david@lordynet.demon.co.uk

  4. Re: DNS Crash?

    Somewhere around the time of 10/09/2003 04:21, the world stopped and
    listened as David Lord contributed this to humanity:

    > On Thursday, in article
    > unruh@string.physics.ubc.ca "Bill Unruh" wrote:
    >
    >
    >>Daniel Rudy writes:
    >>
    >>]Hello,
    >>
    >>] As of late I've been having this problem with my DSL over PPPoE.
    >>]Here's what I'm getting in the logs:
    >>
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_CLOSE
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Device disconnected
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: open -> lcp
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Terminate
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> logout
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Disconnected!
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: logout -> hangup
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connect time:
    >>]196469 secs: 306771962 octets in, 44945232 octets out
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: 273844 packets
    >>]in, 223869 packets out
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: total 1790 bytes/sec,
    >>]peak 413943 bytes/sec on Sun Oct 5 23:41:37 2003
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: hangup -> opening
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: bundle: Establish
    >>]Oct 7 20:24:24 wildfire ppp[72]: tun0: Phase: ppp.adsl: Enter pause (3)
    >>]for redialing.
    >>]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: Connected!
    >>]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: opening -> dial
    >>]Oct 7 20:24:27 wildfire ppp[72]: tun0: Phase: ppp.adsl: dial -> carrier
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_ACNAME
    >>](hook "62011020042789-")
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SESSIONID
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Received NGM_PPPOE_SUCCESS
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: carrier -> login
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: login -> lcp
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: bundle: Authenticate
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: ppp.adsl: his = PAP, mine
    >>]= none
    >>]Oct 7 20:24:28 wildfire ppp[72]: tun0: Phase: Pap Output:
    >>]
    >>]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: Pap Input: SUCCESS ()
    >>]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: ppp.adsl: lcp -> open
    >>]Oct 7 20:24:29 wildfire ppp[72]: tun0: Phase: bundle: Network
    >>
    >>]After this happened, I cannot look anything up on DNS. But, it appears
    >>]that I have basic IP connectivity. The ifconfig utility shows that sis0
    >>]is up (the ethernet DSL interface) and tun0 is up with an assigned IP
    >>]address, peer IP address, and netmask. I restarted named, but I have
    >>]the same trouble. I then started nslookup in interactive mode and
    >>]selected my ISP's server (My ISP is SBC Communications) and tried to do
    >>]a name lookup, and I got no response. The name that I did the lookup on
    >>]was www.yahoo.com. I tried pinging the ISP's DNS server directly by IP
    >>]adress, but I got 100% packet loss. I can ping the peer, but I cannot
    >>]ping beyond the peer which would indicate some kind of connection
    >>]problem. I ended up rebooting the machine and now everything is fine.
    >>]What happened? I'm running FreeBSD 4.8-RELEASE-p13 if anyone is
    >>]interested. I'm also running PPP version is 3.1 as well.
    >>
    >>This indicates a problem with your routing. I am not sure of the
    >>commands on freebsd, but on linux you would use
    >>route -n
    >>to show the routes. You need at least two, perhaps three routes.
    >>One should be starting with 0.0.0.0 which is the default route. I
    >>suspect that for some reason your ppp when it comes up again has a messed up
    >>default route.
    >>

    >
    >
    > Similar loss of routing happened here twice since Aug 20. First time
    > I wasn't sure of cause and rebooted NetBSD router then the ADSL modem
    > after which routing was restored. Second time I found the router IP
    > address at the ISP had changed (I'd seen a ng posting that this could
    > happen and had logged the original IP) so just getting the ADSL modem
    > to reconnect solved it. It is still a potential problem as I haven't
    > worked out any method to automate reconnection in above circumstance,
    > although it's possible there is a setting I've missed in the modem
    > config. I had no reply from my ISP when I queried what had happened.
    >
    > David
    >


    It happened again and I checked the default route per the advise that
    was posted here. There wasn't one so I added it. Everything is fine
    now. Seems like PPP is having trouble restablishing the default route
    as the peer. I'm working on a linkup script modification that will
    check to make sure that the default route is there, and if not, add it.
    I'm thinking something like this would suffice for FreeBSD:

    route_gateway=`route -n get default | grep gateway | awk '{print $2}'`
    if [ -z `ifconfig tun1 | grep inet | awk '{print $4}'` ]
    then
    ifconfig_peer=`ifconfig tun0 | grep inet | awk '{print $4}'`
    else
    ifconfig_peer=`ifconfig tun0 | grep inet | awk '{print $4}'`
    fi
    if [ -n route_gateway ]
    then
    route add default ${ifconfig_peer}
    elif [ route_gateway != ifconfig_peer ]
    then
    route change default ${ifconfig_peer}
    fi

    Note: tun0 is the DSL, tun1 is the dialup.

    What do you guys think?

    --
    Daniel Rudy

    Remove nospam, invalid, and 0123456789 to reply.


+ Reply to Thread