|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
[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 Code:
# . /etc/netstart pppoe0 start ifconfig: SIOCSSPPPPARAMS(SPPPIOSXAUTH): Device busy ifconfig: unspecified protocol add net default: gateway 0.0.0.1 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 Last edited by mamalos; 8th January 2016 at 08:45 AM. |
|
|||
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$ 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. |
|
|||
HA!!! It was that easy and it wouldn't cross my mind no matter what!!
Thanks guys!! Boo to the man page!! |
|
|||
...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?
|
Thread Tools | |
Display Modes | |
|
|
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 |