dhcpcd.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Inform the DHCP server of our hostname for DDNS.
  2. hostname
  3. # Use the hardware address of the interface for the Client ID.
  4. clientid
  5. # Rapid commit support.
  6. # Safe to enable by default because it requires the equivalent option set
  7. # on the server to actually work.
  8. option rapid_commit
  9. # A list of options to request from the DHCP server.
  10. option domain_name_servers, domain_name, domain_search, host_name
  11. option classless_static_routes
  12. # Most distributions have NTP support.
  13. option ntp_servers
  14. # Respect the network MTU. This is applied to DHCP routes.
  15. option interface_mtu
  16. # A ServerID is required by RFC2131.
  17. require dhcp_server_identifier
  18. # Generate Stable Private IPv6 Addresses instead of hardware based ones.
  19. slaac private
  20. # Don't send any ARP requests.
  21. noarp
  22. # Only configure IPv4.
  23. ipv4only
  24. # Wait 20 seconds before falling back to static profile.
  25. reboot 20
  26. # Configure loopback interface.
  27. interface lo
  28. static ip_address=127.0.0.1/8
  29. # Define static profile for eth0.
  30. profile static_eth0
  31. static ip_address=192.168.1.100/24
  32. static routers=192.168.1.1
  33. static domain_name_servers=192.168.1.1
  34. # Fallback to static profile on eth0.
  35. interface eth0
  36. fallback static_eth0
  37. # Define static profile for mvl0.
  38. profile static_mvl0
  39. static ip_address=192.168.1.101/24
  40. static routers=192.168.1.1
  41. static domain_name_servers=192.168.1.1
  42. # Fallback to static profile on mvl0.
  43. interface mvl0
  44. fallback static_mvl0
  45. # Static IP address for Wi-Fi access point.
  46. interface wlan0
  47. static ip_address=192.168.42.1/24