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:25] abelbeck [DHCPv6 Client Action Script] |
userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 10:19] abelbeck [DHCPv6 Client Action Script] |
||
---|---|---|---|
Line 27: | Line 27: | ||
Internal Interfaces: -> Interface: -> IPv6 Autoconfig: | Internal Interfaces: -> Interface: -> IPv6 Autoconfig: | ||
+ | !!Version ->!! AstLinux 1.2.5 to AstLinux 1.2.10 - '' | ||
{{: | {{: | ||
- | !!Tip -> | + | !!Version |
+ | {{: | ||
!!Note ->!! A " | !!Note ->!! A " | ||
- | |||
===== DHCPv6 Client Action Script ===== | ===== DHCPv6 Client Action Script ===== | ||
!!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, additional custom actions can enabled if a custom script is defined. | ||
If an executable script exists at ''/ | If an executable script exists at ''/ | ||
Line 65: | Line 68: | ||
!!Note ->!! Do not expect all the variables to be always defined, though if '' | !!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: | + | Lastly, an indication whether the DHCPv6 update was different from the previous update: |
+ | |||
+ | dhcp6c_changed | ||
+ | |||
+ | The '' | ||
+ | |||
+ | As an example, a simple script to log when the DHCPv6 lease is updated | ||
+ | !!Note ->!! Occurs by default with AstLinux 1.3.0 or later | ||
#!/bin/bash | #!/bin/bash | ||
| | ||
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 ===== |