will you replace the DLINK router with the WRT54G????
if you wanna connect the dlink router with the wrt54g the just disable the DHCP server on the wrt54g and change the IP of the wrt54g same with the dlink router(ex. dlink has 192.168.0.1,change the wrt54g to 192.168.0.2.
if you wanna use the router to automatic dhcp then change the locan ip address of the router to a different range(ex. 192.168.2.1)