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