Hi...
I'm trying to use the in-kernel pppoe under 3.8.
It works fine, but there's something I cannot achieve.
Right now, this is what I have in /etc/hostname.pppoe0:
pppoedev rl1
!/sbin/ifconfig rl1 up
!/usr/sbin/spppcontrol \$if \
myauthproto=pap \
myauthname="username" \
myauthkey="password"
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0xffffffff
!/sbin/route add default 0.0.0.1
It works like a charm. But the thing is that:
- I have a fixed public IP
- I need to start an application from rc.local which will bind on the
public IP only
If I keep my hostname.pppoe0 like the previous one, then the application
does not start (since the DSL connexion isn't up yet and the app cannot
bind to the public IP).
So I though I would change one line in my hostname.pppoe0 (where 1.2.3.4
is my public IP):
!/sbin/ifconfig \$if inet 1.2.3.4 0.0.0.1 netmask 0xffffffff
But this does _not_ work, it just never connects (and I cannot find any
logs).
Is there a way to specify an IP in hostname.pppoe0 or do one have to put
0.0.0.0 all the time ? I read the man page but can't find a definitive
answer.
Thanks.
Antoine