stylish_me
Regular Contributor
Hi!
I've been using a script posted here a long ago that sends emails when router reconnects to internet and writes it's current ip in the letter.
Today i connected second internet line as secondary WAN and made all the settings. I was sure that the script will send me different ips - so i will be able to see which line is used (primary or secondary, because primary is unlimited and secondary is $ per MB and i use it only wher primary is down). But unfortunately the script always sends the same ip from primary wan even if secondary wan is connected. Primary wan uses fixed ip and secondary wan uses automatic ip.
As far as i understand - router logs 2 ips: for primary and secondary WAN. So ip in the letter will not help me at all. So i need a script line which indicates, which line is used: primary or secondary.
How can i make this?
Thanx!
I've been using a script posted here a long ago that sends emails when router reconnects to internet and writes it's current ip in the letter.
Today i connected second internet line as secondary WAN and made all the settings. I was sure that the script will send me different ips - so i will be able to see which line is used (primary or secondary, because primary is unlimited and secondary is $ per MB and i use it only wher primary is down). But unfortunately the script always sends the same ip from primary wan even if secondary wan is connected. Primary wan uses fixed ip and secondary wan uses automatic ip.
As far as i understand - router logs 2 ips: for primary and secondary WAN. So ip in the letter will not help me at all. So i need a script line which indicates, which line is used: primary or secondary.
How can i make this?
Thanx!