search the web

Thursday, October 8, 2015

Configuring cisco switch as dhcp server

configuring cisco switch as dhcp server


conf t
ip dhcp pool internal
!This enables dhcp pool as internal

network 192.168.0.0 /24
!tells the network from which the switch will assign ip addresses.

default-router 192.168.0.1
!default router here means the default gateway

dns-server 4.2.2.2

domain-name networkers.af

lease 0 2
!enables lease for 2 days
exit

ip dhcp excluded-address 192.168.0.1 192.168.0.10
exit

service dhcp
!this command enables dhcp service

show ip dhcp binding
!shows dhcp ip to mac binding

for initial configuration of Router, switch or AP visit link below
initial configuration of Router, Switch or AP

No comments: