Cisco DHCP : Différence entre versions

De Wiki NCad
Aller à : navigation, rechercher
(Page créée avec « == Configuration de base == (config) # ip dhcp pool dhcp-private-pool (dhcp-config) # network 10.0.0.0/24 (dhcp-config) # dns-server 10.0.0.46 8.8.8.8 (dhcp-config) # dom... »)
 
 
Ligne 1 : Ligne 1 :
 
== Configuration de base ==
 
== Configuration de base ==
  
(config) # ip dhcp pool dhcp-private-pool
+
{{ Box Console | objet=(config) # ip dhcp pool dhcp-private-pool<br />
(dhcp-config) # network 10.0.0.0/24
+
(dhcp-config) # network 10.0.0.0/24<br />
(dhcp-config) # dns-server 10.0.0.46 8.8.8.8
+
(dhcp-config) # dns-server 10.0.0.46 8.8.8.8<br />
(dhcp-config) # domain-name net.ncad.fr
+
(dhcp-config) # domain-name net.ncad.fr<br />
(dhcp-config) # netbios-name-server 10.0.0.45
+
(dhcp-config) # netbios-name-server 10.0.0.45<br />
(dhcp-config) # default-router 10.0.0.254
+
(dhcp-config) # default-router 10.0.0.254<br />
(dhcp-config) # lease 7
+
(dhcp-config) # lease 7 }}
  
 
== Exclure IP du pool ==
 
== Exclure IP du pool ==
  
(config) # ip dhcp excluded-address 10.0.0.24
+
{{ Box Console | objet=(config) # ip dhcp excluded-address 10.0.0.24 }}
  
 
== Adresse IP rattachée à MAC ==
 
== Adresse IP rattachée à MAC ==
  
(config) # ip dhcp pool dhcp-private-pool-romain
+
{{ Box Console | objet=(config) # ip dhcp pool dhcp-private-pool-romain<br />
(dhcp-config) # host 10.0.0.24 !/24
+
(dhcp-config) # host 10.0.0.24 !/24<br />
(dhcp-config) # client-identifier 1234.5678.9ABC
+
(dhcp-config) # client-identifier 1234.5678.9ABC }}
(dhcp-config) # exit
+
  
 
== Baux DHCP ==
 
== Baux DHCP ==
  
show ip dhcp binding
+
{{ Box Console | objet=show ip dhcp binding<br />
clear ip dhcp binding 10.0.0.25
+
clear ip dhcp binding 10.0.0.25 }}
  
 
== Statistiques ==
 
== Statistiques ==
  
show ip dhcp server statistics
+
{{ Box Console | objet=show ip dhcp server statistics }}

Version actuelle en date du 5 avril 2014 à 01:22

Configuration de base

ICON Terminal.png

(config) # ip dhcp pool dhcp-private-pool
(dhcp-config) # network 10.0.0.0/24
(dhcp-config) # dns-server 10.0.0.46 8.8.8.8
(dhcp-config) # domain-name net.ncad.fr
(dhcp-config) # netbios-name-server 10.0.0.45
(dhcp-config) # default-router 10.0.0.254
(dhcp-config) # lease 7

Exclure IP du pool

ICON Terminal.png

(config) # ip dhcp excluded-address 10.0.0.24

Adresse IP rattachée à MAC

ICON Terminal.png

(config) # ip dhcp pool dhcp-private-pool-romain
(dhcp-config) # host 10.0.0.24 !/24
(dhcp-config) # client-identifier 1234.5678.9ABC

Baux DHCP

ICON Terminal.png

show ip dhcp binding
clear ip dhcp binding 10.0.0.25

Statistiques

ICON Terminal.png

show ip dhcp server statistics