<?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=Open_WRT_DHCP</id>
	<title>Open WRT DHCP - 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=Open_WRT_DHCP"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Open_WRT_DHCP&amp;action=history"/>
	<updated>2026-05-19T18:10:41Z</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=Open_WRT_DHCP&amp;diff=1241&amp;oldid=prev</id>
		<title>Jpinon : Page créée avec « L&#039;interface web est située au fin fond des paramètres avancés. Je préfère la ligne de commande!  == Modificatione ==  === Liste des entrées dans la liste des &quot;hosts&quot; statiques === &lt;syntaxhighlight lang=&quot;bash&quot;&gt; uci show dhcp uci show dhcp | grep &#039;dhcp.@host&#039; # pour seulement les bauds statiques &lt;/syntaxhighlight&gt;On a une liste :&lt;syntaxhighlight lang=&quot;text&quot;&gt; dhcp.@host[0]=host dhcp.@host[0].mac=&#039;cc:40:85:b1:89:e0&#039; dhcp.@host[0].ip=&#039;192.168.8.11&#039; dhcp.@host[0]... »</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Open_WRT_DHCP&amp;diff=1241&amp;oldid=prev"/>
		<updated>2025-09-13T12:27:38Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « L&amp;#039;interface web est située au fin fond des paramètres avancés. Je préfère la ligne de commande!  == Modificatione ==  === Liste des entrées dans la liste des &amp;quot;hosts&amp;quot; statiques === &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; uci show dhcp uci show dhcp | grep &amp;#039;dhcp.@host&amp;#039; # pour seulement les bauds statiques &amp;lt;/syntaxhighlight&amp;gt;On a une liste :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt; dhcp.@host[0]=host dhcp.@host[0].mac=&amp;#039;cc:40:85:b1:89:e0&amp;#039; dhcp.@host[0].ip=&amp;#039;192.168.8.11&amp;#039; dhcp.@host[0]... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;L&amp;#039;interface web est située au fin fond des paramètres avancés. Je préfère la ligne de commande!&lt;br /&gt;
&lt;br /&gt;
== Modificatione ==&lt;br /&gt;
&lt;br /&gt;
=== Liste des entrées dans la liste des &amp;quot;hosts&amp;quot; statiques ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uci show dhcp&lt;br /&gt;
uci show dhcp | grep &amp;#039;dhcp.@host&amp;#039; # pour seulement les bauds statiques&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On a une liste :&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
dhcp.@host[0]=host&lt;br /&gt;
dhcp.@host[0].mac=&amp;#039;cc:40:85:b1:89:e0&amp;#039;&lt;br /&gt;
dhcp.@host[0].ip=&amp;#039;192.168.8.11&amp;#039;&lt;br /&gt;
dhcp.@host[0].name=&amp;#039;toilettes_bas&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Qui ressemble beaucoup à ce que l&amp;#039;on va voir ci-dessous.&lt;br /&gt;
&lt;br /&gt;
=== Ajout d&amp;#039;un &amp;#039;host&amp;#039; ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uci add dhcp host&lt;br /&gt;
uci set dhcp.@host[-1].mac=&amp;#039;XX:XX:XX:XX:XX:XX&amp;#039;&lt;br /&gt;
uci set dhcp.@host[-1].ip=&amp;#039;192.168.8.50&amp;#039;&lt;br /&gt;
uci set dhcp.@host[-1].name=&amp;#039;mon_appareil&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;C&amp;#039;est vraiment très simple non? Pas la peine d&amp;#039;une GUI web !&lt;br /&gt;
&lt;br /&gt;
=== Retirer un &amp;#039;host&amp;#039; ===&lt;br /&gt;
Après avoir obtenu la liste des &amp;#039;hosts&amp;quot; DHCP statiques on peut en retirer un par son index:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uci delete dhcp.@host[0]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Valider les changements ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
uci commit dhcp&lt;br /&gt;
/etc/init.d/dnsmasq restart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>