DHCP Ubuntu

  sudo gedit /etc/default/isc-dhcp-server

y ponemos en v4 enp2s0

sudo apt -y install isc-dhcp-server
 
 

sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.orig


sudo gedit /etc/dhcp/dhcpd.conf

Configuramos con las siguientes configuraciones:
 
 
 
 
# dhcpd.conf

# option definitions common to all supported networks...
option domain-name "domimio103.local";
option domain-name-servers ai1pc103.domimio103.local;

default-lease-time 600;
max-lease-time 7200;

ddns-update-style none;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# This is a very basic subnet declaration.

subnet 192.168.32.0 netmask 255.255.255.0 {
  range  192.168.32.47  192.168.32.49;
  option routers  192.168.32.1;
}


# Fixed IP addresses can also be specified for hosts.   These addresses
host ai1pc103{
  hardware ethernet 18:C0:4D:DE:3A:6A ;
  fixed-address  192.168.32.200 ;
}

 sudo service isc-dhcp-server start

sudo service isc-dhcp-server status
sudo systemctl restart isc-dhcp-server

Comentarios

Entradas populares de este blog

Caracteristicas de mi equipo

dns recuperacion bind9