Editing Cisco IOS DHCP Server configuration
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | |||
[[Cisco IOS]] [[Dynamic Host Configuration Protocol|DHCP]] Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/ | [[Cisco IOS]] [[Dynamic Host Configuration Protocol|DHCP]] Server configuration: https://study-ccna.com/configure-cisco-router-as-dhcp-server/ | ||
− | + | <pre> | |
− | + | 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 | ||
+ | </pre> | ||
− | |||
− | |||
− | |||
− | |||
+ | <code>[[show running-config]]</code> | ||
− | |||
.../... | .../... | ||
− | + | ip dhcp pool YOUR_POOL_NAME | |
− | + | import all | |
− | + | network 10.10.10.0 255.255.255.0 | |
default-router 10.10.10.1 | default-router 10.10.10.1 | ||
domain-name YOUR_DOMAIN.COM | domain-name YOUR_DOMAIN.COM | ||
− | dns-server 10.10.10.1 | + | dns-server 10.10.10.1 |
− | + | lease 2 | |
.../... | .../... | ||
− | + | ||
== Commands == | == Commands == | ||
Line 30: | Line 31: | ||
* <code>[[show ip dhcp server statistics]]</code> | * <code>[[show ip dhcp server statistics]]</code> | ||
* <code>[[show dhcp server]]</code> | * <code>[[show dhcp server]]</code> | ||
− | + | * <code>[[lease]]</code> | |
− | * <code>[[lease]]</code> | ||
* <code>[[lease infinite]]</code> | * <code>[[lease infinite]]</code> | ||
− | |||
− | |||
− | |||
== Activities == | == Activities == | ||
* Read verify and troubleshooting DHCP configuration: https://www.ciscopress.com/articles/article.asp?p=1574301&seqNum=6 | * Read verify and troubleshooting DHCP configuration: https://www.ciscopress.com/articles/article.asp?p=1574301&seqNum=6 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == |
Advertising: