|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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. |
|
||||
@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. |
|
||||
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) |
|
||||
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 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 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 Code:
up 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 I stayed up late trying to get it working, but still can not. please help |
Tags |
network, openbsd, ppp |
|
|