<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Confuguration_r%C3%A9seau_DHCP_ou_Statique</id>
	<title>Confuguration réseau DHCP ou Statique - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Confuguration_r%C3%A9seau_DHCP_ou_Statique"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Confuguration_r%C3%A9seau_DHCP_ou_Statique&amp;action=history"/>
	<updated>2026-05-19T21:53:02Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Confuguration_r%C3%A9seau_DHCP_ou_Statique&amp;diff=272&amp;oldid=prev</id>
		<title>Jpinon : Version 1</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Confuguration_r%C3%A9seau_DHCP_ou_Statique&amp;diff=272&amp;oldid=prev"/>
		<updated>2023-10-04T14:45:47Z</updated>

		<summary type="html">&lt;p&gt;Version 1&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sur une station reliée au réseau la configuration peut se faire en IP statique (la machine à une IP et une configuration faite une fois pour toute) ou dynamique au travers d&amp;#039;un serveur DHCP.&lt;br /&gt;
&lt;br /&gt;
== DHCP ==&lt;br /&gt;
C&amp;#039;est en général la configuration standard sur une installation Linux officielle. Dans le fichier :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
/etc/dhcpd.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On doit trouver les lignes suivantes commentées&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Custom static IP address for eth0.&lt;br /&gt;
interface eth0&lt;br /&gt;
# static ip_address=1.2.3.4/24&lt;br /&gt;
# static routers=1.2.3.254&lt;br /&gt;
# static domain_name_servers=8.8.8.8&lt;br /&gt;
&lt;br /&gt;
# Custom static IP address for wlan0&lt;br /&gt;
interface wlan0&lt;br /&gt;
# static ip_address=1.2.3.4/24&lt;br /&gt;
# static routers=1.2.3.254&lt;br /&gt;
# static domain_name_servers=8.8.8.8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Si la configuration était statique ces lignes seraient dé commantées et configurées. Il faudrait simplement les reconfigurer et rebooter.&lt;br /&gt;
&lt;br /&gt;
On vérifie la conf obtenue pas DHCP par&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ifconfig    # Classique &lt;br /&gt;
ip a        # pour les deernières version Linux&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Statique ==&lt;br /&gt;
Lorsque l&amp;#039;on travaille sur un LAN spécifique (Labo Usine etc.) on a souvent besoin de régler une config spécifique donnée par l&amp;#039;administrateur du réseau. On nous donne en général (ici la configuration est pour le port ethernet RJ45 donc l&amp;#039;interface eth0):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Paramètre&lt;br /&gt;
!Exemple&lt;br /&gt;
|-&lt;br /&gt;
!IP&lt;br /&gt;
|10.10.0.101&lt;br /&gt;
|-&lt;br /&gt;
!Nasque&lt;br /&gt;
|0.0.0.255 ou (/24)&lt;br /&gt;
|-&lt;br /&gt;
!Passerelle par défaut&lt;br /&gt;
|10.10.0.254&lt;br /&gt;
|-&lt;br /&gt;
!Serveur(s) DNS&lt;br /&gt;
|10.10.1.10 10.10.2.10&lt;br /&gt;
|}&lt;br /&gt;
Il faut configurer le fichier :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
/etc/dhcpd.conf&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Avec les paramètres &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Custom static IP address for eth0.&lt;br /&gt;
interface eth0&lt;br /&gt;
static ip_address=10.10.1.101/24&lt;br /&gt;
static routers=10.10.10.1.254&lt;br /&gt;
static domain_name_servers=10.10.1.10 10.10.2.10&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Et toujours pareil on reboote et on tests avec :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
ip a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>