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/07 15:17] – [DHCPv6 Client Action Script] abelbeck | userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 15:20] (current) – [DHCPv6 Client Action Script] abelbeck | ||
|---|---|---|---|
| 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 ===== | ||