Le protocole DHCP est un service réseau TCP/IP. Il permet aux ordinateurs clients d'obtenir automatique une configuration réseau.
apt-get install vim
apt-get install isc-dhcp-server
sudo vi /etc/default/isc-dhcpd-server
interface"eth0"
:wq
sudo cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.old
vi /etc/dhcp/dhcpd.conf
:g/^#/d
deny duplicates;
ping-check on;
ping-timeout 2;
log-facility local7;
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0
{
range 192.168.0.50 192.168.0.51;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
option domain-name-servers 192.168.0.1, 8.8.8.8;
option domain-name "titi.lesbontutos.lan";
default-lease-time 600;
max-lease-time 7200;
}
:wq
log dhcpd
sudo touch /var/log/dhcpd.log
sudo chown syslog:adm /var/log/dhcpd.log
sudo chmod 0640 /var/log/dhcpd.log
Puis ajouter ceci dans le fichier /etc/rsyslog.d/50-default.conf :
local7.* /var/log/dhcpd.log
modifier *.*;auth,authpriv.none;
*.*;auth,authpriv.none;local7.none -/var/log/syslog
ouvrivre un deuxieme terminat
tail -f /var/log/dhcpd.log
premiere fenetre
sudo -i
/etc/init.d/rsyslog restart
/etc/init.d/isc-dhcp-server start
---------------------------------------------------
/etc/init.d/isc-dhcp-server stop
----------------------------------------------------
host fix1
{
hardware ethernet 00:02:3f:3d:73:b3;
fixed-address 192.168.0.151;
filename "clone";
}
-----------------------------------------------------------
/etc/init.d/isc-dhcp-server start
Watch video installer un serveur dhcp (ubuntu) online without registration, duration hours minute second in high quality. This video was added by user Aven&CO 05 January 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 11,729 once and liked it 71 people.