#######configure dhcp server

config t

service dhcp

ip dhcp pool <POOL-NAME>

network 192.168.1.0 255.255.255.0

default-router 192.168.1.1

dns-server <DNS-SERVER>

domain-name <NAME>

lease <LEASE-DAYS>

write mem

show ip dhcp binding
#########bring interface up

config t

interface <INTERFACE-NAME>

no shutdown

##########assign ip to interface
config t

interface <INTERFACE-NAME>

ip address <IP> <NETMASK> #static

ip address dhcp #dynamic
###########configure route

ip route 10.115.24.0 255.255.255.0 10.115.9.2

exit

write mem

Advertisements