View Single Post
  #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