349 events listed in the file.
350
351
352 #!/bin/sh
353
354 (
355 echo "Interface name: " $1
356 echo "Event: " $2
357
358 case $2 in
359 "BOUND")
360 echo "Address acquired from server "\
361 `/sbin/dhcpinfo -i $1 ServerID`
362 ;;
363 "BOUND6")
364 echo "Addresses acquired from server " \
365 `/sbin/dhcpinfo -v6 -i $1 ServerID`
366 ;;
367 "EXTEND")
368 echo "Lease extended for " \
369 `sbin/dhcpinfo -i $1 LeaseTim`" seconds"
370 ;;
371 "EXTEND6")
372 echo "New lease information obtained on $i"
373 ;;
374 "EXPIRE" | "DROP" | "RELEASE")
375 ;;
376
377 esac
378 ) >/var/run/dhcp_eventhook_output 2>&1
379
380
381
382
383 Note the redirection of stdout and stderr to a file.
384
385
386 FILES
387 /etc/dhcp/if.dhc
388 /etc/dhcp/if.dh6
389
694
695 DHCP can be performed on IP interfaces that are part of an IPMP group
696 (to acquire and maintain test addresses). The daemon will automatically
697 set the NOFAILOVER and DEPRECATED flags on each test address.
698 Additionally, the daemon will not add or remove default routes in this
699 case. Note that the actual DHCP packet exchange may be performed over
700 any active IP interface in the IPMP group. It is strongly recommended
701 that test addresses have infinite leases. Otherwise, an extended
702 network outage detectable only by probes may cause test address leases
703 to expire, causing in.mpathd(1M) to revert to link-based failure
704 detection and trigger an erroneous repair.
705
706
707 With DHCPv6, the link-local interface must be configured using
708 /etc/hostname6.hme0 in order for DHCPv6 to run on hme0 at boot time.
709 The logical interfaces for each address are plumbed by dhcpagent
710 automatically.
711
712
713
714 June 30, 2017 DHCPAGENT(1M)
|
349 events listed in the file.
350
351
352 #!/bin/sh
353
354 (
355 echo "Interface name: " $1
356 echo "Event: " $2
357
358 case $2 in
359 "BOUND")
360 echo "Address acquired from server "\
361 `/sbin/dhcpinfo -i $1 ServerID`
362 ;;
363 "BOUND6")
364 echo "Addresses acquired from server " \
365 `/sbin/dhcpinfo -v6 -i $1 ServerID`
366 ;;
367 "EXTEND")
368 echo "Lease extended for " \
369 `/sbin/dhcpinfo -i $1 LeaseTim`" seconds"
370 ;;
371 "EXTEND6")
372 echo "New lease information obtained on $i"
373 ;;
374 "EXPIRE" | "DROP" | "RELEASE")
375 ;;
376
377 esac
378 ) >/var/run/dhcp_eventhook_output 2>&1
379
380
381
382
383 Note the redirection of stdout and stderr to a file.
384
385
386 FILES
387 /etc/dhcp/if.dhc
388 /etc/dhcp/if.dh6
389
694
695 DHCP can be performed on IP interfaces that are part of an IPMP group
696 (to acquire and maintain test addresses). The daemon will automatically
697 set the NOFAILOVER and DEPRECATED flags on each test address.
698 Additionally, the daemon will not add or remove default routes in this
699 case. Note that the actual DHCP packet exchange may be performed over
700 any active IP interface in the IPMP group. It is strongly recommended
701 that test addresses have infinite leases. Otherwise, an extended
702 network outage detectable only by probes may cause test address leases
703 to expire, causing in.mpathd(1M) to revert to link-based failure
704 detection and trigger an erroneous repair.
705
706
707 With DHCPv6, the link-local interface must be configured using
708 /etc/hostname6.hme0 in order for DHCPv6 to run on hme0 at boot time.
709 The logical interfaces for each address are plumbed by dhcpagent
710 automatically.
711
712
713
714 February 13, 2020 DHCPAGENT(1M)
|