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 7th January 2016
mamalos mamalos is offline
New User
 
Join Date: Dec 2015
Posts: 8
Default [SOLVED] . /etc/netstart pppoe0 start fails in 5.8.

Hi everybody,

I'm trying to use OpenBSD 5.8 to initiate a pppoe connection using an alix apu1.d. Although I am able to accomplish it using ifconfig directly (by omitting NONE), I am getting an error when using netstart. As expected, the same problem occurs when booting as well, which means that I'm not able to initiate my pppoe connection properly on boot (OK, I know I can achieve the same result using /etc/rc.local, but that'll be my last resort).

Here's my pppoe configuration:

Code:
# cat /etc/hostname.pppoe0                                                                                          
inet 0.0.0.0 255.255.255.255 NONE \ 
        pppoedev re1 authproto pap \ 
        authname 'myuser' authkey 'mypass'
dest 0.0.0.1 
!/sbin/route add default -ifp pppoe0 0.0.0.1
which was copied from pppoe(4) man page. The error I'm getting is:

Code:
# . /etc/netstart pppoe0 start                                                                                                                       
ifconfig: SIOCSSPPPPARAMS(SPPPIOSXAUTH): Device busy
ifconfig: unspecified protocol
add net default: gateway 0.0.0.1
and the pppoe0 interface created looks like this:
Code:
# ifconfig pppoe0
pppoe0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1492
        priority: 0
        dev: re1 state: initial
        sid: 0x0 PADI retries: 1 PADR retries: 0
        groups: pppoe egress
        status: no carrier
        inet 0.0.0.0 --> 0.0.0.0 netmask 0xffffffff
Any help would be greatly appreciated, so thanks in advance.

Last edited by mamalos; 8th January 2016 at 08:45 AM.
Reply With Quote
  #2   (View Single Post)  
Old 7th January 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Hello, and welcome!

I'm going to guess that your copy/paste inadvertently included spaces beyond the backslash used for continuation.

The backslash parse is actually used to "escape" the very next character, which when the file is correct should be a newline (ASCII 0x0a), not a space (ASCII 0x20).

Check the hostname.pppoe0 file for any errant spaces beyond the backslashes.
Reply With Quote
  #3   (View Single Post)  
Old 7th January 2016
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

When I copy and paste your stuff in a temp file and display it on a Linux Mint box I get the following:

Code:
$  cat -E /tmp/aap
inet 0.0.0.0 255.255.255.255 NONE \ $
        pppoedev re1 authproto pap \ $
        authname 'myuser' authkey 'mypass'$
dest 0.0.0.1 $
!/sbin/route add default -ifp pppoe0 0.0.0.1$
On the first two lines you have to delete the space or blank after the blackslash.

Note that on Linux cat -E displays a '$' at the end of each line. On OpenBSD you have to use -e. See cat(1).

EDIT I just checked pppoe(4) and those erroneous spaces are in there. So you can blame that man page
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 7th January 2016 at 07:16 PM.
Reply With Quote
  #4   (View Single Post)  
Old 8th January 2016
mamalos mamalos is offline
New User
 
Join Date: Dec 2015
Posts: 8
Default

HA!!! It was that easy and it wouldn't cross my mind no matter what!!

Thanks guys!! Boo to the man page!!
Reply With Quote
  #5   (View Single Post)  
Old 8th January 2016
mamalos mamalos is offline
New User
 
Join Date: Dec 2015
Posts: 8
Default

...btw, I edited the subject's title to declare that it's solved, but the new title does not appear in the forum's treads list. Is there a way to do it?
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox-generate_menu doesn't work nihonto NetBSD Package System (pkgsrc) 4 5th April 2022 03:03 PM
gnome doesn't start philo_neo71 OpenBSD Packages and Ports 27 18th August 2015 05:24 PM
Help: NAT doesn't work on OpenBSD 4.9 lcxpics OpenBSD General 1 18th May 2011 09:46 AM
ln -f at boot doesn't work lordyan OpenBSD General 3 19th February 2009 03:50 PM
KDE (X-Server) in FreeBSD 7.0 doesn't work correctly louie FreeBSD General 6 7th May 2008 11:53 PM


All times are GMT. The time now is 06:50 PM.


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