To limit the storage needed for the Default Router List, a host MAY choose not to store all of the router addresses discovered via advertisements. However, a host MUST retain at least two router addresses and SHOULD retain more.
--- radvd.conf-novip 2020-02-27 16:25:32.993687000 +0100+++ radvd.conf-vip 2020-02-27 16:24:50.078941000 +0100@@ -262,11 +262,14 @@ AdvManagedFlag on; AdvOtherConfigFlag on; prefix 2002:db0::/64 {- DeprecatePrefix on;+ DeprecatePrefix off; AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; };+ route ::/0 {+ RemoveRoute off;+ };
#!/usr/local/bin/php<?phprequire_once('config.inc');require_once('util.inc');$subsystem = !empty($argv[1]) ? $argv[1] : '';$type = !empty($argv[2]) ? $argv[2] : '';if ($type != 'MASTER' && $type != 'BACKUP') { log_error("Carp '$type' event unknown from source '{$subsystem}'"); exit(1);}if (!strstr($subsystem, '@')) { log_error("Carp '$type' event triggered from wrong source '{$subsystem}'"); exit(1);}switch ($type) { case 'MASTER': shell_exec('/usr/local/sbin/pluginctl -s radvd start'); break; case 'BACKUP': shell_exec('/usr/local/sbin/pluginctl -s radvd stop'); break;}
<?phprequire_once('config.inc');require_once('util.inc');$subsystem = !empty($argv[1]) ? $argv[1] : '';$type = !empty($argv[2]) ? $argv[2] : '';if ($type != 'MASTER' && $type != 'BACKUP') { log_error("Carp '$type' event unknown from source '{$subsystem}'"); exit(1);}if (!strstr($subsystem, '@')) { log_error("Carp '$type' event triggered from wrong source '{$subsystem}'"); exit(1);}switch ($type) { case 'MASTER': shell_exec('/usr/local/sbin/pluginctl -s radvd start'); break; case 'BACKUP': shell_exec('/usr/local/sbin/pluginctl -s radvd stop'); break;}