Isc-dhcp-client: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=/etc/dhcp/dhclient.conf= <pre> option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; send host-name = gethostname(); request subnet-m…“)
 
 
Zeile 9: Zeile 9:
 
rfc3442-classless-static-routes, ntp-servers;
 
rfc3442-classless-static-routes, ntp-servers;
 
timeout 300;
 
timeout 300;
 +
</pre>
 +
=/etc/dhcp/dhclient-enter-hooks.d/action=
 +
<pre>
 +
#!/bin/bash
 +
echo reason = $reason >> /tmp/dhclient.$$
 +
echo interface = $interface >> /tmp/dhclient.$$
 +
echo new_ip_address  = $new_ip_address  >> /tmp/dhclient.$$
 +
echo old_ip_address  = $old_ip_address  >> /tmp/dhclient.$$
 +
echo new_network_number  = $new_network_number  >> /tmp/dhclient.$$
 +
echo new_subnet_mask = $new_subnet_mask >> /tmp/dhclient.$$
 +
echo new_broadcast_address = $new_broadcast_address >> /tmp/dhclient.$$
 +
echo old_routers = $old_routers >> /tmp/dhclient.$$
 +
echo new_routers = $new_routers >> /tmp/dhclient.$$
 +
echo new_domain_search = $new_domain_search >> /tmp/dhclient.$$
 +
echo new_domain_name_servers = $new_domain_name_servers >> /tmp/dhclient.$
 
</pre>
 
</pre>

Aktuelle Version vom 22. Oktober 2017, 12:51 Uhr

/etc/dhcp/dhclient.conf

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, domain-search, host-name,
	dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
	netbios-name-servers, netbios-scope, interface-mtu,
	rfc3442-classless-static-routes, ntp-servers;
timeout 300;

/etc/dhcp/dhclient-enter-hooks.d/action

#!/bin/bash
echo reason = $reason >> /tmp/dhclient.$$
echo interface = $interface >> /tmp/dhclient.$$
echo new_ip_address  = $new_ip_address  >> /tmp/dhclient.$$
echo old_ip_address  = $old_ip_address  >> /tmp/dhclient.$$
echo new_network_number  = $new_network_number  >> /tmp/dhclient.$$
echo new_subnet_mask = $new_subnet_mask >> /tmp/dhclient.$$
echo new_broadcast_address = $new_broadcast_address >> /tmp/dhclient.$$
echo old_routers = $old_routers >> /tmp/dhclient.$$
echo new_routers = $new_routers >> /tmp/dhclient.$$
echo new_domain_search = $new_domain_search >> /tmp/dhclient.$$
echo new_domain_name_servers = $new_domain_name_servers >> /tmp/dhclient.$