Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. [pi3]$ sudo vim /etc/default/isc-dhcp-server
  2. 3 INTERFACES="eth0"
  3. 4 :wq
  4. 5 [pi3]$ sudo vim /etc/dhcp/dhcpd.conf
  5. 6 authoritative;
  6. 7 subnet 10.10.10.0 netmask 255.255.255.0 {
  7. 8 range 10.10.10.128 10.10.10.191;
  8. 9 option domain-name-servers 129.241.0.200, 129.241.0.201, 8.8.8.8;
  9. 10 option domain-name "ttm4175.ntnu.no";
  10. 11 option routers 10.10.10.103;
  11. 12 }
  12. 13 host rpi2 {
  13. 14 hardware ethernet b8:27:eb:f9:e0:68;
  14. 15 fixed-address 10.10.10.2;
  15. 16 }
  16. 17 :wq
  17. 18 [pi3]$ sudo systemctl start isc-dhcp-server.service
  18. 19 [pi3]$ sudo systemctl enable isc-dhcp-server.service
  19. 20
  20. 21 [pi2]$ sudo vim /etc/dhcpcd.conf
  21. 22 #define static profile to enable both DHCP and static IP as backup, we
  22. could also just remove the configurations from before
  23. 23 profile static_eth0
  24. 24 static ip_address=10.10.10.202/24
  25. 25 static routers=10.10.10.103
  26. 26 static domain_name_servers=129.241.0.200 129.241.0.201 8.8.8.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement