Advertisement
Guest User

/etc/dhcpcd.conf

a guest
Sep 7th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. # A sample configuration for dhcpcd.
  2. # See dhcpcd.conf(5) for details.
  3.  
  4. # Allow users of this group to interact with dhcpcd via the control socket.
  5. #controlgroup wheel
  6.  
  7. # Inform the DHCP server of our hostname for DDNS.
  8. hostname
  9.  
  10. # Use the hardware address of the interface for the Client ID.
  11. clientid
  12. # or
  13. # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
  14. # Some non-RFC compliant DHCP servers do not reply with this set.
  15. # In this case, comment out duid and enable clientid above.
  16. #duid
  17.  
  18. # Persist interface configuration when dhcpcd exits.
  19. persistent
  20.  
  21. # Rapid commit support.
  22. # Safe to enable by default because it requires the equivalent option set
  23. # on the server to actually work.
  24. option rapid_commit
  25.  
  26. # A list of options to request from the DHCP server.
  27. option domain_name_servers, domain_name, domain_search, host_name
  28. option classless_static_routes
  29. # Most distributions have NTP support.
  30. option ntp_servers
  31. # Respect the network MTU. This is applied to DHCP routes.
  32. option interface_mtu
  33.  
  34. # A ServerID is required by RFC2131.
  35. require dhcp_server_identifier
  36.  
  37. # Generate Stable Private IPv6 Addresses instead of hardware based ones
  38. slaac private
  39.  
  40. # Example static IP configuration:
  41. #interface eth0
  42. static ip_address=192.168.2.145/24
  43. static routers=192.168.2.1
  44. static domain_name_servers=192.168.2.1
  45.  
  46. # It is possible to fall back to a static IP if DHCP fails:
  47. # define static profile
  48. #profile static_eth0
  49. #static ip_address=192.168.1.23/24
  50. #static routers=192.168.1.1
  51. #static domain_name_servers=192.168.1.1
  52.  
  53. # fallback to static profile on eth0
  54. #interface eth0
  55. #fallback static_eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement