servers in cisco packet tracer code example
Example 1: how to create dhcp server in cisco packet tracer using router
Router(config)#
Router(config)#ip dhcp pool MY_LAN
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 192.168.1.10
Example 2: how to create dhcp server in cisco packet tracer using router
Router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10