ip link show eth5.0 >/dev/null 2>&1 || ip link add link eth5 name eth5.0 type vlan id 0
ip link set eth5.0 up
cp /tmp/ppp/options.wan0 /tmp/ppp/options.wan0.vlan0
sed -i 's/nic-eth5/nic-eth5.0/g' /tmp/ppp/options.wan0.vlan0
echo "PPPoE arayüzü:"
grep '^plugin ' /tmp/ppp/options.wan0.vlan0
killall pppd 2>/dev/null
sleep 2
/usr/sbin/pppd file /tmp/ppp/options.wan0.vlan0 &
sleep 12
echo
echo "PPP bağlantısı:"
ip addr show ppp0 2>/dev/null
echo
echo "Son PPPoE kayıtları:"
logread | grep -E 'pppd|PPPoE|PADI|PADO|PADS|CHAP|PAP|authentication|local IP|remote IP' | tail -n 40