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 14:24] abelbeck [DHCPv6 Client Configuration] |
userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 10:20] 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 - '' | ||
{{: | {{: | ||
+ | !!Version ->!! AstLinux 1.3.0 and later - '' | ||
{{: | {{: | ||
Line 36: | 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 72: | 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 ===== | ||