1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WRT54GS Doesn't Work with D-Link Modem

Discussion in 'Cisco/Linksys Wireless Routers' started by sleepysentry, Aug 11, 2006.

  1. sleepysentry

    sleepysentry LI Guru Member

    I replaced my old Motorola cable modem last night with a new D-Link DCM-202 cable modem. It worked flawlessly when attached to a single computer, but will not work with my WRT54GS router.

    1. The WLAN, WAN, and Internet lights all light up green, but I cannot ping my modem. However, I can ping the router.
    2. I have tried changing the router's IP to in case the modem used the .1.1 IP range.
    3. I have done all the resetting and unplugging you should always do first.
    4. No cables are faulty.
    5. Cloning the MAC address of a computer on the network hasn't worked.
    6. I am using the WRT54GSv1.1 with the DD-WRT v23 SP1 Final firmware.
    7. I have the same problem when using a WRT55AG router.

    Thanks for the help!
  2. basic

    basic LI Guru Member

    1) Make sure the router and modem have different IP-ranges. If the router has, configure your modem to use

    2) Telnet to your router

    3) Enter following commands to add an aditional vlan interface with an IP-address in the range of your modem:

    ifconfig vlan1:0 netmask
    iptables -I POSTROUTING -t nat -o vlan1 -d -j MASQUERADE
    ip addr add dev vlan1 brd +

    Make sure to enter the commands above in your firewall script as well. Doing this will execute the commands on router startup; otherwise the changes are discarded after a reboot.

    Now you should be able to access your modem from anywhere in your network. Remember to configure your modem as a bridge, so the router can dial the connection.
  3. sleepysentry

    sleepysentry LI Guru Member

    Thanks for the help, but I was able to fix the problem by power cycling the router and modem at the same time.

Share This Page