In above topology AR1 Gig0/0/0 interface is already configured with IP address which going to act as gateway for the end device. So we can start directly with DHCP configuration:
STEP 1: Enable the DHCP in System View Mode
[AR1]dhcp enableSTEP 2: Configuring DHCP Pool Globally
[AR1]ip pool LAN-A
Info: It's successful to create an IP address pool.
[AR1-ip-pool-LAN-A]network 192.168.1.0 mask 24
[AR1-ip-pool-LAN-A]gateway-list 192.168.1.1
[AR1-ip-pool-LAN-A]dns-list 192.168.1.101 192.168.1.102
You can also verify your configuration use following command:
[AR1]display current-configuration
#
ip pool LAN
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 192.168.1.101 192.168.1.102
#
STEP 3: Enabling DHCP On LAN facing Interface
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]dhcp select global
In above step we informed LAN facing interface about where to look for the pool once its receive DHCP request from clients.
Now you can you can go to your PCs command prompt and execute following command
ipconfig /release
ipconfig /renew
To check you PC has received IP
ipconfig
Finally, to confirm how many IP been released so for to the end devices you can use following command on the AR1.
In above diagram you can see what IPs been release so far.
No comments:
Post a Comment