0% found this document useful (0 votes)
88 views4 pages

(Root@localhost ) # (Root@localhost ) #: Travail A Faire Dans Le Poste Serveur

The document provides instructions for configuring a DHCP server on a CentOS 7 system. It includes editing the network configuration file and restarting the network service. It also shows installing the DHCP package, configuring the DHCP configuration file to serve IP addresses in the 3.3.3.0/24 subnet range, and restarting the DHCP daemon service.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views4 pages

(Root@localhost ) # (Root@localhost ) #: Travail A Faire Dans Le Poste Serveur

The document provides instructions for configuring a DHCP server on a CentOS 7 system. It includes editing the network configuration file and restarting the network service. It also shows installing the DHCP package, configuring the DHCP configuration file to serve IP addresses in the 3.3.3.0/24 subnet range, and restarting the DHCP daemon service.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

TRAVAIl A FAIRE DANS LE POSTE SERVEUR

[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0


[root@localhost ~]# service network restart
Restarting network (via systemctl): [ OK ]

[root@localhost ~]# ifconfig


ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 3.3.3.3 netmask 255.255.255.0 broadcast 3.3.3.255

inet6 fe80::20c:29ff:fed1:309e prefixlen 64 scopeid 0x20<link>

ether 00:0c:29:d1:30:9e txqueuelen 1000 (Ethernet)

RX packets 139 bytes 8340 (8.1 KiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 41 bytes 4769 (4.6 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10<host>

loop txqueuelen 1 (Boucle locale)

RX packets 438 bytes 37898 (37.0 KiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 438 bytes 37898 (37.0 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255

ether 52:54:00:06:af:a1 txqueuelen 1000 (Ethernet)

RX packets 0 bytes 0 (0.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 0 bytes 0 (0.0 B)


TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@localhost ~]# systemctl restart network.service


[root@localhost ~]#
[root@localhost ~]# rpm -qa dhcp
[root@localhost ~]# vi /etc/hostname
[root@localhost ~]#
#

[root@servdhcp ~]# rpm -ivh /root/Bureau/rpmcentos7/rpmcentos2017/dhcp/dhcp-4.2.5-


58.el7.centos.x86_64.rpm

attention : /root/Bureau/rpmcentos7/rpmcentos2017/dhcp/dhcp-4.2.5-58.el7.centos.x86_64.rpm:
Entête V3 RSA/SHA256 Signature, clé ID f4a80eb5: NOKEY

Préparation... ################################# [100%]

Mise à jour / installation...

1:dhcp-12:4.2.5-58.el7.centos ################################# [100%]

[root@servdhcp ~]# vi /etc/dhcp/dhcpd.conf


# DHCP Server Configuration file.

# see /usr/share/doc/dhcp*/dhcpd.conf.example

# see dhcpd.conf(5) man page

ddns-update-style none;

ignore client-updates;

authoritative;

subnet 3.3.3.0 netmask 255.255.255.0 {

option routers 3.3.3.10;

option subnet-mask 255.255.255.0;

option domain-name "ista.ma";

option domain-name-servers 212.217.1.1;

range 3.3.3.101 3.3.3.131;

default-lease-time 21600;

max-lease-time 43200;
}

host pc1 {

hardware ethernet 12:34:56:78:AB:CD; # adresse MAC de la machine

fixed-address 3.3.3.125; # IP que l’on veut lui assigner

[root@servdhcp ~]# systemctl restart dhcpd.service


[root@servdhcp ~]#

TRAVAIL A FAIRE DANS LE POSTE CLIENT-WINDOWS 2012r2graphique.

You might also like