Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
347 stars 52 forks source link

Wrong DSL and WAN status on stats page #547

Closed monreal closed 5 years ago

monreal commented 5 years ago

Device Model: DGA4132 Gui Version: 8.13.56

Description of problem: stats page shows "disconnected" while card shows "connected"

Media/Photos (if possible): dsl-stat

while DSL is actually working:

dsl-card

kevdagoat commented 5 years ago

Looks like the dsl card shows the wan status not the dsl statism

Sent from my iPhone

On 4 Mar 2019, at 11:15 pm, micmon notifications@github.com wrote:

Device Model: DGA4132 Gui Version: 8.13.56

Description of problem: stats page shows "disconnected" while card shows "connected"

Media/Photos (if possible):

while DSL is actually working:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

monreal commented 5 years ago

Looks like the dsl card shows the wan status not the dsl statism

You mean the WAN status is also shown under "xDSL Info", instead of the actual DSL staus as seen on the "Broadband" card? I would agree to that. The disconnected status for WAN is correct I guess, because the device is running in bridge mode and does not initiate the WAN connection.

FrancYescO commented 5 years ago

@monreal could you please give result of these commands:

transformer-cli get sys.class.xdsl.@line0.Status
transformer-cli get sys.class.xdsl.@line1.Status
transformer-cli get sys.class.xdsl.@line0.LinkStatus
monreal commented 5 years ago
root@modem:~# transformer-cli get sys.class.xdsl.@line0.Status
sys.class.xdsl.@line0.Status [string] = Up
root@modem:~# transformer-cli get sys.class.xdsl.@line1.Status
ERROR   invalid instance
root@modem:~# transformer-cli get sys.class.xdsl.@line0.LinkStatus
sys.class.xdsl.@line0.LinkStatus [string] = Showtime
kevdagoat commented 5 years ago

Will have a look into this now

kevdagoat commented 5 years ago

My initial version of the modal uses this:

Device.DSL.Line.1.Status

Latest version:

sys.class.xdsl.@line0.LinkStatus

Should use sys.class.xdsl.@line0.Status

monreal commented 5 years ago

@kevdagoat: I noticed some code was pushed in #622 so I updated to the latest dev release 9.1.57 but my DSL status is still not showing correctly. Was #622 supposed to change anything or do I need to change some config now?

Ansuel commented 5 years ago

@monreal still valid ?

monreal commented 5 years ago

@monreal still valid ?

Yes, just tested 9.2.60 and WAN/xDSL still show "Disconnected" on the "Stats" page. The "Broadband" card in cards view shows "xDSL conneted" (DSL uptime is 86 days).

Ansuel commented 5 years ago

ok will fix now :) @monreal can you help me with some commands or you are busy ?

monreal commented 5 years ago

I got a few minutes now

Ansuel commented 5 years ago

need this

transformer-cli get sys.class.xdsl.@line0.LinkStatus

monreal commented 5 years ago

root@modem:~# transformer-cli get sys.class.xdsl.@line0.LinkStatus sys.class.xdsl.@line0.LinkStatus [string] = Showtime

Ansuel commented 5 years ago

@monreal can you test dev version ?

monreal commented 5 years ago

Like just apply https://github.com/Ansuel/gui-dev-build-auto/raw/master/GUI_dev.tar.bz2 ?

Ansuel commented 5 years ago

actually you can go in modgui settings and set update branch to dev but wait i will push the release

Ansuel commented 5 years ago

also @monreal give me output of

transformer-cli get rpc.network.interface.@wan.up

monreal commented 5 years ago

root@modem:~# transformer-cli get rpc.network.interface.@wan.up rpc.network.interface.@wan.up [boolean] = 0

Ansuel commented 5 years ago

@monreal transformer-cli get rpc.network.interface.

monreal commented 5 years ago
root@modem:~# transformer-cli get rpc.network.interface.@wan.up
rpc.network.interface.@wan.up [boolean] = 0
root@modem:~# transformer-cli get rpc.network.interface.
rpc.network.interface.@lan.ipmask [string] = 30
rpc.network.interface.@lan.ifname [string] = br-lan
rpc.network.interface.@lan.ipaddr [string] = 192.168.1.1
rpc.network.interface.@lan.default_gateway_ping [string] = None
rpc.network.interface.@lan.nexthop [string] = 192.168.1.2
rpc.network.interface.@lan.name [string] = 
rpc.network.interface.@lan.dnsserver2_query [string] = None
rpc.network.interface.@lan.dnsserver1_query [string] = None
rpc.network.interface.@lan.ipv6defaultgateway [string] = 
rpc.network.interface.@lan.ip6prefix [string] = 
rpc.network.interface.@lan.ip6addr [string] = 
rpc.network.interface.@lan.dnsserver2_ping [string] = None
rpc.network.interface.@lan.dnsservers [string] = 
rpc.network.interface.@lan.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@lan.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@lan.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@lan.subnet_addr [string] = 
rpc.network.interface.@lan.available [boolean] = 1
rpc.network.interface.@lan.up [boolean] = 1
rpc.network.interface.@lan.proto [string] = static
rpc.network.interface.@lan.static_dns_servers [string] = 
rpc.network.interface.@lan.type [string] = lan
rpc.network.interface.@lan.rx_bytes [unsignedInt] = 492751250
rpc.network.interface.@lan.tx_bytes [unsignedInt] = 37450206
rpc.network.interface.@lan.ip6prefix_assignment [string] = 
rpc.network.interface.@lan.uptime [unsignedInt] = 10712053
rpc.network.interface.@lan.ipv6linklocaladdr [string] = 
rpc.network.interface.@lan.dnsserver1_ping [string] = None
rpc.network.interface.@lan.status_ping_test [string] = Done
rpc.network.interface.@lan.nexthop_ping [string] = None
rpc.network.interface.@lan.NTPServers [string] = 
rpc.network.interface.@lan.ppp.state [string] = 
rpc.network.interface.@lan.ppp.uptime [string] = 
rpc.network.interface.@lan.ppp.ll_intf [string] = eth0
rpc.network.interface.@lan.ppp.error [string] = 
rpc.network.interface.@lan.ppp.ll_dev [string] = eth0
rpc.network.interface.@wan.ipmask [string] = 
rpc.network.interface.@wan.ifname [string] = wanptm0
rpc.network.interface.@wan.ipaddr [string] = 
rpc.network.interface.@wan.default_gateway_ping [string] = None
rpc.network.interface.@wan.nexthop [string] = 
rpc.network.interface.@wan.name [string] = 
rpc.network.interface.@wan.dnsserver2_query [string] = None
rpc.network.interface.@wan.dnsserver1_query [string] = None
rpc.network.interface.@wan.ipv6defaultgateway [string] = 
rpc.network.interface.@wan.ip6prefix [string] = 
rpc.network.interface.@wan.ip6addr [string] = 
rpc.network.interface.@wan.dnsserver2_ping [string] = None
rpc.network.interface.@wan.dnsservers [string] = 
rpc.network.interface.@wan.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@wan.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@wan.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@wan.subnet_addr [string] = 
rpc.network.interface.@wan.available [boolean] = 1
rpc.network.interface.@wan.up [boolean] = 0
rpc.network.interface.@wan.proto [string] = none
rpc.network.interface.@wan.static_dns_servers [string] = 
rpc.network.interface.@wan.type [string] = wan
rpc.network.interface.@wan.rx_bytes [unsignedInt] = 0
rpc.network.interface.@wan.tx_bytes [unsignedInt] = 0
rpc.network.interface.@wan.ip6prefix_assignment [string] = 
rpc.network.interface.@wan.uptime [unsignedInt] = 
rpc.network.interface.@wan.ipv6linklocaladdr [string] = 
rpc.network.interface.@wan.dnsserver1_ping [string] = None
rpc.network.interface.@wan.status_ping_test [string] = Done
rpc.network.interface.@wan.nexthop_ping [string] = None
rpc.network.interface.@wan.NTPServers [string] = 
rpc.network.interface.@wan.ppp.state [string] = 
rpc.network.interface.@wan.ppp.uptime [string] = 
rpc.network.interface.@wan.ppp.ll_intf [string] = ptm0
rpc.network.interface.@wan.ppp.error [string] = 
rpc.network.interface.@wan.ppp.ll_dev [string] = wanptm0
rpc.network.interface.@ipoe.ipmask [string] = 
rpc.network.interface.@ipoe.ifname [string] = 
rpc.network.interface.@ipoe.ipaddr [string] = 
rpc.network.interface.@ipoe.default_gateway_ping [string] = None
rpc.network.interface.@ipoe.nexthop [string] = 
rpc.network.interface.@ipoe.name [string] = 
rpc.network.interface.@ipoe.dnsserver2_query [string] = None
rpc.network.interface.@ipoe.dnsserver1_query [string] = None
rpc.network.interface.@ipoe.ipv6defaultgateway [string] = 
rpc.network.interface.@ipoe.ip6prefix [string] = 
rpc.network.interface.@ipoe.ip6addr [string] = 
rpc.network.interface.@ipoe.dnsserver2_ping [string] = None
rpc.network.interface.@ipoe.dnsservers [string] = 
rpc.network.interface.@ipoe.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@ipoe.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@ipoe.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@ipoe.subnet_addr [string] = 
rpc.network.interface.@ipoe.available [boolean] = 0
rpc.network.interface.@ipoe.up [boolean] = 0
rpc.network.interface.@ipoe.proto [string] = dhcp
rpc.network.interface.@ipoe.static_dns_servers [string] = 
rpc.network.interface.@ipoe.type [string] = 
rpc.network.interface.@ipoe.rx_bytes [unsignedInt] = 0
rpc.network.interface.@ipoe.tx_bytes [unsignedInt] = 0
rpc.network.interface.@ipoe.ip6prefix_assignment [string] = 
rpc.network.interface.@ipoe.uptime [unsignedInt] = 
rpc.network.interface.@ipoe.ipv6linklocaladdr [string] = 
rpc.network.interface.@ipoe.dnsserver1_ping [string] = None
rpc.network.interface.@ipoe.status_ping_test [string] = Done
rpc.network.interface.@ipoe.nexthop_ping [string] = None
rpc.network.interface.@ipoe.NTPServers [string] = 
rpc.network.interface.@ipoe.ppp.state [string] = 
rpc.network.interface.@ipoe.ppp.uptime [string] = 
rpc.network.interface.@ipoe.ppp.ll_intf [string] = 
rpc.network.interface.@ipoe.ppp.error [string] = 
rpc.network.interface.@ipoe.ppp.ll_dev [string] = 
rpc.network.interface.@wan6.ipmask [string] = 
rpc.network.interface.@wan6.ifname [string] = 
rpc.network.interface.@wan6.ipaddr [string] = 
rpc.network.interface.@wan6.default_gateway_ping [string] = None
rpc.network.interface.@wan6.nexthop [string] = 
rpc.network.interface.@wan6.name [string] = 
rpc.network.interface.@wan6.dnsserver2_query [string] = None
rpc.network.interface.@wan6.dnsserver1_query [string] = None
rpc.network.interface.@wan6.ipv6defaultgateway [string] = 
rpc.network.interface.@wan6.ip6prefix [string] = 
rpc.network.interface.@wan6.ip6addr [string] = 
rpc.network.interface.@wan6.dnsserver2_ping [string] = None
rpc.network.interface.@wan6.dnsservers [string] = 
rpc.network.interface.@wan6.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@wan6.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@wan6.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@wan6.subnet_addr [string] = 
rpc.network.interface.@wan6.available [boolean] = 0
rpc.network.interface.@wan6.up [boolean] = 0
rpc.network.interface.@wan6.proto [string] = dhcpv6
rpc.network.interface.@wan6.static_dns_servers [string] = 
rpc.network.interface.@wan6.type [string] = wan
rpc.network.interface.@wan6.rx_bytes [unsignedInt] = 0
rpc.network.interface.@wan6.tx_bytes [unsignedInt] = 0
rpc.network.interface.@wan6.ip6prefix_assignment [string] = 
rpc.network.interface.@wan6.uptime [unsignedInt] = 
rpc.network.interface.@wan6.ipv6linklocaladdr [string] = 
rpc.network.interface.@wan6.dnsserver1_ping [string] = None
rpc.network.interface.@wan6.status_ping_test [string] = Done
rpc.network.interface.@wan6.nexthop_ping [string] = None
rpc.network.interface.@wan6.NTPServers [string] = 
rpc.network.interface.@wan6.ppp.state [string] = 
rpc.network.interface.@wan6.ppp.uptime [string] = 
rpc.network.interface.@wan6.ppp.ll_intf [string] = 
rpc.network.interface.@wan6.ppp.error [string] = 
rpc.network.interface.@wan6.ppp.ll_dev [string] = 
rpc.network.interface.@wwan.ipmask [string] = 
rpc.network.interface.@wwan.ifname [string] = 
rpc.network.interface.@wwan.ipaddr [string] = 
rpc.network.interface.@wwan.default_gateway_ping [string] = None
rpc.network.interface.@wwan.nexthop [string] = 
rpc.network.interface.@wwan.name [string] = 
rpc.network.interface.@wwan.dnsserver2_query [string] = None
rpc.network.interface.@wwan.dnsserver1_query [string] = None
rpc.network.interface.@wwan.ipv6defaultgateway [string] = 
rpc.network.interface.@wwan.ip6prefix [string] = 
rpc.network.interface.@wwan.ip6addr [string] = 
rpc.network.interface.@wwan.dnsserver2_ping [string] = None
rpc.network.interface.@wwan.dnsservers [string] = 
rpc.network.interface.@wwan.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@wwan.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@wwan.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@wwan.subnet_addr [string] = 
rpc.network.interface.@wwan.available [boolean] = 0
rpc.network.interface.@wwan.up [boolean] = 0
rpc.network.interface.@wwan.proto [string] = mobiled
rpc.network.interface.@wwan.static_dns_servers [string] = 
rpc.network.interface.@wwan.type [string] = wan
rpc.network.interface.@wwan.rx_bytes [unsignedInt] = 0
rpc.network.interface.@wwan.tx_bytes [unsignedInt] = 0
rpc.network.interface.@wwan.ip6prefix_assignment [string] = 
rpc.network.interface.@wwan.uptime [unsignedInt] = 
rpc.network.interface.@wwan.ipv6linklocaladdr [string] = 
rpc.network.interface.@wwan.dnsserver1_ping [string] = None
rpc.network.interface.@wwan.status_ping_test [string] = Done
rpc.network.interface.@wwan.nexthop_ping [string] = None
rpc.network.interface.@wwan.NTPServers [string] = 
rpc.network.interface.@wwan.ppp.state [string] = 
rpc.network.interface.@wwan.ppp.uptime [string] = 
rpc.network.interface.@wwan.ppp.ll_intf [string] = 
rpc.network.interface.@wwan.ppp.error [string] = 
rpc.network.interface.@wwan.ppp.ll_dev [string] = 
rpc.network.interface.@loopback.ipmask [string] = 8
rpc.network.interface.@loopback.ifname [string] = lo
rpc.network.interface.@loopback.ipaddr [string] = 127.0.0.1
rpc.network.interface.@loopback.default_gateway_ping [string] = None
rpc.network.interface.@loopback.nexthop [string] = 
rpc.network.interface.@loopback.name [string] = 
rpc.network.interface.@loopback.dnsserver2_query [string] = None
rpc.network.interface.@loopback.dnsserver1_query [string] = None
rpc.network.interface.@loopback.ipv6defaultgateway [string] = 
rpc.network.interface.@loopback.ip6prefix [string] = 
rpc.network.interface.@loopback.ip6addr [string] = 
rpc.network.interface.@loopback.dnsserver2_ping [string] = None
rpc.network.interface.@loopback.dnsservers [string] = 
rpc.network.interface.@loopback.ipv6uniqueglobaladdr [string] = 
rpc.network.interface.@loopback.ipv6dhcpaddresspool [string] = 
rpc.network.interface.@loopback.ipv6uniquelocaladdr [string] = 
rpc.network.interface.@loopback.subnet_addr [string] = 
rpc.network.interface.@loopback.available [boolean] = 1
rpc.network.interface.@loopback.up [boolean] = 1
rpc.network.interface.@loopback.proto [string] = static
rpc.network.interface.@loopback.static_dns_servers [string] = 
rpc.network.interface.@loopback.type [string] = 
rpc.network.interface.@loopback.rx_bytes [unsignedInt] = 124208
rpc.network.interface.@loopback.tx_bytes [unsignedInt] = 124208
rpc.network.interface.@loopback.ip6prefix_assignment [string] = 
rpc.network.interface.@loopback.uptime [unsignedInt] = 10712053
rpc.network.interface.@loopback.ipv6linklocaladdr [string] = 
rpc.network.interface.@loopback.dnsserver1_ping [string] = None
rpc.network.interface.@loopback.status_ping_test [string] = Done
rpc.network.interface.@loopback.nexthop_ping [string] = None
rpc.network.interface.@loopback.NTPServers [string] = 
rpc.network.interface.@loopback.ppp.state [string] = 
rpc.network.interface.@loopback.ppp.uptime [string] = 
rpc.network.interface.@loopback.ppp.ll_intf [string] = lo
rpc.network.interface.@loopback.ppp.error [string] = 
rpc.network.interface.@loopback.ppp.ll_dev [string] = lo
Ansuel commented 5 years ago

@monreal you have the modem in bridge mode correct?

monreal commented 5 years ago

correct

Ansuel commented 5 years ago

can you try latest dev ? (set update branch to dev and force upgrade)

monreal commented 5 years ago

I now get "Secure Connection Failed" after putting in username/password on 9.2.63

Ansuel commented 5 years ago

Do a upgradegui from ssh there was a typo in the version I pushed

Il Mer 10 Lug 2019, 22:45 micmon notifications@github.com ha scritto:

I now get "Secure Connection Failed" after putting in username/password on 9.2.63

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/547?email_source=notifications&email_token=AE2ZMQWTSL3YQ7GOJGMPHC3P6ZC6JA5CNFSM4G3SHYNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUV5QY#issuecomment-510222019, or mute the thread https://github.com/notifications/unsubscribe-auth/AE2ZMQXL2WIZ3MD4BV7PNX3P6ZC6JANCNFSM4G3SHYNA .

monreal commented 5 years ago

Alright, I can log in with 9.2.64 but it still says "Disconnected" on the stats page

Ansuel commented 5 years ago

@monreal you have wansensing off right ?

monreal commented 5 years ago

Where would I find the setting?

monreal commented 5 years ago

Found it, it was on

Ansuel commented 5 years ago

uci show network uci show wansensing

monreal commented 5 years ago

If I disable it the stats page does not show DSL information at all

monreal commented 5 years ago

Stats page with wansensing off

Screenshot from 2019-07-10 23-00-17

Ansuel commented 5 years ago

i know i know remove this file /www/lua/card_limiter.lua and restart nginx /etc/init.d/nginx restart

Ansuel commented 5 years ago

(i'm fixing it)

monreal commented 5 years ago

9.2.67 with the file removed: with wansensing off I now see the same sats page as before with wansensing on, meaning the DSLAM and rate etc information is all shown correctly but status is still "Disconnected"

Ansuel commented 5 years ago

i really need this command (uci show network ) or just email me your config files ( /etc/config )so i can test on my modem

If you have any problem network file and wansensing file should be sufficent

monreal commented 5 years ago
root@modem:~# uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='none'
network.globals.default_ps='0'
network.wanptm0=device
network.wanptm0.type='8021q'
network.wanptm0.name='wanptm0'
network.wanptm0.macaddr='A4:91:B1:2E:34:88'
network.wanptm0.ifname='ptm0'
network.wanptm0.ipv6='0'
network.wanptm0.vid='7'
network.wan=interface
network.wan.demand='0'
network.wan.macaddr='A4:91:B1:2E:34:88'
network.wan.ipv6='0'
network.wan.reqopts='1 3 6 15 33 42 51 121 249'
network.wan.keepalive_adaptive='0'
network.wan.dns_metric='0'
network.wan.ifname='wanptm0'
network.wan.enabled='0'
network.wan.auto='0'
network.wan.peerdns='0'
network.wan.proto='bridge'
network.config=config
network.config.wan_mode='bridge'
network.wwan=interface
network.wwan.auto='1'
network.wwan.proto='mobiled'
network.wwan.session_id='0'
network.wwan.profile='1'
network.wwan.enabled='0'
network.wan6=interface
network.wan6.proto='dhcpv6'
network.wan6.reqopts='12 21 22 23 24 25 31 56 64 67 82 83'
network.wan6.noslaaconly='1'
network.wan6.iface_464xlat='0'
network.wan6.auto='0'
network.wan6.dns_metric='20'
network.wan6.ifname='@wan_ipv6'
network.wan6.enabled='0'
network.lan=interface
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.252'
network.lan.ip6assign='64'
network.lan.force_link='0'
network.lan.ipv6='0'
network.lan.ifname='eth0' 'eth1' 'eth2' 'eth3' 'eth5' 'ptm0.7' 'wanptm0'
network.lan.pppoerelay='' ''
network.bcmsw=switch
network.bcmsw.reset='1'
network.bcmsw.enable_vlan='0'
network.bcmsw.qosimppauseenable='0'
network.bcmsw.jumbo='0'
network.ipoe=interface
network.ipoe.proto='dhcp'
network.ipoe.metric='1'
network.ipoe.reqopts='1 3 6 43 51 58 59'
network.ipoe.release='1'
network.ipoe.neighreachabletime='1200000'
network.ipoe.neighgcstaletime='2400'
network.ipoe.ipv6='1'
network.waneth4=device
network.waneth4.enabled='1'
network.waneth4.type='8021q'
network.waneth4.name='waneth4'
network.waneth4.vid='835'
network.B0F33CDF131D0264A2C1737494D353B2=route
network.B0F33CDF131D0264A2C1737494D353B2.target='0.0.0.0'
network.B0F33CDF131D0264A2C1737494D353B2.interface='lan'
network.B0F33CDF131D0264A2C1737494D353B2.gateway='192.168.1.2'
network.B0F33CDF131D0264A2C1737494D353B2.netmask='0.0.0.0'
network.B0F33CDF131D0264A2C1737494D353B2.metric='1'
monreal commented 5 years ago
root@modem:~# cat /etc/config/network 

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'none'
    option default_ps '0'

config device 'wanptm0'
    option type '8021q'
    option name 'wanptm0'
    option macaddr 'A4:91:B1:2E:34:88'
    option ifname 'ptm0'
    option ipv6 '0'
    option vid '7'

config interface 'wan'
    option demand '0'
    option macaddr 'A4:91:B1:2E:34:88'
    option ipv6 '0'
    option reqopts '1 3 6 15 33 42 51 121 249'
    option keepalive_adaptive '0'
    option dns_metric '0'
    option ifname 'wanptm0'
    option enabled '0'
    option auto '0'
    option peerdns '0'
    option proto 'bridge'

config config 'config'
    option wan_mode 'bridge'

config interface 'wwan'
    option auto '1'
    option proto 'mobiled'
    option session_id '0'
    option profile '1'
    option enabled '0'

config interface 'wan6'
    option proto 'dhcpv6'
    option reqopts '12 21 22 23 24 25 31 56 64 67 82 83'
    option noslaaconly '1'
    option iface_464xlat '0'
    option auto '0'
    option dns_metric '20'
    option ifname '@wan_ipv6'
    option enabled '0'

config interface 'lan'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.252'
    option ip6assign '64'
    option force_link '0'
    option ipv6 '0'
    list ifname 'eth0'
    list ifname 'eth1'
    list ifname 'eth2'
    list ifname 'eth3'
    list ifname 'eth5'
    list ifname 'ptm0.7'
    list ifname 'wanptm0'
    list pppoerelay ''
    list pppoerelay ''

config switch 'bcmsw'
    option reset '1'
    option enable_vlan '0'
    option qosimppauseenable '0'
    option jumbo '0'

config interface 'ipoe'
    option proto 'dhcp'
    option metric '1'
    option reqopts '1 3 6 43 51 58 59'
    option release '1'
    option neighreachabletime '1200000'
    option neighgcstaletime '2400'
    option ipv6 '1'

config device 'waneth4'
    option enabled '1'
    option type '8021q'
    option name 'waneth4'
    option vid '835'

config route 'B0F33CDF131D0264A2C1737494D353B2'
    option target '0.0.0.0'
    option interface 'lan'
    option gateway '192.168.1.2'
    option netmask '0.0.0.0'
    option metric '1'

root@modem:~# cat /etc/config/wansensing 

config wansensing 'global'
    option initmode 'L2Sense'
    option tracelevel '3'
    option l2type 'VDSL'
    option l3type 'L3Sense'
    option enable '0'

config L2State
    option name 'L2Sense'
    option entryexits 'L2EntryExit'
    option mains 'L2Main'
    option timeout '5'

config L3State
    option name 'L3Sense'
    option entryexits 'L3EntryExit'
    option mains 'L3Main'
    option timeout '300'

config L3State
    option name 'L3UpSense'
    option entryexits 'L3UpEntryExit'
    option mains 'L3UpMain'
    option timeout '300'
Ansuel commented 5 years ago

This is ridiculus i have your config and on my side it does display connected

could be a bug in the mapper?

monreal commented 5 years ago

If I reload the stats page it shows "@ Disconnected" on "WAN Stats" right away but for a fraction of a second it actually shows "Connected" for "xDSL Info" before changing to "Disconnected" in case it matters

monreal commented 5 years ago

Also, I am running AGTHP_1.1.0. Maybe something changed on newer firmware?

Ansuel commented 5 years ago

@monreal open this

http://192.168.1.1/ajax/internet.lua?datatype=xdsl?auto_update=true

monreal commented 5 years ago

{"WAN_IP_text":"","uptime_text":"","ipv6_light":"","pppoe_uptime_extended":"","status_light":"","wandns":"","wangateway":"","status":"Disconnected","ipv6_state":"","WAN_IP":"","pppoe_uptime":"","ppp_status":"","ppp_state":"","ppp_light":""}

monreal commented 5 years ago

xDSL info seems to work now - WAN status still says "Disconnected"

Screenshot from 2019-07-17 22-15-57

nutterthanos commented 5 years ago

xdsl status is for connection to the dslam and wan is connection to the internet.

nutterthanos commented 5 years ago

Look in this file https://github.com/Ansuel/tch-nginx-gui/blob/master/decompressed/gui_file/www/info-cards/002_wanstats.lp and this commit https://github.com/Ansuel/tch-nginx-gui/commit/6da3a8741b91e1363becff3847d171ec3ddcb157

monreal commented 5 years ago

xdsl status is for connection to the dslam and wan is connection to the internet.

So the status display is now correct because in bridge mode the modem does not directly connect to the internet?

Ansuel commented 5 years ago

Mhhh no there is still some problem... it should be displayed connected.

FrancYescO commented 5 years ago

when in bridge mode i think is enough to just hide the status row in WAN status

nutterthanos commented 5 years ago

We could hide it or try to fix it.