I'm guesing your "modem" is actually an ADSL gateway like mine is. I'm still not clear on your physical configuration.
My config is as follows:
PPoE
cat5----[WAN]--------[LAN] [ATM]-------->[internet]
[DLINK] [DSL Gateway]
192.168.0.1 192.168.2.1
This naturally will never work because the WAN link now has an external ip address.
If you leave the ethernet cable on the WAN port of the dlink and connect the other end to the lan port. like said post, you would have to configure the dlink with a static ip address on the WAN side that matches that of your DSL gateway, then configure a static route, and let the DSL gateway handle the PPoE session. As well you would want to make sure that the ethernet cable is not plugged into the WAN port of the DSL Gateway.
So your setup should look like this:
192.168.2.254 PPoE
cat5----[wan]--------[LAN] [WAN]-------->[internet]
[DLINK] [DSL Gateway]
192.168.0.1 192.168.2.1
With a static route so that requests from 192.168.0.0 can be sent to 192.168.2.0
I think anyways. I'd really test it out on my end first but yanno, nothing but people on the internet 24hrs a day because they're to lazy to go to work, to bed, do dishes, clean up their mess or whatever other than spending their lives playing pointless flash games.
it would probably be alot easier if d-link so graciously steps up and removed the commented out code and added the proper code.
set_subnav_link(router_mode_enabled, "Status_Routing_nav_link");
<!-- Only support WAN <option value="LAN">LAN</option> -->, //set_subnav_link(router_mode_enabled, "Status_Routing_nav_link"); and adds <li> <div> <a href="../Status/Routing_Status.shtml" onclick= blah blah...
Whenever I actually get a better chance at it, i'll test the WAN port configuration. I know I did once get it working when I first got all the equipment, but opted for my current configuration