Hello Er,
do you want the router to behave as a DHCP server or to be a DHCP client on one of its own interfaces?
a) client
int fas0/0
ip address dhcp
b) server router acting as DHCP server for one or more subnets that are directly connected
see this example:
ip dhcp excluded-address 10.110.224.129 10.110.224.132
ip dhcp excluded-address 10.110.224.145
!
ip dhcp pool DATA
network 10.110.224.128 255.255.255.240
default-router 10.110.224.129
dns-server 10.98.112.32 10.55.0.32
netbios-name-server 10.52.64.37 10.24.128.151
lease 0 1
!
ip dhcp pool VOICE
network 10.110.224.144 255.255.255.248
default-router 10.110.224.145
dns-server 10.98.112.32 10.55.0.32
netbios-name-server 10.52.64.37 10.24.128.151
option 150 ip 10.98.67.5 10.55.61.4
lease 0 1
first pool is for PCs, second pool is for Cisco IP phones option 150 specifies TFTP servers
interface FastEthernet0/0
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/0.10
description VLAN DATA
encapsulation dot1Q 10
ip address 10.110.224.129 255.255.255.240
no ip redirects
no ip route-cache
no ip mroute-cache
!
interface FastEthernet0/0.20
description VLAN VOICE
encapsulation dot1Q 20
ip address 10.110.224.145 255.255.255.248
no ip redirects
Hope to help
Giuseppe