DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th April 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default need explanation on ppp [SOLVED]

well, I am using a shared connection that requires I enter a user name and a password.

On Linux I do it using the Gnome-Network-Manager, now I do not wanna be using any thing gnome related on OpenBSD, and I simply could not understand what I am supposed to do on OpenBSD to get ppp up and connected.

so any one would kindly direct me to the right way of doing it?

Last edited by qmemo; 7th May 2011 at 09:50 AM.
Reply With Quote
  #2   (View Single Post)  
Old 24th April 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Is this a dialup PPP connection or PPPoE/PPPoA?

PPP configuration is in the FAQ, and there is an example configuration in /etc/ppp/.

http://www.openbsd.org/faq/faq6.html#PPP

There is technically two implementations pppd(8) and ppp(8), you may find the syntax for ppp(8) with ppp.conf somewhat easier to understand.
Reply With Quote
  #3   (View Single Post)  
Old 25th April 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

@BSDfan666

It's supposed to be a pppoe connection && checking on ppp(8)

//update

I spent a great deal of time trying to figure out when to use pppoe(8) and when to use pppoe(4) methods.

can some one just give me an example I can follow?

//update no.2

this are the steps I took and the progress I reached so far.

Code:
      
$ cat /etc/hostname.bge0 

$ up

$ ping www.google.com

$ ping: unknown host: www.google.com

$ sudo dhclient bge0 

$ DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPACK from 1.1.1.1 (00:21:27:c7:27:99)
bound to 1.1.1.45 -- renewal in 1800 seconds.

$ ping -c 4 www.google.com
PING www.l.google.com (74.125.230.145): 56 data bytes
ping: wrote www.l.google.com 64 chars, ret=-1
ping: wrote www.l.google.com 64 chars, ret=-1
ping: wrote www.l.google.com 64 chars, ret=-1
ping: wrote www.l.google.com 64 chars, ret=-1
--- www.l.google.com ping statistics ---
4 packets transmitted, 0 packets recived, 100.0% packet loss

$ cat /etc/hostname.pppoe0

$ inet 0.0.0.0 255.255.255.255 NONE pppoedev bge0 authproto pap authname 'memo' authkey 'memo' up 
dest 0.0.0.1
!/sbin/route add default -ifp pppoe 0 0.0.0.1


$ ifconfig pppoe0

$ pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
    priority: 0
    dev: bge0 state: session
    sid: 0xa0 PADI retries: 1 PADR retries: 0 time: 00:00:38
    sppp: phase establish authproto pap 
    groups: pppoe
    status: no carrier
    inet6 fe80::21f:16ff:feb1:a167%pppoe0 ->  prefixlen 64 scopeid 0x5
    inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff

Last edited by qmemo; 25th April 2011 at 05:26 AM.
Reply With Quote
  #4   (View Single Post)  
Old 25th April 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

On linux I can do that easly via gnome-network-applets.

Code:
$ ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.1.1.242  P-t-P:16.16.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:5973 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:5780677 (5.5 MiB)  TX bytes:786531 (768.0 KiB)
I am still not able to connect over OpenBSD.
Reply With Quote
  #5   (View Single Post)  
Old 26th April 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

//update

pppoe did not work for me, and thankfully I was able to use another method of connecting.

so I am no longer looking after pppoe at all
Reply With Quote
  #6   (View Single Post)  
Old 7th May 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default almost there...

I installed 4.9-current hooray!

tried to get pppoe0 working and I am almost there.

ifconfig pppoe0 looks fine

Code:
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
	priority: 0
	dev: bge0 state: session
	sid: 0xd2 PADI retries: 0 PADR retries: 0 time: 00:05:15
	sppp: phase network authproto chap 
	groups: pppoe egress
	status: active
	inet6 fe80::21f:16ff:feb1:a167%pppoe0 ->  prefixlen 64 scopeid 0x5
	inet 10.1.1.183 --> 16.16.1.1 netmask 0xffffffff
route show, looks fine too

Code:
Routing tables

Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface
default            16.16.1.1          UGS        0        0     -     8 pppoe0
16.16.1.1          10.1.1.183         UH         0        0     -     4 pppoe0
loopback           localhost          UGRS       0        0 33152     8 lo0  
localhost          localhost          UH         1        0 33152     4 lo0  
BASE-ADDRESS.MCAST localhost          URS        0        0 33152     8 lo0
hostname.pppoe0

Code:
inet 0.0.0.0 255.255.255.255 NONE \
                   pppoedev bge0 authproto chap \
                   authname 'memo' authkey 'memo' up
           dest 0.0.0.1
           !/sbin/route add default -ifp pppoe0 0.0.0.1
hostname.bge0

Code:
up
sudo ifconfig pppoe0 debug && tail /var/log/messages

Code:
May  7 04:49:37 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0x7 len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:49:37 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:49:37 faw /bsd: pppoe0: lcp output <echo-reply id=0x7 len=8 b0-42-3f-8a>
May  7 04:49:37 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
May  7 04:49:47 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0x8 len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:49:47 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:49:47 faw /bsd: pppoe0: lcp output <echo-reply id=0x8 len=8 b0-42-3f-8a>
May  7 04:49:47 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
May  7 04:49:57 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0x9 len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:49:57 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:49:57 faw /bsd: pppoe0: lcp output <echo-reply id=0x9 len=8 b0-42-3f-8a>
May  7 04:49:57 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
May  7 04:50:07 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0xa len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:50:07 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:50:07 faw /bsd: pppoe0: lcp output <echo-reply id=0xa len=8 b0-42-3f-8a>
May  7 04:50:07 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
May  7 04:50:17 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0xb len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:50:17 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:50:17 faw /bsd: pppoe0: lcp output <echo-reply id=0xb len=8 b0-42-3f-8a>
May  7 04:50:17 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
May  7 04:50:27 faw /bsd: pppoe0: lcp input(opened): <echo-req id=0xc len=8 9b-c2-fa-38-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
May  7 04:50:27 faw /bsd: pppoe0: got lcp echo req, sending echo rep
May  7 04:50:27 faw /bsd: pppoe0: lcp output <echo-reply id=0xc len=8 b0-42-3f-8a>
May  7 04:50:27 faw /bsd: pppoe0 (8864) state=3, session=0xd2 output -> 00:21:27:fc:6e:28, len=16
now all this looks fine and still pinging ww.google.com returns unknown host

I stayed up late trying to get it working, but still can not.

please help
Reply With Quote
  #7   (View Single Post)  
Old 7th May 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

The kernel pppoe(4) doesn't negotiate dns like userland pppoe(8), so /etc/resolv.conf is not populated.

You'll need to write down your ISP's DNS servers.. or use public ones, like Google's 8.8.8.8 or 8.8.4.4.
Reply With Quote
  #8   (View Single Post)  
Old 7th May 2011
qmemo's Avatar
qmemo qmemo is offline
Real Name: He
Package Pilot
 
Join Date: Jul 2008
Location: The big B
Posts: 141
Default

@BSDfan666

Worked like a charm, thank you
Reply With Quote
Reply

Tags
network, openbsd, ppp

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


All times are GMT. The time now is 10:51 AM.


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