Re: PPPoE problem

2014-01-15 Thread Martijn Rijkeboer
> Does it work with a configuration such as this?
>
> inet 123.123.123.1 255.255.255.128 NONE \
> pppoedev em2 authproto pap \
> authname '@solcon.net' authkey '' up
> dest 0.0.0.1
> ! /sbin/route add default 123.123.123.1
>
> I'm using a configuration like that with static IP over pppoe
> from a german ISP and it works fine.
>
> You might see some hints logged to /var/log/messages if you
> run 'ifconfig pppoe0 debug'.

Unfortunately I can't try this setup anymore, since my ISP has changed
the setup to a static route without PPPoE which is currently operational.


Kind regards,


Martijn Rijkeboer



Re: PPPoE problem

2014-01-15 Thread Stefan Sperling
On Tue, Jan 14, 2014 at 08:01:39PM +0100, Martijn Rijkeboer wrote:
> Hi,
> 
> I'm trying to setup a PPPoE connection to my ISP (solcon.nl). I've read
> pppoe(4) and pppoe(8) and got the following configuration:
> 
> cat /etc/hostname.pppoe0
>   inet 0.0.0.0 255.255.255.255 NONE \
> pppoedev em2 authproto pap \
> authname '@solcon.net' authkey '' up
>   dest 0.0.0.1
>   !/sbin/route add default -ifp pppoe0 0.0.0.1
> 
> 
> cat /etc/hostname.em2
>   up
> 
> 
> According to my ISP I should specify my IP-address and netmask which makes
> the following:
> 
> cat /etc/hostname.pppoe0
>   inet 123.123.123.1 255.255.255.128 NONE \
> pppoedev em2 authproto pap \
> authname '@solcon.net' authkey '' up
>   dest 0.0.0.1
>   !/sbin/route add default -ifp pppoe0 0.0.0.1
> 
> 
> In both cases I'm getting "pppoe0: pap failure". This seems to indicate
> that the authentications is wrong, but according to my ISP they don't see
> any traffic from me to their radius server and we double checked the
> username and password.

Does it work with a configuration such as this?

inet 123.123.123.1 255.255.255.128 NONE \
pppoedev em2 authproto pap \
authname '@solcon.net' authkey '' up
dest 0.0.0.1
! /sbin/route add default 123.123.123.1

I'm using a configuration like that with static IP over pppoe
from a german ISP and it works fine.

You might see some hints logged to /var/log/messages if you
run 'ifconfig pppoe0 debug'.



PPPoE problem

2014-01-14 Thread Martijn Rijkeboer
Hi,

I'm trying to setup a PPPoE connection to my ISP (solcon.nl). I've read
pppoe(4) and pppoe(8) and got the following configuration:

cat /etc/hostname.pppoe0
  inet 0.0.0.0 255.255.255.255 NONE \
pppoedev em2 authproto pap \
authname '@solcon.net' authkey '' up
  dest 0.0.0.1
  !/sbin/route add default -ifp pppoe0 0.0.0.1


cat /etc/hostname.em2
  up


According to my ISP I should specify my IP-address and netmask which makes
the following:

cat /etc/hostname.pppoe0
  inet 123.123.123.1 255.255.255.128 NONE \
pppoedev em2 authproto pap \
authname '@solcon.net' authkey '' up
  dest 0.0.0.1
  !/sbin/route add default -ifp pppoe0 0.0.0.1


In both cases I'm getting "pppoe0: pap failure". This seems to indicate
that the authentications is wrong, but according to my ISP they don't see
any traffic from me to their radius server and we double checked the
username and password.

Since they don't support OpenBSD they gave me a sample config for Cisco:

  interface FastEthernet0/0
   description LAN klant
   ip address 123.123.123.1 255.255.255.128
   duplex auto
   speed auto
   no keepalive
  !
  interface FastEthernet0/1
   description WAN
   no ip address
   duplex full
   speed 100
   pppoe enable
   pppoe-client dial-pool-number 1
  !
  interface Dialer0
   ip unnumbered FastEthernet0/0
   encapsulation ppp
   ip tcp adjust-mss 1452
   dialer pool 1
   dialer idle-time
   dialer-group 1
   no cdp enable
   ppp authentication pap callin
   ppp pap sent-username @solcon.net password 
  !
  ip route 0.0.0.0 0.0.0.0 Dialer0 permanent


Any suggestions on what I'm doing wrong or how to configure this?

Kind regards,


Martijn Rijkeboer



Re: kernel pppoe problem : pppoe0 : timeout

2005-10-09 Thread Can Erkin Acar
You possibly have other/previous pppoe sessions not being
terminated correctly. The reason is that, the kernel pppoe
does not terminate unknown sessions (ie. not handled by itself).
see pppoe(4) manual page for details, compiling a kernel
with PPPOE_TERM_UNKNOWN_SESSIONS option may help.

Can



Re: kernel pppoe problem : pppoe0 : timeout

2005-10-06 Thread Didier Wiroth
concerning my original post:
sorry, I made a typo error in my hostname.pppoe0.
I have this line:
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x

I do NOT have  "link1" in the line, as written in the previous mail!!!



kernel pppoe problem : pppoe0 : timeout

2005-10-06 Thread Didier Wiroth
Hello,
(sorry for the long post!)
I used the ppp pppoe (for my dsl connection)  for some while and decided to 
switch to the kernel implementation.

I'm actually having a problem with kernel pppoe, after a reboot or when I try 
to connect/reconnect it takes about 
1 minute before it is able to connect. While running "ifconfig pppoe0 debug" 
(see below) I noticed a few "pppoe0: timeout"

When I used the ppp's pppoe implementation the connection and reconnection were 
almost instant. 

For information, here is my old ppp.conf:

default:
 set log Phase tun command
 set redial 7 0
 set reconnect 7 1

provider:
 set device "!/usr/sbin/pppoe -i sis2"
 disable acfcomp iface-alias deflate protocomp vjcomp pred1 ipv6cp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set speed sync
 enable lqr
 set lqrperiod 5
 set dial
 set login
 set timeout 0
 set authname "xyz"
 set authkey xyz
 add default HISADDR
 enable mssfixup
 set server /var/run/internet "" 0177


Now, here is my new hostname.pppoe0
pppoedev sis2
!/sbin/ifconfig sis2 up media 10baseT 
!/usr/sbin/spppcontrol \$if myauthproto=pap myauthname=xyz \
myauthkey=xyz
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x link1
!/sbin/route add default 0.0.0.1
!/usr/local/sbin/noip2 -c /etc/no-ip2.conf
up

Here is my dmesg and "ifconfig pppoe0 debug" output:

Oct  6 19:29:10 gate /bsd: syncing disks... done
Oct  6 19:29:10 gate /bsd: OpenBSD 3.8 (GENERIC) #1: Fri Sep 30 21:09:23 CEST 
2005
Oct  6 19:29:10 gate /bsd: [EMAIL 
PROTECTED]:/home/cvs/OPENBSD_3_8/src/sys/arch/i386/compile/GENERIC
Oct  6 19:29:10 gate /bsd: cpu0: Geode(TM) Integrated Processor by National 
Semi ("Geode by NSC" 586-class) 267 MHz
Oct  6 19:29:10 gate /bsd: cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
Oct  6 19:29:10 gate /bsd: cpu0: TSC disabled
Oct  6 19:29:10 gate /bsd: real mem  = 133799936 (130664K)
Oct  6 19:29:10 gate /bsd: avail mem = 115470336 (112764K)
Oct  6 19:29:10 gate /bsd: using 1658 buffers containing 6791168 bytes (6632K) 
of memory
Oct  6 19:29:10 gate /bsd: mainbus0 (root)
Oct  6 19:29:10 gate /bsd: bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/29, 
BIOS32 rev. 0 @ 0xf7840
Oct  6 19:29:10 gate /bsd: pcibios0 at bios0: rev 2.0 @ 0xf/0x1
Oct  6 19:29:10 gate /bsd: pcibios0: pcibios_get_intr_routing - function not 
supported
Oct  6 19:29:10 gate /bsd: pcibios0: PCI IRQ Routing information unavailable.
Oct  6 19:29:10 gate /bsd: pcibios0: PCI bus #0 is the last bus
Oct  6 19:29:10 gate /bsd: bios0: ROM list: 0xc8000/0x9000
Oct  6 19:29:10 gate /bsd: cpu0 at mainbus0
Oct  6 19:29:10 gate /bsd: pci0 at mainbus0 bus 0: configuration mode 1 (bios)
Oct  6 19:29:10 gate /bsd: pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 
0x00
Oct  6 19:29:10 gate /bsd: sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" 
rev 0x00: DP83816A, irq 10, address 00:00:24:c2:9d:38
Oct  6 19:29:10 gate /bsd: nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
Oct  6 19:29:10 gate /bsd: sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" 
rev 0x00: DP83816A, irq 10, address 00:00:24:c2:9d:39
Oct  6 19:29:10 gate /bsd: nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
Oct  6 19:29:10 gate /bsd: sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" 
rev 0x00: DP83816A, irq 10, address 00:00:24:c2:9d:3a
Oct  6 19:29:11 gate /bsd: nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
Oct  6 19:29:11 gate /bsd: hifn0 at pci0 dev 10 function 0 "Hifn 7955/7954" rev 
0x00: LZS 3DES ARC4 MD5 SHA1 RNG AES PK, 32KB dram, irq 11
Oct  6 19:29:11 gate /bsd: gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" 
rev 0x00
Oct  6 19:29:11 gate /bsd: gpio0 at gscpcib0: 64 pins
Oct  6 19:29:11 gate /bsd: "NS SC1100 SMI/ACPI" rev 0x00 at pci0 dev 18 
function 1 not configured
Oct  6 19:29:11 gate /bsd: pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" 
rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to 
compatibility
Oct  6 19:29:11 gate /bsd: wd0 at pciide0 channel 0 drive 0: 
Oct  6 19:29:11 gate /bsd: wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
Oct  6 19:29:11 gate /bsd: wd1 at pciide0 channel 0 drive 1: 
Oct  6 19:29:11 gate /bsd: wd1: 1-sector PIO, LBA, 245MB, 501760 sectors
Oct  6 19:29:11 gate /bsd: wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
Oct  6 19:29:11 gate /bsd: wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
Oct  6 19:29:11 gate /bsd: geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" 
rev 0x00: iid 6 revision 3 wdstatus 0
Oct  6 19:29:11 gate /bsd: ohci0 at pci0 dev 19 function 0 "Compaq USB 
OpenHost" rev 0x08: irq 5, version 1.0, legacy support
Oct  6 19:29:11 gate /bsd: usb0 at ohci0: USB revision 1.0
Oct  6 19:29:11 gate /bsd: uhub0 at usb0
Oct  6 19:29:11 gate /bsd: uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
Oct  6 19:29:11 gate /bsd: uhub0: 3 ports with 3 removable, self powered
Oct  6 19:29:11 gate /bsd: isa0 at gscpcib0
Oct  6 19:29:11 gate /bsd: isadma0 at isa0
Oct  6 19:29:11 gate /bsd: pckbc0 at isa0 port 0x60/5
Oct  6 19:29:11 gate /bsd: pckb