Site Tools


ip_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
ip_script [2021/02/22 21:34] hogwildip_script [2023/05/28 05:46] – -format hogwild
Line 1: Line 1:
-This script will discover the WAN IP of each WAN interface in a MultiWAN configuration and log them in the file /tmp/WAN-IPs.+====== Determine external IP for all MultiWAN interfaces and log to file ======
  
-----+\\
  
-<code>+This script will discover the WAN IP of all WAN interfaces in a MultiWAN configuration and log them in the file: "/tmp/WAN-IPs" . \\ \\ \\ 
 + 
 +<code ->
 #!/bin/sh #!/bin/sh
 WAN="$(nvram get wan_ifname)" WAN="$(nvram get wan_ifname)"
Line 49: Line 51:
    fi    fi
 fi fi
- 
 </code> </code>
 +
 + \\
 +
 + \\
  
 ---- ----
  
  
ip_script.txt · Last modified: 2023/05/28 05:47 by hogwild