Guest User

Untitled

a guest
May 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. # interfaces(5) file used by ifup(8) and ifdown(8)
  2.  
  3. # Please note that this file is written to be used with dhcpcd
  4. # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
  5.  
  6. # Include files from /etc/network/interfaces.d:
  7. source-directory /etc/network/interfaces.d
  8.  
  9. auto lo
  10. iface lo inet loopback
  11.  
  12. iface eth0 inet manual
  13.  
  14. allow-hotplug wlan0
  15. iface wlan0 inet manual
  16. wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  17.  
  18. allow-hotplug wlan1
  19. iface wlan1 inet manual
  20. wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  21.  
  22. # A sample configuration for dhcpcd.
  23. # See dhcpcd.conf(5) for details.
  24.  
  25. # Allow users of this group to interact with dhcpcd via the control socket.
  26. #controlgroup wheel
  27.  
  28. # Inform the DHCP server of our hostname for DDNS.
  29. hostname
  30.  
  31. # Use the hardware address of the interface for the Client ID.
  32. clientid
  33. # or
  34. # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
  35. # Some non-RFC compliant DHCP servers do not reply with this set.
  36. # In this case, comment out duid and enable clientid above.
  37. #duid
  38.  
  39. # Persist interface configuration when dhcpcd exits.
  40. persistent
  41.  
  42. # Rapid commit support.
  43. # Safe to enable by default because it requires the equivalent option set
  44. # on the server to actually work.
  45. option rapid_commit
  46.  
  47. # A list of options to request from the DHCP server.
  48. option domain_name_servers, domain_name, domain_search, host_name
  49. option classless_static_routes
  50. # Most distributions have NTP support.
  51. option ntp_servers
  52. # Respect the network MTU. This is applied to DHCP routes.
  53. option interface_mtu
  54.  
  55. # A ServerID is required by RFC2131.
  56. require dhcp_server_identifier
  57.  
  58. # Generate Stable Private IPv6 Addresses instead of hardware based ones
  59. slaac private
  60.  
  61. interface wlan0
  62. static ip_address=192.168.123.45/24
  63. static routers=192.168.123.45
  64. static domain_name_servers=8.8.8.8 8.8.4.4
  65.  
  66. denyinterfaces wlan0
  67.  
  68. interface eth0
  69. static ip_address=192.168.1.199/24
  70. static routers=192.168.1.1
  71. static domain_name_servers=8.8.8.8 8.8.4.4
Add Comment
Please, Sign In to add comment