Advertisement
Guest User

isc-dhcp

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.95 KB | None | 0 0
  1. # ifconfig
  2.  
  3. ens3      Link encap:Ethernet  HWaddr 52:54:01:6d:da:27  
  4.           inet addr:44.14.23.79  Bcast:44.14.23.255  Mask:255.255.255.0
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:2621128 errors:0 dropped:264 overruns:0 frame:0
  7.           TX packets:18814 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:173873294 (173.8 MB)  TX bytes:1417413 (1.4 MB)
  10.  
  11. ens9      Link encap:Ethernet  HWaddr 52:54:04:7f:f7:e2  
  12.           inet addr:192.168.0.79  Bcast:192.168.0.255  Mask:255.255.255.0
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           RX packets:2601260 errors:0 dropped:385 overruns:0 frame:0
  15.           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:1000
  17.           RX bytes:135905550 (135.9 MB)  TX bytes:828 (828.0 B)
  18.  
  19.  
  20.  
  21.  
  22.  
  23. # cat /etc/default/isc-dhcp-server
  24.  
  25. # Defaults for isc-dhcp-server initscript
  26. # sourced by /etc/init.d/isc-dhcp-server
  27. # installed at /etc/default/isc-dhcp-server by the maintainer scripts
  28.  
  29. #
  30. # This is a POSIX shell fragment
  31. #
  32.  
  33. # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
  34. #DHCPD_CONF=/etc/dhcp/dhcpd.conf
  35.  
  36. # Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
  37. #DHCPD_PID=/var/run/dhcpd.pid
  38.  
  39. # Additional options to start dhcpd with.
  40. #   Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
  41. #OPTIONS=""
  42.  
  43. # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
  44. #   Separate multiple interfaces with spaces, e.g. "eth0 eth1".
  45. INTERFACES="ens9"
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. # cat /etc/dhcp/dhcpd.conf
  53.  
  54. ddns-update-style none;
  55. option domain-name-servers 8.8.4.4, 8.8.8.8;
  56.  
  57. authoritative;
  58.  
  59. subnet 192.168.16.0 netmask 255.255.255.0 {
  60.   option routers 192.168.16.1;
  61.   use-host-decl-names on;
  62.   range 192.168.16.100 192.168.16.200;
  63.   next-server 192.168.16.1;
  64.   ping-check = 1;
  65.   filename = "pxelinux.0";
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement