SHARE
TWEET

Untitled

a guest Apr 15th, 2018 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. login as: pi
  2. pi@11.0.0.1's password:
  3. Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l
  4.  
  5. The programs included with the Debian GNU/Linux system are free software;
  6. the exact distribution terms for each program are described in the
  7. individual files in /usr/share/doc/*/copyright.
  8.  
  9. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  10. permitted by applicable law.
  11. Last login: Sun Apr 15 18:22:59 2018 from 11.0.0.254
  12. pi@raspberrypi:~ $ sudo more /etc/dhcpcd.conf
  13. # A sample configuration for dhcpcd.
  14. # See dhcpcd.conf(5) for details.
  15.  
  16. # Allow users of this group to interact with dhcpcd via the control socket.
  17. #controlgroup wheel
  18.  
  19. # Inform the DHCP server of our hostname for DDNS.
  20. hostname
  21.  
  22. # Use the hardware address of the interface for the Client ID.
  23. clientid
  24. # or
  25. # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
  26. # Some non-RFC compliant DHCP servers do not reply with this set.
  27. # In this case, comment out duid and enable clientid above.
  28. #duid
  29.  
  30. # Persist interface configuration when dhcpcd exits.
  31. persistent
  32.  
  33. # Rapid commit support.
  34. # Safe to enable by default because it requires the equivalent option set
  35. # on the server to actually work.
  36. option rapid_commit
  37.  
  38. # A list of options to request from the DHCP server.
  39. option domain_name_servers, domain_name, domain_search, host_name
  40. option classless_static_routes
  41. # Most distributions have NTP support.
  42. option ntp_servers
  43. # Respect the network MTU. This is applied to DHCP routes.
  44. option interface_mtu
  45.  
  46. # A ServerID is required by RFC2131.
  47. require dhcp_server_identifier
  48.  
  49. # Generate Stable Private IPv6 Addresses instead of hardware based ones
  50. slaac private
  51.  
  52. # Example static IP configuration:
  53. #interface eth0
  54. #static ip_address=192.168.0.10/24
  55. #static ip6_address=fd51:42f8:caae:d92e::ff/64
  56. #static routers=192.168.0.1
  57. #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
  58.  
  59. # It is possible to fall back to a static IP if DHCP fails:
  60. # define static profile
  61. #profile static_eth0
  62. #static ip_address=192.168.1.23/24
  63. #static routers=192.168.1.1
  64. #static domain_name_servers=192.168.1.1
  65.  
  66. # fallback to static profile on eth0
  67. #interface eth0
  68. #fallback static_eth0
  69.  
  70.  
  71. interface eth0
  72. static ip_address=11.0.0.1/24
  73.  
  74. interface wlan0
  75. env ifwireless=1
  76. env wpa_supplicant_driver=n180211,wext
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. pi@raspberrypi:~ $ sudo more /etc/network/interfaces
  93. # interfaces(5) file used by ifup(8) and ifdown(8)
  94.  
  95. # Please note that this file is written to be used with dhcpcd
  96. # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
  97.  
  98. # Include files from /etc/network/interfaces.d:
  99. source-directory /etc/network/interfaces.d
  100.  
  101. iface lo inet loopback
  102.  
  103. auto eth0
  104.  
  105. iface eth0 inet static
  106. address 11.0.0.1
  107. netmask 255.255.255.0
  108. network 11.0.0.0
  109. broadcast 11.0.0.255
  110. gateway 192.168.1.254
  111.  
  112. auto wlan0
  113. allow-hotplug wlan0
  114.  
  115. iface wlan0 inet dhcp
  116. wireless-essid VillageGreen
  117. wireless-key xxxxxxxx
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. pi@raspberrypi:~ $ sudo more /etc/wpa_supplicant/wpa_supplicant.conf
  134. country=US
  135. ctrl_interface=/var/run/wpa_supplicant
  136. network={
  137.    ssid="VillageGreen"
  138.    key_mgmt=NONE
  139.    wep_key0="xxxxxxx"
  140. }
  141. pi@raspberrypi:~ $
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top