What's new

Draytek Vigor 130 VDSL WAN stats via router?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

jpclarke

Regular Contributor
The Draytek Vigor 130 modem broadcasts out the xDSL line stats on the WAN port, is there anyway these can be captured, processed and displayed by the router firmware?

Any ideas on how this could be achieved, that's if the traffic can be allowed through the firewall!

I am running ASUS RT-AC3200 with latest Merlin build.
 
The Draytek Vigor 130 modem broadcasts out the xDSL line stats on the WAN port, is there anyway these can be captured, processed and displayed by the router firmware?

Any ideas on how this could be achieved, that's if the traffic can be allowed through the firewall!

I am running ASUS RT-AC3200 with latest Merlin build.

On dd-wrt, once set-up I was able to access the Vigor 130 directly so I could see the line stats. Putting the Vigor on a different subnet. I'm not sure how this works on a merlin build as I haven't looked into it. Although would be good to know and I'm sure it's doable once you can figure out the firewall.

I doubt you'll be able to get the stats within the ASUS firmware itself.
 
I will play around with Tcpdump and see what I can see, I assume the udp packets being broadcast from the vigor 130 will be picked up by Tcpdump before the firewall kicks in and drops them.

If I can see anything can anyone suggest a way to integrate into a webpage on the router?
 
The Draytek Vigor 130 modem broadcasts out the xDSL line stats on the WAN port, is there anyway these can be captured, processed and displayed by the router firmware?

Any ideas on how this could be achieved, that's if the traffic can be allowed through the firewall!

I am running ASUS RT-AC3200 with latest Merlin build.

https://github.com/RMerl/asuswrt-merlin/wiki/Access-modem-Web-UI-on-WAN-port-(no-script)

Although back in the days when I had a PPPoE ADSL WAN connection, I had varying success with different vendors Zoom,TP-Link etc. Can't remember if my Draytek 120 was successful.
If it doesn't work, then sometimes the modem will only serve its web interface to devices on the same subnet. You could try to change the modem's subnet mask to 255.255.254.0 (or 255.255.0.0), to see if that works.

e.g. I used the wan-start/nat-start scripts to add a couple of commnds to get access to my TP-LINK TD-8816 ADSL modem Web GUI:

Code:
ifconfig `nvram get wan0_ifname`:0 192.168.1.2 netmask 255.255.255.0

iptables -t nat -I POSTROUTING -o `nvram get wan0_ifname` -j MASQUERADE
 
Last edited:

Gave this a try and it worked perfectly. I was always worried it would screw up my WAN IP address as I usually get this dynamically from the ISP. But it still got the Dynamic WAN IP from the ISP and I'm able to hit my draytek directly.

Before setting anything up I put the Draytek on 192.168.2.1, now I can hit this directly. This is going to be the best bet to get to the line stats, although if someone actually builds in line stats into the firmware I'd be more than happy to try it out :).
 
I found a simple way to access the Vigor 130 web interface by adding a sub-interface to the eth0 on the same subnet as the management ip of the modem.
This allowed me to go directly to the vigor's web interface.

On my Merlin Asus RT-AC3200 router I used the following command : ifconfig eth0:0 192.168.2.2 netmask 255.255.255.0

This allowed me to go directly to the modem's web interface on 192.168.2.1 from my browser.
 
https://github.com/RMerl/asuswrt-merlin/wiki/Access-modem-Web-UI-on-WAN-port-(no-script)

Although back in the days when I had a PPPoE ADSL WAN connection, I had varying success with different vendors Zoom,TP-Link etc. Can't remember if my Draytek 120 was successful.
If it doesn't work, then sometimes the modem will only serve its web interface to devices on the same subnet. You could try to change the modem's subnet mask to 255.255.254.0 (or 255.255.0.0), to see if that works.

e.g. I used the wan-start/nat-start scripts to add a couple of commnds to get access to my TP-LINK TD-8816 ADSL modem Web GUI:

Code:
ifconfig `nvram get wan0_ifname`:0 192.168.1.2 netmask 255.255.255.0

iptables -t nat -I POSTROUTING -o `nvram get wan0_ifname` -j MASQUERADE

Thanks for this.

How to do it the other way around?

I'd like the xDSL modem to be able to access one device behind my ASUS router.
 
I found a simple way to access the Vigor 130 web interface by adding a sub-interface to the eth0 on the same subnet as the management ip of the modem.
This allowed me to go directly to the vigor's web interface.

On my Merlin Asus RT-AC3200 router I used the following command : ifconfig eth0:0 192.168.2.2 netmask 255.255.255.0

This allowed me to go directly to the modem's web interface on 192.168.2.1 from my browser.
This is AWESOME JP - Ive just ditched the Sky bundled Modem/Router today for a Vigor130, been searching since afternoon how to access the modems status once connected to the router... this is briliant.. Thanks,
 
The Draytek Vigor 130 modem broadcasts out the xDSL line stats on the WAN port, is there anyway these can be captured, processed and displayed by the router firmware?

Any ideas on how this could be achieved, that's if the traffic can be allowed through the firewall!

I am running ASUS RT-AC3200 with latest Merlin build.
Look up the Mormon script, ping @Jack Yaz since I couldn't find the out put he needs for the script mabye you will have better luck.
 
I found a simple way to access the Vigor 130 web interface by adding a sub-interface to the eth0 on the same subnet as the management ip of the modem.
This allowed me to go directly to the vigor's web interface.

On my Merlin Asus RT-AC3200 router I used the following command : ifconfig eth0:0 192.168.2.2 netmask 255.255.255.0

This allowed me to go directly to the modem's web interface on 192.168.2.1 from my browser.

Did you do something additional?

I have tried accessing the managment page via 192.168.2.1 when my laptop (had the 192.168.2.2) was directly connected to the vigor, that worked.

But when its connected to my AC88U and after adding the eth0:0 config like you mentioned I don't get any connection to that page via the router itself or a connected computer :(

Code:
RT-AC88U-DDF0:/tmp/home/root# wget 192.168.2.1

--2020-08-22 20:03:48--  http://192.168.2.1/

Connecting to 192.168.2.1:80... failed: Connection refused.


eth0:0    Link encap:Ethernet  HWaddr *removed*

          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Interrupt:181 Base address:0x6000
 
Did you do something additional?

I have tried accessing the managment page via 192.168.2.1 when my laptop (had the 192.168.2.2) was directly connected to the vigor, that worked.

But when its connected to my AC88U and after adding the eth0:0 config like you mentioned I don't get any connection to that page via the router itself or a connected computer :(

Code:
RT-AC88U-DDF0:/tmp/home/root# wget 192.168.2.1

--2020-08-22 20:03:48--  http://192.168.2.1/

Connecting to 192.168.2.1:80... failed: Connection refused.


eth0:0    Link encap:Ethernet  HWaddr *removed*

          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          Interrupt:181 Base address:0x6000
ifconfig eth0:1 192.168.2.2 netmask 255.255.255.0

Try eth0:1 I have to on my 86u
 
ifconfig eth0:1 192.168.2.2 netmask 255.255.255.0

Try eth0:1 I have to on my 86u

Tried that after removing the virtual network eth0:0 before, sadly no change :(

EDIT:
Also tried the mentioned method here https://github.com/RMerl/asuswrt-merlin/wiki/Access-modem-Web-UI-on-WAN-port-(no-script), but that doesn't work for me either :( What are your settings for the LAN on the Vigor?

Code:
eth0      Link encap:Ethernet  HWaddr *removed*
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
 

Attachments

  • 2020-08-22 21_11_27-Vigor130 Series.png
    2020-08-22 21_11_27-Vigor130 Series.png
    20.9 KB · Views: 301
Last edited:
Tried that after removing the virtual network eth0:0 before, sadly no change :(

EDIT:
Also tried the mentioned method here https://github.com/RMerl/asuswrt-merlin/wiki/Access-modem-Web-UI-on-WAN-port-(no-script), but that doesn't work for me either :( What are your settings for the LAN on the Vigor?

Code:
eth0      Link encap:Ethernet  HWaddr *removed*
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
Also using an Vigor 130, the following wan-event script works for me
Code:
#!/bin/sh

if [ "$2" = "connected" ]; then
  ifconfig $(nvram get wan"$1"_ifname):1 192.168.2.2
fi
 
Also using an Vigor 130, the following wan-event script works for me
Code:
#!/bin/sh

if [ "$2" = "connected" ]; then
  ifconfig $(nvram get wan"$1"_ifname):1 192.168.2.2
fi

Thanks a lot for that script, but it does nothing different then the command that I already tried but without setting the netmask :(

Code:
ifconfig eth0:1 192.168.2.2 netmask 255.255.255.0
 
Im am very sorry guys.. The problem was too easy for me to figure out. I also have Yazfi and a guest network going, with an IP range of 192.168.2.0.. Sorry.. :(
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top