DHCP Configration
DHCP Configration
=============
Router>
Router>ena
Router>enable
Router#config
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#config
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp pool
% Incomplete command.
Router(config)#ip dhcp pool 10pool
Router(dhcp-config)#net
Router(dhcp-config)#network 10.0.0.0 255.255.255.0
Router(dhcp-config)#defau
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#dns-ser
Router(dhcp-config)#dns-server 10.0.0.1
Router(dhcp-config)#exit
Router(config)#ip
Router(config)#ipdh
Router(config)#ip d
Router(config)#ip dh
Router(config)#ip dhcp ex
Router(config)#ip dhcp excluded-address 10.0.0.1 10.0.0.10
Router(config)#ip dhcp pool 20pool
Router(dhcp-config)#network 20.0.0.0 255.255.255.0
Router(dhcp-config)#defau
Router(dhcp-config)#default-router 20.0.0.1
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 20.0.0.1
Router(dhcp-config)#exit
Router(config)#ip dh
Router(config)#ip dhcp ex
Router(config)#ip dhcp excluded-address 20.0.0.1 20.0.0.10
Router(config)#ip dh
Router(config)#ip dhcp pool 12pool
Router(dhcp-config)#ip net
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.12.0 255.255.255.0
Router(dhcp-config)#exit
Router(config)#
DHCP_pool:
Router>enable
Router#config
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname DHCP_Router
Step-2 :
Command Line Interface of the router is accessed and high-lighted commands are
executed to successfully configure the DHCP. At first, the ‘IP DHCP pool pool_name’
command is executed. After this, the network address is defined along with its
subnet mask. And further, the ‘default-router IP-address’ command is used to define
the default route address.
Step-3 :
In this step, a range of IP addresses is excluded from the addresses defined in the
subnet mask of the DHCP pool. Excluded IP addresses will be not assigned to any
host system in the network.
Step-4 :
The interface of the router connected with the switch is assigned with the IP
address defined as the default router during the DHCP configuration. This route
will be taken by the data packets to reach their destination system. Also, the ‘no
shutdown command is used to change the state of the connected interface to up.
Router : 1
=============================
Router>enab
Router>enable
Router#config
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#interf
Router(config)#interface gig
Router(config)#interface gigabitEthernet 0/0/1
Router(config-if)#ip add
Router(config-if)#ip address dhcp
Router(config-if)#
Router(config-if)#no shut
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
Router(config-if)#exit
Router(config)#inter
Router(config)#interface gi
Router(config)#interface gigabitEthernet 0/0/1
Router(config-if)#ip help
Router(config-if)#ip helper-address 192.168.12.1
Router(config-if)#exit
Router(config)#
Router#