Today i tried pppoe with kamikaze and found some odd things:
my config:
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'pppoe'
option 'username' '********@alice-dsl2.de'
option 'password' '********'
option 'mtu' '1468'
first try:
root@mb2-0_230-4:~# ifup wan
root@mb2-0_230-4:~# logread | grep ppp
Jul 1 12:31:35 mb2-0_230-4 daemon.info pppd[3237]: Plugin rp-pppoe.so loaded.
Jul 1 12:31:35 mb2-0_230-4 daemon.notice pppd[3238]: pppd 2.4.3 started by root, uid 0
Jul 1 12:31:35 mb2-0_230-4 daemon.err pppd[3238]: Interface eth1 has MTU of 1468 -- should be 1500. You may have serious connection problems.
Jul 1 12:31:35 mb2-0_230-4 daemon.err pppd[3238]: sendPacket: send: Network is down
Jul 1 12:31:35 mb2-0_230-4 daemon.info pppd[3238]: Exit.
??? asking whats going wrong:
root@mb2-0_230-4:~# sh -x /sbin/ifup wan
+ [...]
+ /usr/sbin/pppd plugin rp-pppoe.so mtu 1468 mru 1468 nic-eth1 persist usepeerdns defaultroute replacedefaultroute user ********@alice-dsl2.de password ******** unit 0 linkname wan ipparam wan
+ lock -u /var/lock/ppp-wan
why "nic-eth1"?
root@mb2-0_230-4:~# vi /lib/network/pppoe.sh
start_pppd "$config" \
plugin rp-pppoe.so \
mtu $mtu mru $mtu \
"$iface" ### !!!edit!!! "nic-$iface" -> "$iface"
next try:
Jul 1 12:40:48 mb2-0_230-4 daemon.notice pppd[3380]: pppd 2.4.3 started by root, uid 0
Jul 1 12:40:48 mb2-0_230-4 daemon.err pppd[3380]: Interface eth1 has MTU of 1468 -- should be 1500. You may have serious connection problems.
Jul 1 12:40:48 mb2-0_230-4 daemon.err pppd[3380]: sendPacket: send: Network is down
Jul 1 12:40:48 mb2-0_230-4 daemon.info pppd[3380]: Exit.
hmmm, still not better...? -> ok, google:http://linuxwiki.de/rp-pppoe
[...]
pre-up /sbin/ifconfig eth1 up # <--- macht glücklich / makes happy ;-)
[...]
ok, so i edited pppoe.sh again:
# pre-up physical device
ifconfig "$iface" up
start_pppd "$config" \
plugin rp-pppoe.so \
mtu $mtu mru $mtu \
"$iface"
and last try:
root@mb2-0_230-4:~# ifup wan
root@mb2-0_230-4:~# logread | grep ppp
Jul 1 12:47:30 mb2-0_230-4 daemon.info pppd[3486]: Plugin rp-pppoe.so loaded.
Jul 1 12:47:30 mb2-0_230-4 daemon.notice pppd[3487]: pppd 2.4.3 started by root, uid 0
Jul 1 12:47:30 mb2-0_230-4 daemon.err pppd[3487]: Interface eth1 has MTU of 1468 -- should be 1500. You may have serious connection problems.
Jul 1 12:47:30 mb2-0_230-4 daemon.info pppd[3487]: PPP session is 720
Jul 1 12:47:30 mb2-0_230-4 daemon.info pppd[3487]: Using interface ppp0
Jul 1 12:47:30 mb2-0_230-4 daemon.notice pppd[3487]: Connect: ppp0 <--> eth1
Jul 1 12:47:30 mb2-0_230-4 daemon.warn pppd[3487]: Couldn't increase MTU to 1500
Jul 1 12:47:30 mb2-0_230-4 daemon.warn pppd[3487]: Couldn't increase MRU to 1500
Jul 1 12:47:30 mb2-0_230-4 daemon.warn pppd[3487]: Couldn't increase MTU to 1500
Jul 1 12:47:30 mb2-0_230-4 daemon.warn pppd[3487]: Couldn't increase MRU to 1500
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: PAP authentication succeeded
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: PAP authentication succeeded
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: peer from calling number 00:90:XX:XX:XX:XX authorized
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: replacing old default route to br-ff [X.Y.17.35]
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: local IP address 78.51.X.Y
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: remote IP address 213.191.64.48
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: primary DNS address 213.191.74.11
Jul 1 12:47:34 mb2-0_230-4 daemon.notice pppd[3487]: secondary DNS address 213.191.92.82
AHHHHH!!!
So i asked me; is nobody using pppoe with kamikaze, or i do something wrong...?
any ideas, or can this fixes goes upstream?
nice regards
tetzlav