Answer the question
In order to leave comments, you need to log in
How to properly configure PPPoE connection and its monitoring in OpenWRT?
To begin with, I will describe the scheme of my connection to the network:
PC> TP-Link 740 router> D-Link DSL-2500U/BRU/D ADSL modem (in bridge mode)> Internet.
I flashed the router (tp-link 740) in openwrt and faced the problem of raising the PPPoE session.
network config:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config interface 'wan'
option _orig_ifname 'eth1'
option _orig_bridge 'false'
option ifname 'eth1'
option proto 'pppoe'
option username 'username'
option password 'pass'
config interface 'local'
option proto 'static'
option ifname 'eth1'
option ipaddr '10.0.0.2'
option netmask '255.255.255.0'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 4'
#!/bin/sh
if ! ping -q -c 1 -W 10 8.8.8.8 > /dev/null; then
(ifdown wan; sleep 10; ifup wan) &
fi
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question