Difference between revisions of "Cisco IOS DHCP Server configuration"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
cisco_ios_sw(dhcp-config)#dns-server 192.168.0.1
 
cisco_ios_sw(dhcp-config)#dns-server 192.168.0.1
 
</pre>
 
</pre>
 +
 +
 +
show running-config
 +
 +
.../...
 +
ip dhcp pool YOUR_POOL_NAME
 +
  import all
 +
  network 10.10.10.0 255.255.255.0
 +
  default-router 10.10.10.1
 +
  domain-name YOUR_DOMAIN.COM
 +
  dns-server 10.10.10.1
 +
  lease 2
 +
.../...
 +
 +
  
  

Revision as of 14:06, 12 January 2020

Cisco IOS DHCP Server configuration[1]

cisco_ios_sw(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.47
cisco_ios_sw(config)#ip dhcp pool YOUR_DHCP_POOLNAME
cisco_ios_sw(dhcp-config)#network 192.168.0.0 255.255.255.0
cisco_ios_sw(dhcp-config)#default-router 192.168.0.1
cisco_ios_sw(dhcp-config)#dns-server 192.168.0.1


show running-config

.../...
ip dhcp pool YOUR_POOL_NAME
 import all
 network 10.10.10.0 255.255.255.0
 default-router 10.10.10.1 
 domain-name YOUR_DOMAIN.COM
 dns-server 10.10.10.1 
 lease 2
.../...



Commands

See also

  • https://study-ccna.com/configure-cisco-router-as-dhcp-server/
  • Advertising: