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
ip_script [2021/09/13 16:38] hogwildip_script [2023/05/28 05:47] (current) 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 50: Line 51:
    fi    fi
 fi fi
- 
 </code> </code>
 +
 + \\
 +
 + \\
  
 ---- ----
  
  
ip_script.1631547500.txt.gz · Last modified: 2021/09/13 16:38 by hogwild