Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| userdoc:tt-dhcpv6-prefix-delegation [2017/06/03 19:32] – [DHCPv6 Client Configuration] abelbeck | userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 15:20] (current) – [DHCPv6 Client Action Script] abelbeck | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| !!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. | + | !!Note: AstLinux 1.3.0 or later!! executes a default action, additional custom actions can enabled  | 
| If an executable script exists at ''/ | If an executable script exists at ''/ | ||
| Line 74: | Line 74: | ||
| The '' | The '' | ||
| - | 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:\\ | 
| + | !!Note ->!! Occurs by default with AstLinux 1.3.0 or later | ||
| #!/bin/bash | #!/bin/bash | ||
|    |    | ||
| - |    | + |   case " | 
| - |      | + |     yes) changed=" | 
| - |       yes) changed=" | + |       | 
| - |         | + |       *) changed="" | 
| - |         *) changed="" | + | esac | 
| - | esac | + |   logger -t dhcp6c -p kern.info "IPv6 Prefix$changed: | 
| - |     logger -t dhcp6c -p kern.info "IPv6 Prefix$changed: | + | |
| - | fi | + | |
| ===== Debugging DHCPv6 ===== | ===== Debugging DHCPv6 ===== | ||