DHCP
(Dynamic Host Configuration Protocol)
Dynamic Host Configuration Protocol
(DHCP)to assign IP address to
hosts. Administrator uses DHCP for small networks to vast networks. Cisco
routers and all other companies routers support DHCP.
List
of the information a DHCP servercan provide:
·
IP address
·
Subnet mask
·
Domain
name
·
Default
gateway (routers)
·
DNS
So this the network in which ill use
DHCP to get IP addresses, Subnet mask Default gateway.
Commands used to implement DHCP are
Router
Router(config)#ipdhcp pool abc
Router(dhcp-config)#network 10.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#dns-server 1.1.1.1
Router(dhcp-config)#exit
Router(config)#show ipdhc
Router(config)#show ipdhcpbing
Router(config)#show ipdhcp bind
Router(config)#do show ipdhcp binding
IP address
Client-ID/ Lease
expiration Type
Hardware address
10.0.0.3
00D0.D3A4.7C76 -- Automatic
10.0.0.5
0001.4284.A84B -- Automatic
10.0.0.4
000A.41B3.E95B -- Automatic
10.0.0.2
0090.2B58.1B20 -- Automatic
Router1
Router1>en
Router1#config t
Router1(config)#ipdhcp pool abc
Router1(dhcp-config)#network 20.0.0.0 255.0.0.0
Router1(dhcp-config)#default-router 20.0.0.1
Router1(dhcp-config)#dns-server 1.1.1.1
To check for hosts connected with Router assigned ip
address
Router1(config)#do show ipdhcp binding
IP address
Client-ID/ Lease
expiration Type
Hardware address
20.0.0.2
0030.F293.E51D -- Automatic
20.0.0.5
0001.63E0.3787 -- Automatic
20.0.0.4 0002.1728.BAA9 -- Automatic
20.0.0.3
000A.F3D8.401B -- Automatic
Router(config)#ipdhcp pool abc
Router(dhcp-config)#network 30.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 30.0.0.1
Router(dhcp-config)#dns-server 1.1.1.1
Router(config)#do show ipdhcp binding
IP address
Client-ID/ Lease
expiration Type
Hardware address
30.0.0.5
00D0.586C.A6DC -- Automatic
30.0.0.3
0006.2A3E.0A44 -- Automatic
30.0.0.4
0030.F201.E53B -- Automatic
30.0.0.2
00D0.5848.1D94 -- Automatic
No comments:
Post a Comment