Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt-dhcpv6-prefix-delegation [2017/05/11 16:42] abelbeck [DHCPv6 Client Action Script] |
userdoc:tt-dhcpv6-prefix-delegation [2017/06/03 07:31] abelbeck [DHCPv6 Client Action Script] |
||
---|---|---|---|
Line 36: | Line 36: | ||
!!Note: AstLinux 1.2.10 or later is required!! | !!Note: AstLinux 1.2.10 or later is required!! | ||
+ | |||
+ | !!Note: AstLinux 1.3.0 or later!! executes a default action if a custom script is not defined. | ||
If an executable script exists at ''/ | If an executable script exists at ''/ | ||
Line 62: | Line 64: | ||
dhcp6c_prefix_len | dhcp6c_prefix_len | ||
+ | |||
+ | !!Note ->!! Do not expect all the variables to be always defined, though if '' | ||
Lastly, an indication whether the DHCPv6 update was different from the previous update: | Lastly, an indication whether the DHCPv6 update was different from the previous update: | ||
Line 68: | Line 72: | ||
The '' | The '' | ||
- | |||
- | !!Note ->!! Do not expect all the variables to be always defined, though if '' | ||
As an example, a simple script to log when the DHCPv6 lease is updated and whether it changed: | As an example, a simple script to log when the DHCPv6 lease is updated and whether it changed: | ||
Line 76: | Line 78: | ||
| | ||
if [ -n " | if [ -n " | ||
- | logger -t dhcp6c -p kern.info "Updated with Prefix: $dhcp6c_prefix${dhcp6c_changed: | + | |
+ | yes) changed=" | ||
+ | no) changed=" | ||
+ | *) changed="" | ||
+ | esac | ||
+ | | ||
fi | fi | ||
===== Debugging DHCPv6 ===== | ===== Debugging DHCPv6 ===== |