Sistemas‎ > ‎Linux‎ > ‎

DHCP


# vi /etc/sysconfig/dhcpd
  DHCPDARGS=eth0

# vi /etc/dhcp/dhcpd.conf

option domain-name "example.org";
option domain-name-servers 192.168.1.10, 208.67.222.222;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.50 192.168.1.254;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
}

host Printer01 {
  hardware ethernet 02:34:37:24:c0:a5;
  fixed-address 192.168.1.55;
}

# chkconfig --levels 235 dhcpd on
# service dhcpd start
Comments