The 2821 (as well with most modern Cisco routers) has capability of being DHCP server though it may only offer basic functionality compared to full-blown dedicated DHCP server. You simply need to verify the IOS image the router runs has such DHCP feature.