DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th August 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Default PPPD issue.

Hi there!

I have a problem with internet connection using pppd, I've always used dhcpd so i'am not very familiar with configuration pppd.

The problem is that I can establish connection with my ISP, receive IP and nothing more... No DNS is being configured and i can't ping, not only specified host like www.netbsd.org but even if I try ping IP it still fails.

In general i have my own IP from ISP but no internet connection?

It works almost good using net/userppp, i receive ip,dns and can ping, but cannot downolad any file bigger then few Kb, so i would like to try with PPPD. If it can help I will paste ALMOST working ppp.conf. (on freebsd this ppp.conf works like a charm)

In the end my PPPD configuration scripts:

playmobile:
Code:
/dev/ttyU0 460800
connect 'chat -v -f /etc/ppp/peers/playmobile.chat'
nodefaultroute
ipcp-accept-local
ipcp-accept-remote
noipv6
nodetach
noauth
local
playmobile.chat:
Code:
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED
'' AT
OK ATZ
#OK     'AT+CGDCONT=1,"IP","internet"'
OK ATD*99#
CONNECT ''
My internet provider is PlayMobile (Poland), modem is Huawei e169.

Thanks in advance for any help.

Best Regards
Tom.
Reply With Quote
  #2   (View Single Post)  
Old 26th August 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

I actually connect to Internet via PPPoE so I can't help you much, but here is the link for setting up a ppp connection, also including examples and a way to debug if something goes wrong:

http://www.netbsd.org/docs/guide/en/...practice-modem

Even though I'm not familiar with the setup, I see you didn't specify the login name and password in pap/chap-secrets file? Also, are you shure you need the nodefaultroute option in stead of defaultroute?
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #3   (View Single Post)  
Old 26th August 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Default

My provider doesn't require pap/chap authentication.
If it comes to (no)defaultroute it acts the same with both options.

Edit: Wow! I made it work . After your question about pap/chap i added 2 lines:
Code:
refuse-pap
refuse-chap
and i was able to ping . However DNS i had to configure by myself, the most important thing is that internet connection is working and i can stick to Netbsd .

Thanks s0xxx for clue.

Best Regards
Tom

Last edited by Tom; 26th August 2009 at 02:01 PM.
Reply With Quote
  #4   (View Single Post)  
Old 26th August 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Hi Tom,

Just saw you got it working, after I had prepared the post below, sounds good. But I might as well post it anyway in case some of it is helpful later on. (But don't fix what ain't broke! )

I use pppd for Internet connection. Here are the parameters that I use on NetBSD:

Code:
/dev/modem 57600
asyncmap 0
0.0.0.0:0.0.0.0    <-- may be obsolete
mru 1500
mtu 1500
kdebug 0
lock
modem
crtscts
noipdefault
defaultroute
usepeerdns
Some of these you may need/want to change or omit, but I think the "modem" and "crtscts" are important.

About DNS, its conceivable your ISP is not providing them? You could always try writing in your own DNS nameserver IP's into /etc/resolv.conf (and/or /etc/named.conf if you're running BIND, then reload it).

Also, as s0xxx suggested I think defaultroute is important. You should check what your routing looks like after dialing up with

# route show
Reply With Quote
  #5   (View Single Post)  
Old 26th August 2009
Tom Tom is offline
Port Guard
 
Join Date: Aug 2008
Location: Poland
Posts: 22
Default

IdOp, thanks for reply .

I made some changes and finnaly my configuration file looks like this:

Code:
/dev/ttyU0 460800
connect 'chat -v -f /etc/ppp/peers/playmobile.chat'
nodefaultroute
ipcp-accept-local
ipcp-accept-remote
noipv6
nodetach
noauth
local
0.0.0.0:0.0.0.0
crtscts
refuse-pap
refuse-chap
refuse-pap and refuse-chap are specific for my provider, at least I think so, the rest of configuration should make pppd work with Huawei e169 on NetBSD.

Option modem is opposit to local, and when i tried to use it I couldn't establish connection.

When it comes to DNS, my ISP provides DNS but PPPD doesn't configure them at all in my case. I had to go with manual configuration /etc/resolv.conf.

Finnaly, thanks for help . I was fighting with it for a week, and 10 minutes after first reply I solved the case .

Best Regards
Tom
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.5 -current issue roundkat OpenBSD Installation and Upgrading 11 28th February 2009 02:11 PM
FFS permission issue marc OpenBSD General 2 2nd February 2009 07:31 PM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
pppd on FreeBSD 7.0-RELEASE radcapricorn FreeBSD General 2 6th June 2008 01:10 PM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 08:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick