Re: ppp connection goes down - requires reboot
On 7/12/2012 10:18 AM, David Banning wrote: > Lately I have a problem where the ppp connection goes down. > Watching the log I see the following; > Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: opening -> dial > Jul 12 09:55:13 3s1 ppp[31115]: tun0: Phase: deflink: dial -> carrier > Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Disconnected! > Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: carrier -> hangup > Jul 12 09:55:18 3s1 ppp[31115]: tun0: Phase: deflink: Connect time: 5 secs: 0 > octets in, 0 octets out 5 seconds seems like a pretty tight for it to give up. Do you have any other defaults in your ppp.conf not shown below ? also add enable echo disable vjcomp set lqrperiod 10 set cd 10 and when its not working, try tcpdump -nei fxp0 You should see responses to your PADI requests from the remote BAS. Also get rid of the 209.161.205.12 line. Typically your ISP will assign you the static IP out of RADIUS and you dont need to specify it. ---Mike > > I shutdown ppp and restart it with no luck. I shutoff modem and > reboot it and wait for connection light to go solid - still no go. > > > my ppp.conf follows; > > default: # or name_of_service_provider > set device PPPoE:fxp0 # replace xl1 with your ethernet device > set mru 1492 > set mtu 1492 > set authname *** > set authkey *** > set log Phase tun command # you can add more detailed logging if you > wish > disable ipv6cp > set dial > set login > set ifaddr 209.161.205.12 206.221.248.4 > set ifaddr 10.0.0.1/0 10.0.0.2/0 > add default HISADDR > nat enable yes > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > > -- --- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, m...@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: PPP Connection.
On Friday 25 February 2005 03:47 pm, Peterhin wrote: > OK here is what I get when I > 'ps ax | grep ppp' > > '202 ?? ls 0:00.04 /usr/sbin/ppp -quiet -auto -nat papchap' > > FYI. the modem does disconnect after the '300sec'. > and I can re-dial to get the connection again, so that all works > fine. Also I think what is happening is that on boot-up once it gets > to 'looking for host time.nrc.ca and service NTP' the modem starts, > so that explains why it starts at boot-up, it needs to satisfy that > call. > > Part of this stp learning curve for a newbie like me is also > learning the logic behind the sequencing of different activities. > > Now having said that, a further question, and I have read the man > pages, handbook, and sundry other books, is I can't seem to > understand how I can setup 'ppp' to dial out manually. (ie. only when > I want it to, as I have another computer that shares the one phone > line that I have avail. for this purpose). > If you could shed some light on this function I would be very > appreciative. If you have 2 computers needing to dial-out, you might consider sharing the ppp connection. The online handbook covers this at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/userppp.html > > As for your suggestion: 'I used to kill ppp using a "hangup" python > script:' > At this stage that is over my head. > > Peter > > "Civil Liberties are at the whim of those in power" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPP Connection.
On Friday 25 February 2005 02:12 pm, Peterhin wrote: > On February 25, 2005 14:09, you wrote: > > On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote: > > > I have 5.3 installed, and am trying to get my dial-up going. > > > In the handbook under 21.2.1.2 when I try to do a > > > 'cd /dev' > > > 'sh MAKEDEV tun0' > > > I get "can't open makedev: No such file or directory" > > > > The 5.x series uses a devfs filesystem which creates devices on the > > fly. You don't have to make the devices manually anymore. > > > > > I also tried using G. Lehey instructions from his book, I get to > > > the point where the external modem dials at reboot, but no > > > connection. I have looked in the log files and it looks like > > > Authentication failure is my problem. > > OK, finger trouble on my part I have a connection now. > > > Username and password is incorrect? Post us the actual contents of > > the logs and your ppp.conf (with the username/password blanked out) > > and we will have a better idea just what is going wrong with your > > system. > > I have a good connection however if I try to disconnect by typing > at the 'PPP ON localhost>' close > 'PPP ON Localhost> > or use the 'q' > I get back to the # > however the modem has not disconnected. I did a 'ping' to confirm on > (ttyv1) Is ppp still active in the background? What does 'ps ax | grep ppp' return? I used to kill ppp using a "hangup" python script: #!/usr/local/bin/python # /usr/local/bin/hangup.py import os, string, sys a = 'ps ax | grep ppp' b = os.popen(a).readlines() c = b[0] d = string.split(c) os.popen('kill ' + d[0]) Best regards, Andrew Gould ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPP Connection.
On February 25, 2005 14:09, you wrote: > On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote: > > I have 5.3 installed, and am trying to get my dial-up going. > > In the handbook under 21.2.1.2 when I try to do a > > 'cd /dev' > > 'sh MAKEDEV tun0' > > I get "can't open makedev: No such file or directory" > > The 5.x series uses a devfs filesystem which creates devices on the > fly. You don't have to make the devices manually anymore. > > > I also tried using G. Lehey instructions from his book, I get to > > the point where the external modem dials at reboot, but no > > connection. I have looked in the log files and it looks like > > Authentication failure is my problem. > OK, finger trouble on my part I have a connection now. > Username and password is incorrect? Post us the actual contents of > the logs and your ppp.conf (with the username/password blanked out) > and we will have a better idea just what is going wrong with your > system. I have a good connection however if I try to disconnect by typing at the 'PPP ON localhost>' close 'PPP ON Localhost> or use the 'q' I get back to the # however the modem has not disconnected. I did a 'ping' to confirm on (ttyv1) -- Peter "Civil Liberties are at the whim of those in power" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: PPP Connection.
-Original Message- From: Jonathan Chen [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 11:09 AM To: Peterhin Cc: freebsd-questions@freebsd.org Subject: Re: PPP Connection. On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote: > I have 5.3 installed, and am trying to get my dial-up going. > In the handbook under 21.2.1.2 when I try to do a > 'cd /dev' > 'sh MAKEDEV tun0' > I get "can't open makedev: No such file or directory" The 5.x series uses a devfs filesystem which creates devices on the fly. You don't have to make the devices manually anymore. > I also tried using G. Lehey instructions from his book, I get to the > point where the external modem dials at reboot, but no connection. I > have looked in the log files and it looks like Authentication failure > is my problem. Username and password is incorrect? Post us the actual contents of the logs and your ppp.conf (with the username/password blanked out) and we will have a better idea just what is going wrong with your system. -- Note, if you have special characters in the username or password you need o escape them i.e., [EMAIL PROTECTED] would be [EMAIL PROTECTED] However, this is not always the case depending on the isp. Good luck. dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPP Connection.
On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote: > I have 5.3 installed, and am trying to get my dial-up going. > In the handbook under 21.2.1.2 when I try to do a > 'cd /dev' > 'sh MAKEDEV tun0' > I get "can't open makedev: No such file or directory" The 5.x series uses a devfs filesystem which creates devices on the fly. You don't have to make the devices manually anymore. > I also tried using G. Lehey instructions from his book, I get to the > point where the external modem dials at reboot, but no connection. I > have looked in the log files and it looks like Authentication failure > is my problem. Username and password is incorrect? Post us the actual contents of the logs and your ppp.conf (with the username/password blanked out) and we will have a better idea just what is going wrong with your system. -- Jonathan Chen <[EMAIL PROTECTED]> -- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ppp connection problem
Please post /var/log/ppp.log be sure to empty ppp.log before you run last test so log only contains last 2 dials Try starting using this command ppp -background -nat isp Also post your /etc/rc.conf Add this to your ppp.conf isp section set timeout 0 # no idle time out, will not disconnect disable pred1 deflate lqr# compression features & line quality reporting denypred1 deflate lqr # compression features & line quality reporting set log Phase Chat LCP IPCP CCP tun command #use for testing #set log Phase tun #use to avoid excessive log sizes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Henning Sent: Wednesday, July 23, 2003 9:10 AM To: freebsd Subject: ppp connection problem Greetings all: I am connecting to my isp with the following ppp.conf using the command >ppp -auto isp when i run the command i usually connect on the second try. for some reason the connection drops after the first try, but my true problem is i can ping internal ips and not ips outside the network. I think my problem is with my default route is not setup properly. here is a snip of my ifconfig, for some reason i have two tun devices. i think that is caused by trying to dial up twice? any thought on how to setup my default route properly? Thanks, brian ifconfig tun0: flags=8051 mtu 1500 inet 199.17.4.229 --> 199.17.4.4 netmask 0xff00 Opened by PID 111 tun1: flags=8051 mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff00 Opened by PID 121 Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default199.17.4.4UGSc4 2620 tun0 10.0.0.2 10.0.0.1 UH 00 tun1 127.0.0.1 127.0.0.1 UH 00lo0 199.17.4.4199.17.4.229 UH 40 tun0 /etc/ppp/ppp.conf - default: set device /dev/cuaa1 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDP\\T TIMEOUT 40 CONNECT" set timeout 180 enable dns isp: set phone xxx set authname xxx set authkey xxx set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection problem
On Wed, 2003-07-23 at 09:10, Brian Henning wrote: > I am connecting to my isp with the following ppp.conf using the command > >ppp -auto isp > when i run the command i usually connect on the second try. > for some reason the connection drops after the first try, but my > true problem is i can ping internal ips and not ips outside the network. > I think my problem is with my default route is not setup properly. Removing the 'set ifaddr' line fixed some weird problems for me. However, I use ppp for PPPoE. It might be worth a try, though. I know several people that have removed that line successfully. -- Adam <[EMAIL PROTECTED]> ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
On Sat, Jul 19, 2003 at 03:20:21PM -0700, Marvin J. Kosmal wrote: > papchap: > # > # edit the next three lines and replace the items in caps with > # the values which have been assigned by your ISP. > # > > set phone 360.314.4221 Your phone number value is incorrect. Take out the ".". -- Jonathan Chen <[EMAIL PROTECTED]> -- Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: ppp connection
Marvin, You say user ppp is not dialing out. What makes you think your modem is working at all. Does the dmesg.boot file show your modem being found? Are you using an MS/Winmodem, is your modem an external serial modem, USB external, internal PCI modem. Do you have plug-n-play disabled and serial ports enabled in the motherboards bios? What version of FBSD you are using? Does the 'TIP' command connect to the modem and can you issue Hayes 'AT' commands to modem? You have to provide much greater details about what you are trying to do and what you have tried to do to debug problem. There is no size limit to how big your email message can be so do not spare the details. The most important question HAVE YOU GOOLGE THE FBSD QUESTIONS LIST EMAIL ARCHIVES FOR MODEMS OR USER PPP, to try to find the answer to your problem your self. For your information that is your first place you should look when you have a problem. Your question has been answered many times before on this list so please do the same leg work the rest of us do when we have problems before throwing your hands up into the air and asking for help. Take the time to learn from the archives, the true fun of FBSD comes from figuring out a problem on your own. I use the this link to google all the time. http://groups.google.com/groups?hl=en&group=mailing.freebsd.question s If you still need help, post these files, /var/run/dmesg.boot /etc/ppp/ppp.conf /etc/rc.conf /ver/log/ppp.log containing only the last start of user ppp, and give all the details you can so people have the complete picture of you're files to look for problems. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
These are the files ++/etc/ppp/ppp.conf++ # # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by [EMAIL PROTECTED] # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $ # default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa0 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180# 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone 360.314.4221 set authname lamsokvr set authkey * set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR# Add a (sticky) default route ++/etc/resolv.conf*** domain xprt.net nameserver 209.102.124.11 nameserver 209.102.124.10 Thank YOU On Sat, 2003-07-19 at 07:46, Matthew Graybosch wrote: > On Friday 18 July 2003 08:20 pm, Marvin J. Kosmal wrote: > > > I can't ping anyone. > > > > TIA > > Send me copies of your /etc/ppp/ppp.conf and /etc/resolv.conf so I can > diagnose your problem. I need firsthand info if I'm to properly > troubleshoot your problem. > > -- > Matthew Graybosch > http://www.starbreaker.net > "I am become root, shatterer of kernels." > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > -- Marvin J. Kosmal Linux Activist Registered User # 88512 Brought to by Libranet 2.7 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
On Friday 18 July 2003 08:20 pm, Marvin J. Kosmal wrote: > I can't ping anyone. > > TIA Send me copies of your /etc/ppp/ppp.conf and /etc/resolv.conf so I can diagnose your problem. I need firsthand info if I'm to properly troubleshoot your problem. -- Matthew Graybosch http://www.starbreaker.net "I am become root, shatterer of kernels." ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
tun0: flags=8010 mtu 1500 Seems the ppp connection has obviously failed man ppp and make sure you set it up properly... Did you not notice any errors? otherwise "tail -40 /var/log/ppp.log" and try see what went wrong. - Original Message - From: "Marvin J. Kosmal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, July 19, 2003 2:20 AM Subject: Re: ppp connection > On Fri, 2003-07-18 at 16:23, Matthew Graybosch wrote: > > On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote: > > > Hi > > > > > > trying to get my ppp connection to work > > > > > > And nothing happens > > > > > > Any ideas?? > > > > It sounds like you're trying to use kernel ppp. Use "user ppp" > > instead. Edit /etc/ppp/ppp.conf to set the modem device, phone > > number, userid, and password. Then invoke it with "ppp -foreground > > papchap". > > > > > This is what I get now.. > > > > rl0: flags=8802 mtu 1500 > ether 00:4f:4e:05:32:b6 > media: Ethernet autoselect (10baseT/UTP) > status: no carrier > lp0: flags=8810 mtu 1500 > faith0: flags=8002 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet 127.0.0.1 netmask 0xff00 > ppp0: flags=8010 mtu 1500 > sl0: flags=c010 mtu 552 > tun0: flags=8010 mtu 1500 > > > I can't ping anyone. > > TIA > > > > > > > > > > > > > > -- > > Matthew Graybosch > > http://www.starbreaker.net > > "I am become root, shatterer of kernels." > > > -- > Marvin J. Kosmal > Linux Activist > Registered User # 88512 > Brought to by Libranet 2.7 > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
On Fri, 2003-07-18 at 16:23, Matthew Graybosch wrote: > On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote: > > Hi > > > > trying to get my ppp connection to work > > > > And nothing happens > > > > Any ideas?? > > It sounds like you're trying to use kernel ppp. Use "user ppp" > instead. Edit /etc/ppp/ppp.conf to set the modem device, phone > number, userid, and password. Then invoke it with "ppp -foreground > papchap". > This is what I get now.. rl0: flags=8802 mtu 1500 ether 00:4f:4e:05:32:b6 media: Ethernet autoselect (10baseT/UTP) status: no carrier lp0: flags=8810 mtu 1500 faith0: flags=8002 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 tun0: flags=8010 mtu 1500 I can't ping anyone. TIA > -- > Matthew Graybosch > http://www.starbreaker.net > "I am become root, shatterer of kernels." > -- Marvin J. Kosmal Linux Activist Registered User # 88512 Brought to by Libranet 2.7 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ppp connection
On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote: > Hi > > trying to get my ppp connection to work > > And nothing happens > > Any ideas?? It sounds like you're trying to use kernel ppp. Use "user ppp" instead. Edit /etc/ppp/ppp.conf to set the modem device, phone number, userid, and password. Then invoke it with "ppp -foreground papchap". -- Matthew Graybosch http://www.starbreaker.net "I am become root, shatterer of kernels." ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPP connection via a GMC router
From: "Fuji Zhang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 11:22 PM Subject: PPP connection via a GMC router > hi, i had ADSL working via a D-Link card to Bell Sympatico just fine. then > my roommate wanted to share the ISP w/ me. so we bought a GMC router. He > had his Linux box working behind the router. but my FreeBSD box stopped > working. what am i missing? your help would certainly be appreciated. > please respond to this address directly as i am not subscribing to list > now. maybe if you specify what exactly is not working someone could help you out. if you mean the network functions are not working, i would recommend going into your config files to see what's up. if you previously set your ip statically in your conf files, you probably now will want to set it through dhcp (as in, set that interface = to "DHCP" in your rc.conf), because that gmc router is probably using dhcp to assign your box an internal ip. to test out this theory, try running "/sbin/dhclient if0", where if0 is the name of your ethernet NIC (e.g. xl0, dc0, etc). hope this helps. -- dfolkins To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message