Toggle between client and router mode on network interface (Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
623 B

5 years ago
5 years ago
  1. DHCPARGS="eth0";
  2. authoritative;
  3. ##############################################
  4. # Fixed IP addresses for clients with the following
  5. # MAC addresses
  6. host rp1-modelb {
  7. hardware ethernet b8:27:eb:44:33:22;
  8. fixed-address 192.168.3.4;
  9. }
  10. ##############################################
  11. # DHCP server for network interface eth0
  12. subnet 192.168.3.0 netmask 255.255.255.0 {
  13. range 192.168.3.4 192.168.3.254;
  14. option subnet-mask 255.255.255.0;
  15. option routers 192.168.3.1;
  16. option domain-name-servers 208.67.222.222, 208.67.220.220, 208.67.222.220, 208.67.220.222;
  17. }