Advertisement
Guest User

Untitled

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