What's new

VPNMON VPNMON-R2 v2.0 -Jul 10, 2022- Monitor your VPN connection's Health (Thread locked/closed)

  • 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!

Code:
ip a | grep global | awk '{ print $7 }' | head -n 1

This gives me:

eth0
 
@chongnt ... what does this give you?

Code:
ip a | grep global | awk '{ print $7 }' | head -n 1
 
Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep global | awk '{ print $7 }' | head -n 1
br0
admin@RT-AC86U-DBA8:/tmp/home/root#
What does this look like on your end?

Code:
ip a | grep global | awk '{ print $7 }'
 
Here you go

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep global | awk '{ print $7 }'
br0
wl1.2
vlan500
scope
Hum so where's the ppp0 interface!?
 
@chongnt ... before we go chasing down this rabbit hole... could you please give me your results for:

Code:
nvram get wan0_ifname
nvram get wan1_ifname
nvram get wan0_pppoe_ifname
nvram get wan1_pppoe_ifname
 
Here you go

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep global | awk '{ print $7 }'
br0
wl1.2
vlan500
scope
try
Code:
ip a | grep inet | grep -vwE '\b(((10|127)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})|(((172\.(1[6-9]|2[0-9]|3[0-1]))|(192\.168))(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}))\b' | grep global | awk '{ print $7 }' | head -n 1


Thus why i said the route method is more efficient.

Code:
route | grep default | awk '{ print $8 }'
 
Hum so where's the ppp0 interface!?
ppp0 is from this
Code:
route | grep default | awk '{ print $8 }

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# route | grep default | awk '{ print $8 }'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_ifname
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_pppoe_ifname
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_pppoe_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep inet | grep -vwE '\b(((10|127)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})|(((172\.(1[6-9]|2[0-9]|3[0-1]))|(192\.168))(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}))\b' | grep global | awk '{ print $7 }' | head -n 1
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# ip r | grep default | awk '{ print $5}'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_ifname
eth0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_pppoe_ifname
admin@RT-AC86U-DBA8:/tmp/home/root#

for my ISP, internet is via vlan500. My isp use different vlan for video and voip.
 
Last edited:
ppp0 is from this
Code:
route | grep default | awk '{ print $8 }

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# route | grep default | awk '{ print $8 }'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_ifname
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_pppoe_ifname
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_pppoe_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep inet | grep -vwE '\b(((10|127)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})|(((172\.(1[6-9]|2[0-9]|3[0-1]))|(192\.168))(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}))\b' | grep global | awk '{ print $7 }' | head -n 1
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# ip r | grep default | awk '{ print $5}'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#

for my ISP, internet is via vlan500. My isp use different vlan for video and voip.
See that is where you experience a rock and a hard place. See how asus reports the nvram variables as well.. this is interesting and highlights some of the foreshadowing brought about by @dave14305 .
 
ppp0 is from this
Code:
route | grep default | awk '{ print $8 }

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# route | grep default | awk '{ print $8 }'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_ifname
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_pppoe_ifname
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_pppoe_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep inet | grep -vwE '\b(((10|127)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})|(((172\.(1[6-9]|2[0-9]|3[0-1]))|(192\.168))(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}))\b' | grep global | awk '{ print $7 }' | head -n 1
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# ip r | grep default | awk '{ print $5}'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_ifname
eth0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_pppoe_ifname
admin@RT-AC86U-DBA8:/tmp/home/root#

for my ISP, internet is via vlan500. My isp use different vlan for video and voip.
what does this show

Code:
ip r | grep default | grep -oE "\b($(nvram get wan_ifname)|$(nvram get wan0_ifname)|$(nvram get wan1_ifname)|$(nvram get wan_pppoe_ifname)|$(nvram get wan0_pppoe_ifname)|$(nvram get wan1_pppoe_ifname))\b" | sort -u
 
what does this show

Code:
ip r | grep -oE "\b($(nvram get wan_ifname)|$(nvram get wan0_ifname)|$(nvram get wan1_ifname)|$(nvram get wan_pppoe_ifname)|$(nvram get wan0_pppoe_ifname)|$(nvram get wan1_pppoe_ifname))\b" | sort -u

I got this

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# ip r | grep -oE "\b($(nvram get wan0_ifname)|$(nvram get wan0_ifname)|$(nvram get wan1_ifname)|$(nvram get wan_pppoe_ifname)|$(nvram get wan0_pppoe_ifname)|$(nvram get wan1_pppoe_ifname))\b" | sort -u
ppp0
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root#
 
ppp0 is from this
Code:
route | grep default | awk '{ print $8 }

Code:
admin@RT-AC86U-DBA8:/tmp/home/root# route | grep default | awk '{ print $8 }'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root#
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_ifname
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan0_pppoe_ifname
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan1_pppoe_ifname

admin@RT-AC86U-DBA8:/tmp/home/root# ip a | grep inet | grep -vwE '\b(((10|127)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})|(((172\.(1[6-9]|2[0-9]|3[0-1]))|(192\.168))(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}))\b' | grep global | awk '{ print $7 }' | head -n 1
vlan500
admin@RT-AC86U-DBA8:/tmp/home/root# ip r | grep default | awk '{ print $5}'
ppp0
admin@RT-AC86U-DBA8:/tmp/home/root#

admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_ifname
eth0
admin@RT-AC86U-DBA8:/tmp/home/root# nvram get wan_pppoe_ifname
admin@RT-AC86U-DBA8:/tmp/home/root#

for my ISP, internet is via vlan500. My isp use different vlan for video and voip.
So in your case, if I am able to match WAN0 to your vlan500, that should work...
 
Similar threads
Thread starter Title Forum Replies Date
Ripshod (Not specifically) VPNMON-R3 1.11 failure domino effect Asuswrt-Merlin AddOns 20

Similar 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