- Inter-VLAN Communication Using an External Router: Router-on-a-Stick
- Inter-VLAN Communication Tips
- Inter-VLAN Communication on a Multilayer Switch Through a Switch Virtual Interface
- Configuration Example: Inter-VLAN Communication
- Configuring DHCP Server on a Router or Layer 3 Switch
- Verifying and Troubleshooting DHCP Configuration
- Configuring a DHCP Helper Address
- DHCP Client on a Cisco IOS Software Ethernet Interface
- Configuration Example: DHCP
- Configuring Cisco Express Forwarding
- Verifying CEF
- Troubleshooting CEF
Configuring DHCP Server on a Router or Layer 3 Switch
Router(config)#ip dhcp pool internal |
Creates a DHCP pool called internal. |
Router(dhcp-config)#network 172.16.10.0 255.255.255.0 |
Defines the range of addresses to be leased. |
Router(dhcp-config)#default-router 172.16.10.1 |
Defines the address of the default router for the client. |
Router(dhcp-config)#dns-server 172.16.10.10 |
Defines the address of the Domain Name System (DNS) server for the client. |
Router(dhcp-config)#netbios-name-server 172.16.10.10 |
Defines the address of the NetBIOS server for the client. |
Router(dhcp-config)#domain-name fakedomainname.ca |
Defines the domain name for the client. |
Router(dhcp-config)#lease 14 12 23 |
Defines the lease time to be 14 days, 12 hours, 23 minutes. |
Router(dhcp-config)#lease infinite |
Sets the lease time to infinity; the default time is 1 day. |
Router(dhcp-config)#exit |
Returns to global configuration mode. |
Router(config)#ip dhcp excluded-address 172.16.10.1 172.16.10.9 |
Specifies the range of addresses not to be leased out to clients. |
Router(config)#service dhcp |
Enables the DHCP service and relay features on a Cisco IOS router. |
Router(config)#no service dhcp |
Turns off the DHCP service. DHCP service is enabled by default in Cisco IOS Software. |