Chat with us, powered by LiveChat

Knowledge Base

Our knowledge base for your self-education

 

Design & Configure

DHCP Configuration (Cisco)

Technology: Network Services
Area: Network Services
Vendor: Cisco
Software: 12.X , 15.X
Platform: Catalyst 2960, 3560, 3750, 3850, 3650, 4500, 6500, 6800, Router ISR, 7200, ASR

 

DHCP Server functionality can be enabled on switch where are SVI interfaces or physical Layer 3 interfaces enabled. Example shows how to enable DHCP server for subnet 192.168.10.0/24.


!---- enable SVI -----
Switch(config)# interface VLAN10
Switch(config-if)# ip address 192.168.10.1 255.255.255.0
!---- define the pool name -----
Switch(config)# ip dhcp pool VLAN10
!---- specify network-----
Switch(dhcp-config)#network 192.168.10.0 255.255.255.0
!---- specify default gateway for subnet-----
Switch(dhcp-config)#default-router 192.168.10.1
!---- specify dns servers-----
Switch(dhcp-config)#dns-server 8.8.8.8 4.4.4.4

To add option to DHCP pool use following command

Switch(config)# ip dhcp pool VLAN10
Switch(dhcp-config)#option 150 ip 1.2.3.4
!---- where option has number 150 and Call manager server is 1.2.3.4-----

To verify DHCP MAC and IP binding configuration you can issue few show commands:


Switch#sh ip dhcp binding
...
10.4.64.11 0100.e04c.3d38.8f Jul 03 1993 12:28 PM Automatic
10.4.64.12 0118.a6f7.4338.39 Jul 03 1993 08:18 AM Automatic
10.4.64.16 5844.9824.70ea Jul 03 1993 01:44 PM Automatic
10.4.64.26 011c.3947.0ac7.aa Jul 03 1993 03:36 PM Automatic
10.4.64.37 0100.e04c.4117.3f Jul 03 1993 07:37 AM Automat

 

To understad DHCP process, read Explained: DHCP article.

 
Next

Recommended
training

Technology: IP, Routng, Switching, WiFi, Security

Level: Entry

Type: On site, Online

 

Newsletter