Re: pppoe problems

2022-07-27 Thread void
Hi, managed to fix the problem by adding

option PPPOE_TERM_UNKNOWN_SESSIONS

to the kernel config and rebuilding/installing.

In the end, using chap rather than pap auth worked. It still took a bit of
time to log in (about 4-6 mins). Maybe the asus was leaving stale sessions.
Even with the kernel option enabled, was unable to get pap auth working, yet
the ISP's support states either should work. So maybe it's down to the ISP.

Sorry for the noise.



Re: pppoe problems

2022-07-27 Thread void
Hello,

On Wed, 27 Jul 2022, at 20:19, Stuart Henderson wrote:
> On 2022-07-27, void  wrote:

>> Was just building and installing a new kernel incorrect, in this context?
>
> No, the kernel is all you need for that patch.
>
> If userland had been needed, the instructions for the patch would
> have told you what else to build.

thanks for clarifying.

> Was pppoe working before applying the patch, or had you not configured
> it at that point?

It was "working" (in that pppoe0 got connected), once, and that was after 
applying the patch. I had not fully configured the network at that stage. I was 
accessing via console cable, and had configured cnmac1 as the pppoe-associated 
interface, and hostname.pppoe0. After *many* PAD retries, it connected and I 
was able to ping 1.1.1.1

dmesg : http://void.f-m.fm.user.fm/openbsd/2022-07-27.dmesg.txt

The connection has a /29 ipv4 and a /40 ipv6 (which peers with a /64). I left 
ipv6 out of the configuration to simplify things in the first instance.

The cnmac0 interface is accessible from the dmz. 

# cat /etc/hostname.cnmac0
inet router.ip.add.ress 255.255.255.248 NONE

# cat /etc/hostname.cnmac1
up mtu 1508

(I have tried it without the mtu 1508 as well)

# cat /etc/hostname.pppoe0 
inet 0.0.0.0 255.255.255.255 NONE mtu 1500 \
pppoedev cnmac1 authproto pap \
authname 'username@myisp' authkey 'mYpAssWord' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

when not using mtu 1508 in cnmac0 the mtu 1500 statement was also removed from  
hostname.pppoe0 as per the pppoe manpage.

# cat /etc/hostname.cnmac2
cat: /etc/hostname.cnmac2: No such file or directory

# sysctl -a | grep forwarding
net.inet.ip.forwarding=1
net.inet.ip.mforwarding=0
net.inet6.ip6.forwarding=1
net.inet6.ip6.mforwarding=0

When it wasn't connecting after 5-10 mins and I saw the PAD counter had clocked 
up, I powercycled the termination point, waited 30s for it to come back (no LOS 
light so indicating there was signal) and then rebooted the edgerouter. Problem 
was still happening.

Then I configured an asus RT68-U to use pppoe, plugged that into the 
termination point, gave it the credentials for the connection and it connected 
in under a minute. The pppoe authentication method here was set to "auto".
I did not successfully connect when it was explicitly configured to use chap or 
pap authentication, but that may have been because I didn't wait long enough.

So I removed the asus from the line, plugged the edgerouter back in and this 
time ran tcpdump over the pppoe connection - using chap auth and then, changing 
to pap, rebooting and running tcpdump again.

The ISP states we can use chap or pap. The auth creds have been checked on the 
asus and on the edgerouter and they're correct.

Here's the tcpdumps with auth creds redacted. 

chap auth: 
http://void.f-m.fm.user.fm/openbsd/2022-07-27.pppoe0-tcp-dump-chap-auth-standard-mtu.txt

pap auth: 
http://void.f-m.fm.user.fm/openbsd/2022-07-27.pppoe.log.pap.1508mtu.txt

How can I debug this further? why is it terminating the request.

thank you for looking at my query.



Re: pppoe problems

2022-07-27 Thread Stuart Henderson
On 2022-07-27, void  wrote:
> Hello misc@
>
> I installed 7.1-release to an edgerouter-lite-3 (mips64, octeon). In 
> the errata, I saw there was a security fix 
> https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/005_pppoe.patch.sig 
> which was especially pertinent as this is a router. So, cvs-uped to 
> 7.1-stable and built the kernel from those sources as mips64 isn't 
> supported with syspatch. It installed fine, boots up fine. The problem 
> is that I can't get pppoe to work.
>
> Before seeing if it's an issue with pppoe, what I'd like to know is, 
> should I have also rebuilt the userland? The reason I didn't in the 
> first place is that the pppoe patch mentions rebuilding/installing the 
> kernel only, and building the userland will take an age on this hardware. 
>
> Was just building and installing a new kernel incorrect, in this context?

No, the kernel is all you need for that patch.

If userland had been needed, the instructions for the patch would
have told you what else to build.

Was pppoe working before applying the patch, or had you not configured
it at that point?


-- 
Please keep replies on the mailing list.



pppoe problems

2022-07-26 Thread void
Hello misc@

I installed 7.1-release to an edgerouter-lite-3 (mips64, octeon). In 
the errata, I saw there was a security fix 
https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/005_pppoe.patch.sig 
which was especially pertinent as this is a router. So, cvs-uped to 
7.1-stable and built the kernel from those sources as mips64 isn't 
supported with syspatch. It installed fine, boots up fine. The problem 
is that I can't get pppoe to work.

Before seeing if it's an issue with pppoe, what I'd like to know is, 
should I have also rebuilt the userland? The reason I didn't in the 
first place is that the pppoe patch mentions rebuilding/installing the 
kernel only, and building the userland will take an age on this hardware. 

Was just building and installing a new kernel incorrect, in this context?

thanks in advance for any clarification 



Re: in-kernel pppoe problems

2008-06-14 Thread openbsd misc
Hello,

sorry, version 4.1 and 4.2. Thanks for your reply, I'll check that.

Regards
  Hagen Volpers

 -Urspr|ngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Im Auftrag von Pierre Riteau
 Gesendet: Samstag, 14. Juni 2008 00:28
 An: misc(at)openbsd.org
 Cc: misc@openbsd.org
 Betreff: Re: in-kernel pppoe problems

 On Fri, Jun 13, 2008 at 11:24:32PM +0200, misc(at)openbsd.org wrote:
  Hello,
 
  it looks like the in-kernel pppoe causes systems to hang up
 sometimes. I
  testet with two systems (completly different hardware) and
 two different
  dsl-modems (I'm from germany - standard tcom modems).
  Did someone else notice such problems?
 
  Here is my hostname.pppoe0:
  #cat /etc/hostname.pppoe0
  inet 0.0.0.0 255.255.255.255 NONE \
  pppoedev bge1 authproto pap \
  authname 'USERNAME' authkey 'PASSWORD' up
  dest 0.0.0.1
  !/sbin/route add default 0.0.0.1
 
  # cat /etc/hostname.bge1
  up
 
  Here is the output from the kernel panic:
 
  cached lines from terminal server:
  ddb{0} start of buffer
  13/6/2008 11:49:39pppoe0: LCP keepalive timeout
  13/6/2008 11:49:39kernel: page fault trap, code=0
  13/6/2008 11:49:41Stopped at  softclock+0x2d: movl
  %edx,0x4(%eax)
  13/6/2008 11:49:41ddb{0}
  13/6/2008 18:29:27ddb{0}
  end of buffer

 You don't provide information about which version of OpenBSD you are
 running. Anyway, this seems identical to PR 5794 which was fixed in
 -current on May 17.



in-kernel pppoe problems

2008-06-13 Thread misc(at)openbsd.org
Hello,

it looks like the in-kernel pppoe causes systems to hang up sometimes. I
testet with two systems (completly different hardware) and two different
dsl-modems (I'm from germany - standard tcom modems).
Did someone else notice such problems?

Here is my hostname.pppoe0:
#cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev bge1 authproto pap \
authname 'USERNAME' authkey 'PASSWORD' up
dest 0.0.0.1
!/sbin/route add default 0.0.0.1

# cat /etc/hostname.bge1
up

Here is the output from the kernel panic:

cached lines from terminal server:
ddb{0} start of buffer
13/6/2008 11:49:39pppoe0: LCP keepalive timeout
13/6/2008 11:49:39kernel: page fault trap, code=0
13/6/2008 11:49:41Stopped at  softclock+0x2d: movl
%edx,0x4(%eax)
13/6/2008 11:49:41ddb{0}
13/6/2008 18:29:27ddb{0}
end of buffer

output from ddb commands:
ddb{0} trace
softclock(58,de8a0010,10,de8a0010,de8ae000) at softclock+0x2d
Bad frame pointer: 0xde8aff20

ddb{0} ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 26917  24357  32309220  3   0x2004080  selectqmail-smtpd
 19628  22976  22976  0  3   0x282  netio tcpdump
 22976   3048  22976 76  3   0x2004182  bpf   tcpdump
 28819  15851  28819  0  3   0x2004082  ttyin ksh
 15851  13411  15851  0  3   0x2004180  selectsshd
  3048   1164   3048  0  3   0x2004082  pause ksh
  1164  13411   1164  0  3   0x2004080  selectsshd
 26129  27247  32309200  3   0x2004080  piperdmultilog
 10965  19992  32309201  3   0x2004180  poll  dnscache
  1687  11010  10844  0  3   0x2800082  netio tcpdump
 11010  10844  10844 76  3   0x2804182  bpf   tcpdump
 10844  1  10844  0  3   0x2805082  pause sh
 12506  22056  12506515  3   0x2004080  piperdunlinkd
 22056  15607  15607515  3   0x2004180  kqreadsquid
  6061  24437  32309225  3   0x2004080  piperdqmail-clean
 12394  24437  32309226  3   0x2004080  selectqmail-rspawn
 23031  24437  32309  0  3   0x2004080  selectqmail-lspawn
 24357  12238  32309220  3   0x2004180  netcontcpserver
 14976  11484  32309222  3   0x2004080  piperdmultilog
 24437  30067  32309227  3   0x2004080  selectqmail-send
 20754  31587  32309222  3   0x2004080  piperdmultilog
 27247  17401  32309  0  3   0x2004080  poll  supervise
 19992  17401  32309  0  3   0x2004080  poll  supervise
 11484  17401  32309  0  3   0x2004080  poll  supervise
 12238  17401  32309  0  3   0x2004080  poll  supervise
 31587  17401  32309  0  3   0x2004080  poll  supervise
 30067  17401  32309  0  3   0x2004080  poll  supervise
 22921  32309  32309  0  3   0x2004080  piperdreadproctitle
 17401  32309  32309  0  3   0x2004080  nanosleep svscan
  5641  1   5641  0  3   0x2004082  ttyin getty
  9200  1   9200  0  3   0x2004082  ttyin getty
 11008  1  11008  0  3   0x2004082  ttyin getty
 30618  1  30618  0  3   0x2004082  ttyin getty
 32099  1  32099  0  3   0x2004082  ttyin getty
 12115  1  12115  0  3   0x2004082  ttyin getty
  8185  1   8185  0  3   0x280  selectcron
 32309  1  32309  0  3   0x2004082  pause sh
 15607  1  15607  0  3   0x280  wait  squid
 13411  1  13411  0  3   0x280  selectsshd
  5549  1   5549  0  3   0x2000180  selectinetd
 14162   2559   2559 83  3   0x2000180  poll  ntpd
  2559  1   2559  0  3   0x280  poll  ntpd
 22633   3798   3798 68  3   0x2000180  selectisakmpd
  3798  1   3798  0  3   0x280  netio isakmpd
  6099   5809   5809 74  3   0x2000180  bpf   pflogd
  5809  1   5809  0  3   0x280  netio pflogd
 30348  17649  17649 73  3   0x2000180  poll  syslogd
 17649  1  17649  0  3   0x288  netio syslogd
17  0  0  0  3   0x2100200  crypto_wait   crypto
16  0  0  0  3   0x2100200  aiodoned  aiodoned
15  0  0  0  3   0x2100200  syncerupdate
14  0  0  0  3   0x2100200  cleaner   cleaner
13  0  0  0  30x100200  reaperreaper
12  0  0  0  3   0x2100200  pgdaemon  pagedaemon
11  0  0  0  3   0x2100200  pftm  pfpurge
10  0  0  0  3   0x2100200  usbevtusb3
 9  0  0  0  3   0x2100200  usbevtusb2
 8  0  0  0  3   0x2100200  usbevtusb1
 7  0  0  0  3   0x2100200  usbtskusbtask
 6  0  0  0  3   0x2100200  usbevtusb0
 5  0 

Re: in-kernel pppoe problems

2008-06-13 Thread Pierre Riteau
On Fri, Jun 13, 2008 at 11:24:32PM +0200, misc(at)openbsd.org wrote:
 Hello,
 
 it looks like the in-kernel pppoe causes systems to hang up sometimes. I
 testet with two systems (completly different hardware) and two different
 dsl-modems (I'm from germany - standard tcom modems).
 Did someone else notice such problems?
 
 Here is my hostname.pppoe0:
 #cat /etc/hostname.pppoe0
 inet 0.0.0.0 255.255.255.255 NONE \
 pppoedev bge1 authproto pap \
 authname 'USERNAME' authkey 'PASSWORD' up
 dest 0.0.0.1
 !/sbin/route add default 0.0.0.1
 
 # cat /etc/hostname.bge1
 up
 
 Here is the output from the kernel panic:
 
 cached lines from terminal server:
 ddb{0} start of buffer
 13/6/2008 11:49:39pppoe0: LCP keepalive timeout
 13/6/2008 11:49:39kernel: page fault trap, code=0
 13/6/2008 11:49:41Stopped at  softclock+0x2d: movl
 %edx,0x4(%eax)
 13/6/2008 11:49:41ddb{0}
 13/6/2008 18:29:27ddb{0}
 end of buffer

You don't provide information about which version of OpenBSD you are
running. Anyway, this seems identical to PR 5794 which was fixed in
-current on May 17.



Re: pppoe problems

2007-08-14 Thread ThoujeanChan
my ppp.conf for you ref:

default:
 set log Phase Chat LCP IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i rl0
 set mtu max 1492
 set mru max 1492
 disable acfcomp protocomp
 deny acfcomp
 set speed sync
 set crtscts off 
 enable lqr 
 enable mssfixup
 set dial
 set login
 set authname xxx
 set authkey xx
 add! default HISADDR


On Sat, Aug 11, 2007 at 12:42:31PM +0200, Joerg Zinke wrote:
 Hi,
 
  Am 10.08.2007 um 19:42 schrieb Umaxx:
  
 
  Try deleting these two statements:
 
enable lqr
set lqrperiod 5
 
  The default is that these settings are disabled then and if it is  
  required they are automatically added. Since I disabled those two  
  settings my pppoe connection runs flawlessly.
 
 
 Thanks for the hint, I tried that already - was not working.
 
 Cheers,
 
 Joerg
 
 

-- 
Best Regards,
No.23

[EMAIL PROTECTED]



Re: pppoe problems

2007-08-13 Thread Gregory Edigarov

I use amd64 too.

Umaxx wrote:

oh this is exactly the same behavior as mine... which architecture did
you use? i use amd64.

On Fre Aug 10 10:40 , Gregory Edigarov sent:

  Hi!

  Umaxx wrote:
  
  
   i hope this stupid webmailer does not send this as html mail
  
   can you please give more details? is your userland ppp connecting?
  did
   you use snapshot or recent current?
  
  Yes, with most recent sources from cvs my userland ppp is
  connecting...
  But hangs shortly.
  First I thought it is the problem in the nfe driver, but after
  switching
  to rl it hangs too. So, it definitely not a problem with underlaying
  device.
  If I ping the other site (no matter which), I could see that it hangs
  after some 25 - 30 (depending on the situation) pings.
  
  
   is your kernel pppoe connecting or what happens exactly?
  
  My kernel mode pppoe even does not connect, though I've tried any
  option
  for many times.

  After looking at sources, it seems like something, in case of
  userland
  ppp, is screwed up with locks, possibly in if_tun.c, but I am not
  sure yet.

  In case of kernelmode pppoe - I can never use it . It never connect
  to
  any of my providers.
  
   maybe as cc to the list.
  
   regards,
  
  
  
   joerg
  
  
   *On Don Aug 9 15:18 , Gregory Edigarov sent:
  
   *
  
   Just want to make a confirmation with two other providers. Also I
   observe this behavior with both pppoe(4) and pppoe(8).
  
   Umaxx wrote:
resend, since stupid webmailer killed linebreaks:
   
   
   
hi,
   
after upgrading my router to -current the dsl pppoe connection
   does not work
anymore.
userland ppp connects fine but freezes after K30 seconds.
   freeze means the
connection is still there no errors shown in logs and ifconfig
   state is normal
but there is no more incoming traffic. the provider and modem
   hardware is ok
since i'm connected now through a netscreen to write this mail.
   i changed
nothing
in ppp configuration since years and disabled pf for testing...
   same problem.
as i can see in source changes: not much has changed in userland
   ppp and nfe
code
since 4.1.
   
i read in some forums that it would be better to user kernel
   pppoe...
so i tried to use kernel pppoe as workaround, but its does not
   connect. i used
following configuration in /etc/hostname.pppoe0:
   
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
authproto pap authname  authkey  up
!/sbin/route add default 0.0.0.1
   
and of course: up in /etc/hostname.nfe1
   
if i enable debug i see a lot of outgoing packages... and then a
   timeout after
a
while. reconnect and again the same...
it stays in the sppp phase of establish connection using pap
   authname 
   
I'm located in germany using arcor as provider.
anyone else using dsl pppoe (kernel/userland) in current or
   latest snapshots -
maybe in germany with arcor?
   
any hints are really welcome.
dmesg follows
   
regards,
   
joerg
   
OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8 17:31:49 CEST 2007
[EMAIL PROTECTED] .local
   [EMAIL PROTECTED] 
.local','','',''):/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145972224 (2046MB)
avail mem = 2072682496 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI
   DELUXE ACPI
BIOS
Revision 0603 date 06/27/2006
bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
cpu0:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
cpu1:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: 

Re: pppoe problems

2007-08-13 Thread Gregory Edigarov

James Lepthien wrote:

Hi,

Am 10.08.2007 um 19:42 schrieb Umaxx:



hi,


i can show my ppp.conf, because i have the same errors. this config 
was working since years, i tried to comment lqr lines today... but 
changed nothing in behavior.


default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i nfe1
 set server /var/run/pppoe  0177
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set crtscts off
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname **
 set authkey **
 add! default HISADDR
 enable dns
 resolv readonly
 enable mssfixup




Try deleting these two statements:


 enable lqr
 set lqrperiod 5



I don't have lqr enabled in my config. So it doesn't help.

--
With best regards,
   Gregory Edigarov



Re: pppoe problems

2007-08-11 Thread Joerg Zinke
Hi,

 Am 10.08.2007 um 19:42 schrieb Umaxx:
 

 Try deleting these two statements:

   enable lqr
   set lqrperiod 5

 The default is that these settings are disabled then and if it is  
 required they are automatically added. Since I disabled those two  
 settings my pppoe connection runs flawlessly.


Thanks for the hint, I tried that already - was not working.

Cheers,

Joerg



Re: pppoe problems

2007-08-10 Thread Gregory Edigarov

Hi!

Umaxx wrote:



i hope this stupid webmailer does not send this as html mail

can you please give more details? is your userland ppp connecting? did 
you use snapshot or recent current?


Yes, with most recent sources from cvs my userland ppp is connecting... 
But hangs shortly.
First I thought it is the problem in the nfe driver, but after switching 
to rl it hangs  too.  So, it definitely not a problem with underlaying 
device. 
If I ping the other site (no matter which), I could see that it hangs 
after  some 25 - 30 (depending on the situation) pings.



is your kernel pppoe connecting or what happens exactly?

My kernel mode pppoe even does not connect, though I've tried any option 
for many times.


After looking at sources, it seems like something, in  case of userland 
ppp, is screwed up with locks, possibly in if_tun.c, but I am not sure yet.


In case of kernelmode pppoe - I can never use it . It never connect to 
any of my providers.


maybe as cc to the list. 


regards,

 


joerg


*On Don Aug 9 15:18 , Gregory Edigarov sent:

*

Just want to make a confirmation with two other providers. Also I
observe this behavior with both pppoe(4) and pppoe(8).

Umaxx wrote:
 resend, since stupid webmailer killed linebreaks:



 hi,

 after upgrading my router to -current the dsl pppoe connection
does not work
 anymore.
 userland ppp connects fine but freezes after K30 seconds.
freeze means the
 connection is still there no errors shown in logs and ifconfig
state is normal
 but there is no more incoming traffic. the provider and modem
hardware is ok
 since i'm connected now through a netscreen to write this mail.
i changed
 nothing
 in ppp configuration since years and disabled pf for testing...
same problem.
 as i can see in source changes: not much has changed in userland
ppp and nfe
 code
 since 4.1.

 i read in some forums that it would be better to user kernel
pppoe...
 so i tried to use kernel pppoe as workaround, but its does not
connect. i used
 following configuration in /etc/hostname.pppoe0:

 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
 authproto pap authname  authkey  up
 !/sbin/route add default 0.0.0.1

 and of course: up in /etc/hostname.nfe1

 if i enable debug i see a lot of outgoing packages... and then a
timeout after
 a
 while. reconnect and again the same...
 it stays in the sppp phase of establish connection using pap
authname 

 I'm located in germany using arcor as provider.
 anyone else using dsl pppoe (kernel/userland) in current or
latest snapshots -
 maybe in germany with arcor?

 any hints are really welcome.
 dmesg follows

 regards,

 joerg

 OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8 17:31:49 CEST 2007
 [EMAIL PROTECTED]
javascript:top.opencompose('[EMAIL 
PROTECTED]','','',''):/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2145972224 (2046MB)
 avail mem = 2072682496 (1976MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
 bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI
DELUXE ACPI
 BIOS
 Revision 0603 date 06/27/2006
 bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
 acpi0 at mainbus0: rev 0
 acpi0: tables DSDT FACP SSDT MCFG APIC
 acpitimer at acpi0 not configured
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
 cpu0:


FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
512KB 64b/line
 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
 cpu1:


FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
512KB 64b/line
 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 5 (HUB0)
 acpicpu at acpi0 

Re: pppoe problems

2007-08-10 Thread Umaxx
oh this is exactly the same behavior as mine... which architecture did
you use? i use amd64.

On Fre Aug 10 10:40 , Gregory Edigarov sent:

  Hi!

  Umaxx wrote:
  
  
   i hope this stupid webmailer does not send this as html mail
  
   can you please give more details? is your userland ppp connecting?
  did
   you use snapshot or recent current?
  
  Yes, with most recent sources from cvs my userland ppp is
  connecting...
  But hangs shortly.
  First I thought it is the problem in the nfe driver, but after
  switching
  to rl it hangs too. So, it definitely not a problem with underlaying
  device.
  If I ping the other site (no matter which), I could see that it hangs
  after some 25 - 30 (depending on the situation) pings.
  
  
   is your kernel pppoe connecting or what happens exactly?
  
  My kernel mode pppoe even does not connect, though I've tried any
  option
  for many times.

  After looking at sources, it seems like something, in case of
  userland
  ppp, is screwed up with locks, possibly in if_tun.c, but I am not
  sure yet.

  In case of kernelmode pppoe - I can never use it . It never connect
  to
  any of my providers.
  
   maybe as cc to the list.
  
   regards,
  
  
  
   joerg
  
  
   *On Don Aug 9 15:18 , Gregory Edigarov sent:
  
   *
  
   Just want to make a confirmation with two other providers. Also I
   observe this behavior with both pppoe(4) and pppoe(8).
  
   Umaxx wrote:
resend, since stupid webmailer killed linebreaks:
   
   
   
hi,
   
after upgrading my router to -current the dsl pppoe connection
   does not work
anymore.
userland ppp connects fine but freezes after K30 seconds.
   freeze means the
connection is still there no errors shown in logs and ifconfig
   state is normal
but there is no more incoming traffic. the provider and modem
   hardware is ok
since i'm connected now through a netscreen to write this mail.
   i changed
nothing
in ppp configuration since years and disabled pf for testing...
   same problem.
as i can see in source changes: not much has changed in userland
   ppp and nfe
code
since 4.1.
   
i read in some forums that it would be better to user kernel
   pppoe...
so i tried to use kernel pppoe as workaround, but its does not
   connect. i used
following configuration in /etc/hostname.pppoe0:
   
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
authproto pap authname  authkey  up
!/sbin/route add default 0.0.0.1
   
and of course: up in /etc/hostname.nfe1
   
if i enable debug i see a lot of outgoing packages... and then a
   timeout after
a
while. reconnect and again the same...
it stays in the sppp phase of establish connection using pap
   authname 
   
I'm located in germany using arcor as provider.
anyone else using dsl pppoe (kernel/userland) in current or
   latest snapshots -
maybe in germany with arcor?
   
any hints are really welcome.
dmesg follows
   
regards,
   
joerg
   
OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8 17:31:49 CEST 2007
[EMAIL PROTECTED] .local
   [EMAIL PROTECTED] 
.local','','',''):/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145972224 (2046MB)
avail mem = 2072682496 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI
   DELUXE ACPI
BIOS
Revision 0603 date 06/27/2006
bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
cpu0:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
cpu1:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped 

Re: pppoe problems

2007-08-10 Thread Umaxx
hi,

i can show my ppp.conf, because i have the same errors. this config was
working since years, i tried to comment lqr lines today... but changed
nothing in behavior.

default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i nfe1
 set server /var/run/pppoe  0177
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set crtscts off
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname **
 set authkey **
 add! default HISADDR
 enable dns
 resolv readonly
 enable mssfixup 

On Fre Aug 10 16:54 , Gregory Edigarov sent:

  Oops, I am sorry, I cannot show you my ppp.conf. It's at home, and
  the
  pc is now turned off.

  James Lepthien wrote:
   Hi,
  
   Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
   Yes, with most recent sources from cvs my userland ppp is
   connecting... But hangs shortly.
   First I thought it is the problem in the nfe driver, but after
   switching to rl it hangs too. So, it definitely not a problem with
   underlaying device. If I ping the other site (no matter which), I
   could see that it hangs after some 25 - 30 (depending on the
   situation) pings.
  
   I did not see your ppp.conf but I had a similar problem and my
   connection dropped every now and then. I had to disable the lqr
   setting in my ppp.conf. Since then I never had any problems with my
   connection.
  
   Cheers,
   James
  
  

  --
  With best regards,
  Gregory Edigarov

_
versendet mit www.Oleco.de Mail - Anmeldung und Nutzung kostenlos! Oleco
www.netlcr.de jetzt auch mit SPAMSCHUTZ.



Re: pppoe problems

2007-08-10 Thread Umaxx
Hi,

On Don Aug 9 10:55 , Can Erkin Acar sent:

  Umaxx wrote:
   hi,
  
   after upgrading my router to -current the dsl pppoe connection does
  not work
   anymore.
   userland ppp connects fine but freezes after K30 seconds. freeze
  means the
   connection is still there no errors shown in logs and ifconfig
  state is normal
   but there is no more incoming traffic. the provider and modem
  hardware is ok
   since i'm connected now through a netscreen to write this mail. i
  changed
   nothing
   in ppp configuration since years and disabled pf for testing...
  same problem.
   as i can see in source changes: not much has changed in userland
  ppp and nfe
   code
   since 4.1.

  I would suggest you try with a different ethernet card if possible
  just to rule out that possibility. Have you checked your cables?
  You can also try to experiment with media settings (speed/duplex)
  of your card.

  I tried with different settings for example 10 baseT on nfe1, no
  difference.

  I have no other ethernet card around here, but Gregory Edigarov tried
  that already, no difference too.

 i read in some forums that it would be better to user kernel
pppoe...
 so i tried to use kernel pppoe as workaround, but its does not
connect. i used
 following configuration in /etc/hostname.pppoe0:

 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
 authproto pap authname  authkey  up
 !/sbin/route add default 0.0.0.1

Please read pppoe(4) for -current, you need to add -ifp pppoe0
in -current
to your route command.

  Yes I know the manpage, I tried that already before. I copy and
  pasted the lines from manpage, was not working too. The above example
  was the fifth attempt :)

First test using a kernel from the latest snapshot. With and
without MP.
This will make sure we are testing/debugging the same thing.

  I tried with and without MP and with enabled and disabled ACPI,
  everytime the same results. I downgraded (yes, I know its not
  suggested) to latest snapshots, same results, not working. Now I'm
  back on -current.

If your problem persists, please send me the debug outputs
from /var/log/messages after ifconfig pppoe0 debug
and the binary tcpdump of a session:

tcpdump -w pppoe.dump -i nfe1 not ip

  I send you the debug output in an extra mail not on the list.

  Thanks for your help,

  Cheers,

  Joerg 

  _
  versendet mit www.Oleco.de Mail - Anmeldung und Nutzung kostenlos!
  Oleco www.netlcr.de jetzt auch mit SPAMSCHUTZ.



Re: pppoe problems

2007-08-10 Thread Gregory Edigarov
Oops, I am sorry, I cannot show you my ppp.conf. It's at home, and the 
pc is now turned  off.


James Lepthien wrote:

Hi,

Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
Yes, with most recent sources from cvs my userland ppp is 
connecting... But hangs shortly.
First I thought it is the problem in the nfe driver, but after 
switching to rl it hangs  too.  So, it definitely not a problem with 
underlaying device. If I ping the other site (no matter which), I 
could see that it hangs after  some 25 - 30 (depending on the 
situation) pings.


I did not see your ppp.conf but I had a similar problem and my 
connection dropped every now and then. I had to disable the lqr 
setting in my ppp.conf. Since then I never had any problems with my 
connection.


Cheers,
James




--
With best regards,
   Gregory Edigarov



Re: pppoe problems

2007-08-10 Thread James Lepthien

Hi,

Am 10.08.2007 um 19:42 schrieb Umaxx:



hi,


i can show my ppp.conf, because i have the same errors. this config  
was working since years, i tried to comment lqr lines today... but  
changed nothing in behavior.


default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i nfe1
 set server /var/run/pppoe  0177
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set crtscts off
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname **
 set authkey **
 add! default HISADDR
 enable dns
 resolv readonly
 enable mssfixup




Try deleting these two statements:


 enable lqr
 set lqrperiod 5


The default is that these settings are disabled then and if it is  
required they are automatically added. Since I disabled those two  
settings my pppoe connection runs flawlessly.


Hope that helps.

Cheers,
James



Re: pppoe problems

2007-08-10 Thread James Lepthien

Hi,

Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
Yes, with most recent sources from cvs my userland ppp is  
connecting... But hangs shortly.
First I thought it is the problem in the nfe driver, but after  
switching to rl it hangs  too.  So, it definitely not a problem  
with underlaying device. If I ping the other site (no matter  
which), I could see that it hangs after  some 25 - 30 (depending on  
the situation) pings.


I did not see your ppp.conf but I had a similar problem and my  
connection dropped every now and then. I had to disable the lqr  
setting in my ppp.conf. Since then I never had any problems with my  
connection.


Cheers,
James



pppoe problems

2007-08-09 Thread Umaxx
 hi, after upgrading my router to -current the dsl pppoe connection does
not work anymore. userland ppp connects fine but freezes after K30
seconds. freeze means the connection is still there no errors shown in
logs and ifconfig state is normal but there is no more incoming traffic.
the provider and modem hardware is ok since i'm connected now through a
netscreen to write this mail. i changed nothing in ppp configuration
since years and disabled pf for testing... same problem. as i can see in
source changes: not much has changed in userland ppp and nfe code since
4.1. i read in some forums that it would be better to user kernel
pppoe... so i tried to use kernel pppoe as workaround, but its does not
connect. i used following configuration in /etc/hostname.pppoe0: inet
0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \ authproto pap authname
 authkey  up !/sbin/route add default 0.0.0.1 and of course: up
in /etc/hostname.nfe1 if i enable debug i see a lot of outgoing
packages... and then a timeout after a while. reconnect and again the
same... it stays in the sppp phase of establish connection using pap
authname  I'm located in germany using arcor as provider. anyone
else using dsl pppoe (kernel/userland) in current or latest snapshots -
maybe in germany with arcor? any hints are really welcome. dmesg
follows regards, joerg OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8
17:31:49 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem =
2145972224 (2046MB) avail mem = 2072682496 (1976MB) mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries) bios0: vendor
Phoenix Technologies, LTD version ASUS M2N32-SLI DELUXE ACPI BIOS
Revision 0603 date 06/27/2006 bios0: ASUSTeK Computer INC. M2N32-SLI
DELUXE acpi0 at mainbus0: rev 0 acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured acpimadt0 at acpi0 addr 0xfee0:
PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD
Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0:
64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 8 4MB
entries fully associative cpu0: DTLB 32 4KB entries fully associative, 8
4MB entries fully associative cpu0: apic clock running at 200MHz cpu1 at
mainbus0: apid 1 (application processor) cpu1: AMD Athlon(tm) 64 X2 Dual
Core Processor 4600+, 2410.98 MHz cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1:
64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 8 4MB
entries fully associative cpu1: DTLB 32 4KB entries fully associative, 8
4MB entries fully associative ioapic0 at mainbus0 apid 2 pa 0xfec0,
version 11, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (HUB0) acpicpu
at acpi0 not configured acpicpu at acpi0 not configured acpitz at acpi0
not configured acpibtn at acpi0 not configured cpu0: PowerNow! K8 2410
MHz: speeds: 2400 2200 2000 1800 1000 MHz pci0 at mainbus0 bus 0:
configuration mode 1 NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0
not configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not
configured NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not
configured ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1 pci1
at ppb0 bus 1 ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
pci2 at ppb1 bus 2 ppb2 at pci2 dev 0 function 0 Intel IOP332 PCIE-PCIX
rev 0x07 pci3 at ppb2 bus 3 arc0 at pci3 dev 14 function 0 Areca
ARC-1210 rev 0x00: apic 2 int 11 (irq 11) arc0: 4 SATA Ports, 256MB
SDRAM, FW Version: V1.42 2006-10-13 scsibus0 at arc0: 16 targets sd0 at
scsibus0 targ 0 lun 0: SCSI3 0/direct fixed sd0: 476837MB, 56514 cyl, 36
head, 480 sec, 512 bytes/sec, 976562176 sec total ppb3 at pci2 dev 0
function 2 Intel IOP332 PCIE-PCIX rev 0x07 pci4 at ppb3 bus 4 NVIDIA
MCP55 Memory rev 0xa1 at pci0 dev 8 function 0 not configured pcib0 at
pci0 dev 9 function 0 NVIDIA MCP55 ISA rev 0xa2 nviic0 at pci0 dev 9
function 1 NVIDIA MCP55 SMBus rev 0xa2 iic0 at nviic0 adt0 at iic0 addr
0x2e: adt7475 rev 0x69 iic1 at nviic0 iic1: addr 0x18 00=f0 01=00 02=00
03=f0 04=00 05=00 06=00 07=00 08=00 09=10 10=08 11=00 12=00 13=0a 14=00
15=00 16=00 17=34 20=95 21=92 22=00 32=00 NVIDIA MCP55 Memory rev 0xa2
at pci0 dev 9 function 2 

Re: pppoe problems

2007-08-09 Thread Umaxx
resend, since stupid webmailer killed linebreaks:



hi,

after upgrading my router to -current the dsl pppoe connection does not work
anymore.
userland ppp connects fine but freezes after K30 seconds. freeze means the
connection is still there no errors shown in logs and ifconfig state is normal
but there is no more incoming traffic. the provider and modem hardware is ok
since i'm connected now through a netscreen to write this mail. i changed
nothing
in ppp configuration since years and disabled pf for testing... same problem.
as i can see in source changes: not much has changed in userland ppp and nfe
code
since 4.1.

i read in some forums that it would be better to user kernel pppoe...
so i tried to use kernel pppoe as workaround, but its does not connect. i used
following configuration in /etc/hostname.pppoe0:

inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
authproto pap authname  authkey  up
!/sbin/route add default 0.0.0.1

and of course: up in /etc/hostname.nfe1

if i enable debug i see a lot of outgoing packages... and then a timeout after
a
while. reconnect and again the same...
it stays in the sppp phase of establish connection using pap authname 

I'm located in germany using arcor as provider.
anyone else using dsl pppoe (kernel/userland) in current or latest snapshots -
maybe in germany with arcor?

any hints are really welcome.
dmesg follows

regards,

joerg

OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug  8 17:31:49 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145972224 (2046MB)
avail mem = 2072682496 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI DELUXE ACPI
BIOS
Revision 0603 date 06/27/2006
bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (HUB0)
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpitz at acpi0 not configured
acpibtn at acpi0 not configured
cpu0: PowerNow! K8 2410 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1
pci1 at ppb0 bus 1
ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x07
pci3 at ppb2 bus 3
arc0 at pci3 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 2 int 11 (irq
11)
arc0: 4 SATA Ports, 256MB SDRAM, FW Version: V1.42 2006-10-13
scsibus0 at arc0: 16 targets
sd0 at scsibus0 targ 0 lun 0: Areca, ARC-1210-VOL#00, R001 SCSI3 0/direct
fixed
sd0: 476837MB, 56514 cyl, 36 head, 480 sec, 512 bytes/sec, 976562176 sec total
ppb3 at pci2 dev 0 function 2 Intel IOP332 PCIE-PCIX rev 0x07
pci4 at ppb3 bus 4
NVIDIA MCP55 Memory rev 0xa1 at pci0 dev 8 function 0 not configured
pcib0 at pci0 dev 9 function 0 NVIDIA MCP55 ISA rev 0xa2
nviic0 at pci0 dev 9 function 1 NVIDIA MCP55 SMBus rev 0xa2
iic0 at nviic0
adt0 at iic0 addr 0x2e: adt7475 rev 0x69
iic1 at nviic0
iic1: addr 0x18 00=f0 01=00 02=00 03=f0 04=00 05=00 06=00 07=00 08=00 09=10
10=08
11=00 12=00 13=0a 

Re: pppoe problems

2007-08-09 Thread Gregory Edigarov
Just want to make a confirmation with two other  providers.  Also I 
observe this behavior  with both  pppoe(4) and pppoe(8).


Umaxx wrote:

resend, since stupid webmailer killed linebreaks:



hi,

after upgrading my router to -current the dsl pppoe connection does not work
anymore.
userland ppp connects fine but freezes after K30 seconds. freeze means the
connection is still there no errors shown in logs and ifconfig state is normal
but there is no more incoming traffic. the provider and modem hardware is ok
since i'm connected now through a netscreen to write this mail. i changed
nothing
in ppp configuration since years and disabled pf for testing... same problem.
as i can see in source changes: not much has changed in userland ppp and nfe
code
since 4.1.

i read in some forums that it would be better to user kernel pppoe...
so i tried to use kernel pppoe as workaround, but its does not connect. i used
following configuration in /etc/hostname.pppoe0:

inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
authproto pap authname  authkey  up
!/sbin/route add default 0.0.0.1

and of course: up in /etc/hostname.nfe1

if i enable debug i see a lot of outgoing packages... and then a timeout after
a
while. reconnect and again the same...
it stays in the sppp phase of establish connection using pap authname 

I'm located in germany using arcor as provider.
anyone else using dsl pppoe (kernel/userland) in current or latest snapshots -
maybe in germany with arcor?

any hints are really welcome.
dmesg follows

regards,

joerg

OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug  8 17:31:49 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145972224 (2046MB)
avail mem = 2072682496 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI DELUXE ACPI
BIOS
Revision 0603 date 06/27/2006
bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (HUB0)
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpitz at acpi0 not configured
acpibtn at acpi0 not configured
cpu0: PowerNow! K8 2410 MHz: speeds: 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured
NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured
ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1
pci1 at ppb0 bus 1
ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x07
pci3 at ppb2 bus 3
arc0 at pci3 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 2 int 11 (irq
11)
arc0: 4 SATA Ports, 256MB SDRAM, FW Version: V1.42 2006-10-13
scsibus0 at arc0: 16 targets
sd0 at scsibus0 targ 0 lun 0: Areca, ARC-1210-VOL#00, R001 SCSI3 0/direct
fixed
sd0: 476837MB, 56514 cyl, 36 head, 480 sec, 512 bytes/sec, 976562176 sec total
ppb3 at pci2 dev 0 function 2 Intel IOP332 PCIE-PCIX rev 0x07
pci4 at ppb3 bus 4
NVIDIA MCP55 Memory rev 0xa1 at pci0 dev 8 function 0 not configured
pcib0 at pci0 dev 9 function 0 NVIDIA MCP55 ISA rev 0xa2
nviic0 at pci0 dev 9 function 1 NVIDIA MCP55 SMBus rev 0xa2
iic0 at nviic0
adt0 at iic0 

Re: pppoe problems

2007-08-09 Thread Can Erkin Acar
Umaxx wrote:
 hi,
 
 after upgrading my router to -current the dsl pppoe connection does not work
 anymore.
 userland ppp connects fine but freezes after K30 seconds. freeze means the
 connection is still there no errors shown in logs and ifconfig state is normal
 but there is no more incoming traffic. the provider and modem hardware is ok
 since i'm connected now through a netscreen to write this mail. i changed
 nothing
 in ppp configuration since years and disabled pf for testing... same problem.
 as i can see in source changes: not much has changed in userland ppp and nfe
 code
 since 4.1.

I would suggest you try with a different ethernet card if possible
just to rule out that possibility. Have you checked your cables?
You can also try to experiment with media settings (speed/duplex)
of your card.

 i read in some forums that it would be better to user kernel pppoe...
 so i tried to use kernel pppoe as workaround, but its does not connect. i used
 following configuration in /etc/hostname.pppoe0:
 
 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
 authproto pap authname  authkey  up
 !/sbin/route add default 0.0.0.1

Please read pppoe(4) for -current, you need to add -ifp pppoe0 in -current
to your route command.

First test using a kernel from the latest snapshot. With and without MP.
This will make sure we are testing/debugging the same thing.

If your problem persists, please send me the debug outputs
from /var/log/messages after ifconfig pppoe0 debug
and the binary tcpdump of a session:

tcpdump -w pppoe.dump -i nfe1 not ip

Thanks

Can


 and of course: up in /etc/hostname.nfe1
 
 if i enable debug i see a lot of outgoing packages... and then a timeout after
 a
 while. reconnect and again the same...
 it stays in the sppp phase of establish connection using pap authname 
 
 I'm located in germany using arcor as provider.
 anyone else using dsl pppoe (kernel/userland) in current or latest snapshots -
 maybe in germany with arcor?
 
 any hints are really welcome.
 dmesg follows
 
 regards,
 
 joerg
 
 OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug  8 17:31:49 CEST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2145972224 (2046MB)
 avail mem = 2072682496 (1976MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
 bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI DELUXE ACPI
 BIOS
 Revision 0603 date 06/27/2006
 bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
 acpi0 at mainbus0: rev 0
 acpi0: tables DSDT FACP SSDT MCFG APIC
 acpitimer at acpi0 not configured
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
 cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 5 (HUB0)
 acpicpu at acpi0 not configured
 acpicpu at acpi0 not configured
 acpitz at acpi0 not configured
 acpibtn at acpi0 not configured
 cpu0: PowerNow! K8 2410 MHz: speeds: 2400 2200 2000 1800 1000 MHz
 pci0 at mainbus0 bus 0: configuration mode 1
 NVIDIA C51 Host rev 0xa2 at pci0 dev 0 function 0 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 1 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 2 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 3 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 4 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 5 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 6 not configured
 NVIDIA C51 Memory rev 0xa2 at pci0 dev 0 function 7 not configured
 ppb0 at pci0 dev 3 function 0 NVIDIA C51 PCIE rev 0xa1
 pci1 at ppb0 bus 1
 ppb1 at pci0 dev 4 function 0 NVIDIA C51 PCIE rev 0xa1
 pci2 at ppb1 bus 2
 ppb2 at pci2 dev 0 function 0 Intel IOP332 PCIE-PCIX rev 0x07
 pci3 at ppb2 bus 3
 arc0 at pci3 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 2 

Bellnet.ca PPPOE Problems

2006-09-06 Thread Keith Page
I've been having trouble since 3.9 trying to get BELL dsl with a 
reserved ip to actually work as a second connection on my openbsd 
machine. I've upgrade to the Aug 31st snapshot of 4 to try and use the 
new ifconfig pppoe commands.  I'm getting sporadic and not always 
directly reproducible problems.


hostname.pppoe0

inet 70.52.123.23 255.255.255.255 64.230.199.12 pppoedev rl1 authproto 
pap authname [EMAIL PROTECTED] authkey BELL2005 up

!/sbin/route add 64.230.199.12 70.52.242.23


1st Tcpdump

tcpdump: listening on pppoe0, link-type PPP_ETHER
12:24:32.019294 Configure-Request, Magic-Number=874803770, Vendor-Ext
12:24:32.020965 Configure-Request, Max-Rx-Unit=1492, Auth-Prot PAP, 
Magic-Number=67343315, Vendor-Ext
12:24:32.020981 Configure-Ack, Max-Rx-Unit=1492, Auth-Prot PAP, 
Magic-Number=67343315, Vendor-Ext

12:24:32.031198 Configure-Ack, Magic-Number=874803770, Vendor-Ext
12:24:32.031213 Authenticate-Request, [EMAIL PROTECTED], 
Passwd=BELL2005
12:24:33.067456 Authenticate-Request, [EMAIL PROTECTED], 
Passwd=BELL2005

12:24:33.335544 Authenticate-Ack
*12:24:33.335563 Configure-Request, Unknown IPCP code 0x61
12:24:33.361609 Configure-Ack, Unknown IPCP code 0x0*
12:24:33.543443 Configure-Request, IP-Address=64.230.199.12
12:24:33.543458 Configure-Ack, IP-Address=64.230.199.12
*12:24:33.569420 Terminate-Request, Unknown IPCP code 0x0
12:24:33.569428 Terminate-Ack, Unknown IPCP code 0x0*

2nd Tcpdump

# ifconfig pppoe0 up; tcpdump -i pppoe0 
tcpdump: listening on pppoe0, link-type PPP_ETHER

12:25:42.012908 Configure-Request, Magic-Number=67551440, Vendor-Ext
12:25:42.015055 Configure-Request, Max-Rx-Unit=1492, Auth-Prot PAP, 
Magic-Number=1151254039, Vendor-Ext
12:25:42.015070 Configure-Ack, Max-Rx-Unit=1492, Auth-Prot PAP, 
Magic-Number=1151254039, Vendor-Ext

12:25:42.026045 Configure-Ack, Magic-Number=67551440, Vendor-Ext
12:25:42.026060 Authenticate-Request, [EMAIL PROTECTED], 
Passwd=BELL2005
12:25:43.062236 Authenticate-Request, [EMAIL PROTECTED], 
Passwd=BELL2005

12:25:43.330642 Authenticate-Ack
12:25:43.330660 Terminate-Request
12:25:43.356947 Terminate-Ack


If i destroy the pppoe0 adapter and use sh netstart pppoe0 to recreate 
it i'll get the same results over, over. Occasionally it will connect 
without the IPCP errors listed in the first dump.




Re: kernel pppoe problems

2005-05-24 Thread Adam Gleave
In that case, it's likely not a PPPoE problem at all but a name server
resolution, surely? Try adding it back and pinging an ip rather than a
domain, that should tell you.

On 24/05/05, Chris Zakelj [EMAIL PROTECTED] wrote:
 Jason Ackley wrote:

 Is this something that you are able to repeat? E.g. Simply does not work
  without the debug flag and comes up as soon as you add it?
  (just trying to make sure it is the same thing that I have seen)
 
 Getting it working for me didn't include the 'debug' statement... it
 appears that removing lookup file bind from /etc/resolv.conf was the
 magic pill in my case.  I'll try putting that back and adding the debug
 flag tomorrow, and then watching what happens.



--
Adam Gleave
[ OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005 ]



Re: kernel pppoe problems

2005-05-24 Thread Can Erkin Acar
Jason Ackley wrote:
 Can you try turning on the debug flag to pppoe0 ?

Good advice, debug mode gives lots of useful output
also tcpdump on the parent interface, eg. 'tcpdump -nei fxp0 no ip'
helps.

 I just tested this in a lab setup and it would not connect unless the
 debug flag was set on the interface. The other side was a cisco and it
 seems that they could not get out of the configuration negotiation
 phase (cisco was never getting far enough along to authenticate via 
 RADIUS server).

 If I had 'debug' set on the interface, it came up instantly.

now, this is not what the debug flag is intended for. it is also
not good for system logs, so instead of discussing such 'workarounds'
which, unfortunately live much longer than the bugs themselves.
I suggest we try to identify the problem.

 This was tested on 3.7-release kernel and a -current as of a day or so 
 ago on i386 and amd64. I am checking my setup now to make sure all my 
 boxes are in sync.

I can't see any problem report about this in my inbox
(which is quite a mess nowadays, so it is equally likely
that I missed it),

If you can spare some time to send me pppoe debug outputs,
tcpdumps with  without the debug flag, and if possible
logs/dumps from the cisco side, I we can do something
about the problem.

Can



Re: kernel pppoe problems

2005-05-24 Thread Chris Zakelj

Can Erkin Acar wrote:


I can't see any problem report about this in my inbox
(which is quite a mess nowadays, so it is equally likely
that I missed it),

If you can spare some time to send me pppoe debug outputs,
tcpdumps with  without the debug flag, and if possible
logs/dumps from the cisco side, I we can do something
about the problem.

Can

Time to pull out the I feel stupid hat, as I think I've figured out 
exactly what went wrong... I wasn't able to recreate my problem at all 
on the currently functional system, so I grabbed my 486 and did a fresh 
install on it.  Moved the modem over and rebooted.  Sure enough, it had 
the same problem I originally experienced.  It connected, got an IP 
address, but couldn't ping anything.  Then I remembered that after 
installing, I've always needed to move /etc/mygate out of the way since 
ppp assigns the gateway as part of the connection process.  So I renamed 
it, rebooted, and things worked exactly as they should.  I must have 
done that at the same time I changed /etc/resolv.conf, and just not 
remembered.  I'd be happy to submit a diff to the pppoe(4) manpage about 
this, once I figure out how to write one.


Can, there is no problem report in your inbox from me, as in all cases 
but one so far, the problem has been with me, not with the OS.  I can't 
speak for Jason's Cisco issues, though.




Re: kernel pppoe problems

2005-05-23 Thread Jason Ackley
On Mon, 23 May 2005, Chris Zakelj wrote:

 Ok, this probably isn't too big a surprise to frequent readers, but I'm 
 having trouble with the new kernelized pppoe.  From the console messages 
 below, it looks like it's dialing (for lack of a better term) and 
 logging in successfully:
 
 May 23 00:42:47 bbhhs96 /bsd: pppoe0: phase establish
 May 23 00:42:47 bbhhs96 /bsd: pppoe0: phase authenticate
 May 23 00:42:49 bbhhs96 /bsd: pppoe0: phase network

 Can you try turning on the debug flag to pppoe0 ?

 I just tested this in a lab setup and it would not connect unless the
 debug flag was set on the interface. The other side was a cisco and it
 seems that they could not get out of the configuration negotiation
 phase (cisco was never getting far enough along to authenticate via 
 RADIUS server).

 If I had 'debug' set on the interface, it came up instantly.

 This was tested on 3.7-release kernel and a -current as of a day or so 
 ago on i386 and amd64. I am checking my setup now to make sure all my 
 boxes are in sync.


cheers,
--
jason



Re: kernel pppoe problems

2005-05-23 Thread Adam Gleave
Just to point something out...

-
# route show
Routing tables

Internet:
DestinationGatewayFlagsRefs  UseMtu  Interface
default0.0.0.1UGS 0 3757  -   pppoe0
0.0.0.1defaultUH  00  -   pppoe
# ping -c 2 google.com
PING google.com (216.239.37.99): 56 data bytes
64 bytes from 216.239.37.99: icmp_seq=0 ttl=245 time=98.521 ms
64 bytes from 216.239.37.99: icmp_seq=1 ttl=245 time=99.414 ms
--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 98.521/98.967/99.414/0.546 ms
-

Seems normal the routing output

Might sound a stupid question, but are your nameservers ok? (Ok, you
proboably thought of that and are pinging an ip...)

On 23/05/05, Chris Zakelj [EMAIL PROTECTED] wrote:
 Ok, this probably isn't too big a surprise to frequent readers, but I'm
 having trouble with the new kernelized pppoe.  From the console messages
 below, it looks like it's dialing (for lack of a better term) and
 logging in successfully:
 
 May 23 00:42:47 bbhhs96 /bsd: pppoe0: phase establish
 May 23 00:42:47 bbhhs96 /bsd: pppoe0: phase authenticate
 May 23 00:42:49 bbhhs96 /bsd: pppoe0: phase network
 
 ifconfig seems to support this:
 
 newtest# ifconfig
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
 inet 127.0.0.1 netmask 0xff00
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 address: 00:d0:b7:a0:dd:3f
 media: Ethernet autoselect (10baseT)
 status: active
 inet6 fe80::2d0:b7ff:fea0:dd3f%fxp0 prefixlen 64 scopeid 0x1
 fxp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 address: 00:a0:c9:77:80:0d
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255
 inet6 fe80::2a0:c9ff:fe77:800d%fxp1 prefixlen 64 scopeid 0x2
 ral0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
 address: 00:11:50:14:f6:a0
 ieee80211: nwid  100dBm
 media: IEEE802.11 autoselect
 status: no network
 pflog0: flags=0 mtu 33224
 pfsync0: flags=0 mtu 2020
 enc0: flags=0 mtu 1536
 pppoe0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
 dev: fxp0 state: session
 sid: 0x50f4 PADI retries: 3 PADR retries: 0 time: 0:1:2
 inet 68.77.176.95 -- 0.0.0.1 netmask 0x
 inet6 fe80::2d0:b7ff:fea0:dd3f%pppoe0 -  prefixlen 64 scopeid 0x8
 
 The IP address looks valid, and it's in the same the netblocks I was
 being assigned previously, but the gateway isn't being updated.  100%
 packet loss when pinging a remote host confirms this.  I have not
 activated PF yet, since knowing the connection itself is working is
 rather important before I throw filtering into the mix.  My
 /etc/hostname.pppoe0 is taken nearly verbatim from the pppoe(8) man page:
 
 newtest# cat /etc/hostname.pppoe0
 pppoedev fxp0
 !/sbin/ifconfig fxp0 up
 !/usr/sbin/spppcontrol \$if myauthproto=pap [EMAIL PROTECTED]
 myauthkey=imnottellin
 !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x
 !/sbin/route add default 0.0.0.1
 up
 
 According to the manpage, 0.0.0.1 is considered a remote-assigned
 wildcard, but it doesn't seem to actually be working that way (I also
 tried 0.0.0.0 just in case).  I removed the /etc/mygate file that was
 created during the install process, so that's not getting in the way,
 either.  The IPv4 routing table after roughly 5 minutes:
 
 newtest# route show
 Routing tables
 
 Internet:
 DestinationGatewayFlagsRefs  UseMtu
 Interface
 default0.0.0.1UGS 03  -   pppoe0
 0.0.0.1defaultUH  00  -   pppoe0
 loopback   localhost  UGRS00  33224   lo0
 localhost  localhost  UH  00  33224   lo0
 192.168.0/24   link#2 UC  00  -   fxp1
 BASE-ADDRESS.MCAST localhost  URS 00  33224   lo0
 
 I'm guessing I'm missing something that's probably obvious, but being
 obvious, it's eluding me.  Someone have a cluestick handy?  Oh, dmesg...
 
 newtest# cat /var/run/dmesg.boot
 OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel Pentium (P54C) (GenuineIntel 586-class) 171 MHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8
 cpu0: F00F bug workaround installed
 real mem  = 100245504 (97896K)
 avail mem = 84451328 (82472K)
 using 1249 buffers containing 5115904 bytes (4996K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(c8) BIOS, date 02/26/97, BIOS32 rev. 0 @ 0xfb340
 apm0 at bios0: Power Management spec V1.2
 apm0: APM engage (device 1): 

Re: kernel pppoe problems

2005-05-23 Thread Jason Ackley
On Mon, 23 May 2005, Chris Zakelj wrote:

 I'm up and running (for the moment, anyway), but for my edification, and 
 since it may help others, were you suggesting I place:
 !\sbin\ifconfig pppoe0 debug
 into \etc\hostname.pppoe0, probably the line before 'route add'?

 It is a generic flag to the interface, no need to shell out (!) and do
it. You can add it ('debug') on the same line as the 'pppoedev
interface'. E.g.

pppoedev fxp1 debug


 Is this something that you are able to repeat? E.g. Simply does not work 
 without the debug flag and comes up as soon as you add it?
 (just trying to make sure it is the same thing that I have seen)


cheers,
--
jason



Re: kernel pppoe problems

2005-05-23 Thread Chris Zakelj

Jason Ackley wrote:

Is this something that you are able to repeat? E.g. Simply does not work 
without the debug flag and comes up as soon as you add it?

(just trying to make sure it is the same thing that I have seen)

Getting it working for me didn't include the 'debug' statement... it 
appears that removing lookup file bind from /etc/resolv.conf was the 
magic pill in my case.  I'll try putting that back and adding the debug 
flag tomorrow, and then watching what happens.