networking - Router Setup requires my IP Address, DNS Server, and Gateway?

06
2014-04
  • user912447

    So I am used to setting up a new router being nearly a plug and play affair. This time however my new Rosewill L600N router refuses to give me access to the internet. I ran their auto-setup wizard to try and fix this and it got to a step where it "detected the type of internet connection I have" as 'Static IP'. It then prompts me to enter my IP, DNS server(s), and Gateway before continuing. FYI I have cable internet, not DSL. Why do I now have to know all this to connect?

    And as a point of interest, why (in general) would a router ever need to know this information? I assumed that as long as the router knew which port the IP's outside of it's subnet were located (the modem port) it wouldn't need to know DNS and Gateway information. Does the modem itself not handle this?

  • Answers
  • Spiff

    Yes, your router needs to know its public (WAN) IP address, default gateway address, and DNS server addresses. Typically this information is provided to your router via DHCP on most DOCSIS cable modem networks. It's likely that something went wrong when your router tried to detect its connection type, so it didn't (or thinks it didn't) get a response from a DHCP server.

    One common cause of this with DOCSIS cable modems is that many cable modems "latch onto" the first MAC address they see out their LAN Ethernet port, and refuse to talk to any other MAC address until they are rebooted. [In some extreme cases, cable modems can be programmed by the ISP to only talk to the one MAC address you registered with the ISP, and you could end up having to call the ISP to get them to reprogram your cable modem.] This often causes problems when you upgrade from one router to another without fully power-cycling the modem at the appropriate time; it stays latched onto the old router's MAC address and won't talk to the new router. This also causes problems if you for some reason have a hub or switch between the cable modem and the router, and other devices hooked up to that hub/switch, allowing the cable modem to see MAC address of other devices than your router; your cable modem may latch onto one of those other devices MAC addresses, and ignore your router.

    So, make sure you have a single Ethernet cable coming out of your cable modem's LAN port and directly into your router's WAN port. Now set your router for DHCP and reboot it. Make sure it is fully rebooted and fully sync'd to the cable network, then power-cycle your cable modem. Note that some cable modems have built-in battery backups, especially if they provide voice telephone services, so removing the power cord may not be enough; you may need to pull out the backup battery. After your cable modem is fully rebooted, see if your router got a DHCP lease from the network.

    If this still doesn't work, it's probably time to troubleshoot your Ethernet cable. Or check the settings on your cable modem to see how it's configured. If your cable modem is actually a more sophisticated "cable gateway", it might have the ability to have its NAT and DHCP services turned off, which can make your network setup more complicated.

    And there's still a rare chance that you have a cable modem that's been ISP-programmed for the MAC address of the previous router you were using. In which case you'll have to call your ISP.

    It's theoretically possible to have cable modem service where there's no DHCP server on the network and you're expected to manually enter static IP address (and gateway and DNS server) information into your router, but unless you're in a backwaters town with a mom-and-pop cable operator, I doubt that's the case.


  • Related Question

    networking - Configuring default gateway returned by dhcp server
  • gravidThoughts

    I have a machine which connects via ethernet to a private LAN, and wireless to a network which provides internet connectivity. The private LAN uses a wireless router to perform DHCP.

    The problem is that the wireless and NIC adapters have different default gateways. The default gateway for the private LAN has a lower adapter metric, and is thus chosen by the routing algorithm. I am thus unable to browse the internet when connected to both adapters.

    The following link has a solution for manually setting the adapter metric to a high number. http://superuser.com/questions/77822/how-to-tell-windows-7-to-ignore-a-default-gateway

    I was hoping to find a different solution.

    Does any one know of a router that allows you to configure its DHCP server to return an empty default gateway? I cannot find such an option for my linksys wrt300n.

    Configuring a static ip address with no default gateway does work, however I would like to use DHCP if possible.

    Does anyone know of a different way to specify a default gateway for a windows 7 machine with multiple network adapters without mucking with the adapter metric?

    Thanks


  • Related Answers
  • Fred

    I'm not aware of any DHCP option to define a specific default route in the DHCP RFCs.

    Setting the route metric is the most general way to handle this kind of thing. If multiple routes exist to a given destination network, the metric is used to decide which route is to be taken. I believe you can change the binding order for the NICs in your machine to force the public LAN NIC to automatically get the lowest metric default route.

    Edit: on second thought, try swapping the cables. That should move the lowest binding NIC from the private LAN to the public LAN, and if I'm right, the default route from the new public LAN NIC will be the lowest metric.