How can I be sure that I'm using kernel-mode PPPoE in this case?
Very easy.
1) "pidof pppoe" should return nothing.
2) "pidof pppd" should return only one process ID, not two IDs.
3) "ls -l /proc/`pidof pppd`/fd" should not reference /dev/pts
In the meanwhile I followed the instructions on http://wiki.linuxfromscratch.org/blfs/wiki/PPP and happily, I managed to connect to
my ISP's PPPoE server using the PPP package only - no WvDial, WvStreams, OpenSSL or RP-PPPoE (except for the rp-pppoe.so plugin
included in the PPP package)! Then I executed the above 3 commands and the results exactly matched what you said they should match
for kernel-mode pppoe. Thanks to everyone who took part in this thread for your patience and advice.
Now there is one more thing about the PPPoE connection I would like to setup - I want to have it established at boot time. As far as
I know I need to have the following files:
1) /etc/sysconfig/network-devices/ifconfig.eth0/pppoe:
ONBOOT="yes"
SERVICE="pppoe"
2) /etc/sysconfig/network-devices/services/pppoe:
#!/bin/sh
. /etc/sysconfig/rc
. $rc_functions
case "$2" in
up)
boot_mesg "Bringing up the PPPoE interface..."
issue ip link set <ethN> up
pppd call <peername>
evaluate_retval
;;
down)
boot_mesg "Bringing down the PPPoE interface..."
killall pppd
evaluate_retval
;;
*)
echo "Usage: $0 {up|down}"
exit 1
;;
esac
The question is how do I know the value of N in <ethN>.
The other thing I want is to have the PPPoE connection reestablished if it breaks. Is this automatically handled or do I need to
setup smth?
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page