[...]It is anticipated that Service Providers will use this Shared Address Space to number the interfaces that connect CGN devices to Customer Premises Equipment (CPE).[...]
Mar 26 08:08:16 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 100.115.X.X) (interface: EOLO[wan]) (real interface: pppoe0).Mar 26 06:29:23 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 78.134.X.X) (interface: EOLO[wan]) (real interface: pppoe0).Mar 26 04:28:04 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 78.134.X.X) (interface: EOLO[wan]) (real interface: pppoe0).Mar 22 16:27:39 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 78.134.X.X) (interface: EOLO[wan]) (real interface: pppoe0).Mar 20 19:06:21 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 78.134.X.X) (interface: EOLO[wan]) (real interface: pppoe0).Mar 20 19:04:16 opnsense: /usr/local/etc/rc.newwanip: On (IP address: 100.119.X.X) (interface: EOLO[wan]) (real interface: pppoe0).
#!/bin/sh# Testing for invalid wan IPinteface="igb0"test_string="net 100."result=$(ifconfig pppoe1 | grep "inet ")if [ "$result" != "${result%"$test_string"*}" ]; thenifconfig $interface downsleep 5ifconfig $inteface upfi
This is basically the script you need to run, you'll need to set up the cron event to run itIt's very simple, it uses ifconfig to look for the ipv4 IP address, if it starts wih 100. then it will take down the WAN interface, wait 5 seconds and bring it back up.You'll need to set the parent interface name to match yours... and as an afterthought change it to pppoe0. Code: [Select]#!/bin/sh# Testing for invalid wan IPinteface="igb0"test_string="net 100."result=$(ifconfig pppoe1 | grep "inet ")if [ "$result" != "${result%"$test_string"*}" ]; thenifconfig $interface downsleep 5ifconfig $inteface upfi