routing to a computer on a switch behind a router?

6,433

Solution 1

Unless you really know what you're doing, you only want one box acting as a NAT gateway and DHCP server on your home network. When most people say "router" in the context of a home network, they're actually talking about something that's acting as a full NAT gateway, not a simple IP router.

I'm sure your Vonage box does NAT and DHCP. Also, it makes sure that your voice traffic gets the priority it needs when forwarding it to your broadband connection (i.e. your cable modem). But the Vonage box can only do that for your voice traffic when it's at the head of your network.

So, for best results, make sure your cable modem and your Linksys router are not serving NAT and DHCP. Have the cable modem simply bridge between Ethernet and cable, and have the Linksys box simply bridge between LAN and WAN.

If the Linksys box doesn't provide a way to turn NAT off, then turn its DHCP server off and stop using its WAN port -- just plug one of its LAN ports into the LAN side of the Vonage box. This allows the Linksys box to still act as a Wi-Fi access point (assuming that's what you're using it for -- if you don't need it, then take it out of the picture), and it acts as an Ethernet switch among its LAN ports.

With any NAT gateway, if you want it to forward incoming connection attempts from the outside world in to some host on your LAN, you'll have to set up port mappings in the NAT gateway to tell it which next-hop IP address and port to forward that kind of connection attempt to. If you set up your network with multiple NATs, then you have to tell each NAT about the next-hop NAT gateway, which is a pain and is one of the reasons you should avoid "double NATting" unless you really know what you're doing and have a good reason to do so.

Solution 2

I know what Vonage says about putting it before the router, but I have set this up before and I simply go with this:

Cable Modem--Linksys Router--Netgear Switch

The Vonage box and PC get plugged into the switch.

If this normal, and simple setup does not work, then you can try it their way, but every one I have done has worked. Only caveat, I usually use a Netgear router/switch combo.

Share:
6,433
javamonkey79
Author by

javamonkey79

Hi, I'm Shaun! I enjoying creating software. I started my career in enterprise integration (think: camel, activemq, java). Nowadays, I typically work on back end data systems (databases, datastores, publishing, infrastructure). I work on the data engineering team, at edmunds.com (beep beep). In my formative years I was primarily interested java, Eclipse and maven, and I also use to dink around in Python, Perl, Bash Scripts, Windows Scripts, HTML, javascript, PHP, CSS, C, ASP, VB, C#, OSGi, PDE, RCP...and the list goes on. Since 2017, I've gone back end to front end and and back again, working on service engineering teams (tomcat, spring, java) to front end teams (react, redux, bootstrap) and finally back again to where I am now on data engineering (spark, spark-sql, databricks, scala). I use to blog here and here is my gitlab account here if you want to see some of the open source stuff I've done.

Updated on September 18, 2022

Comments

  • javamonkey79
    javamonkey79 over 1 year

    Here is the setup:

    Cable Modem -> Vonage "Router" (not really sure if it is a full router or not) -> Linksys Router -> Netgear Switch -> PC

    When I had the PC connected directly to the router I could route to it just fine. When I put it behind the switch I no longer can.

    Pardon my obvious lack of knowledge on this, but is there some way to route to the PC behind the switch or do I have to reconfigure the network somehow (eg: replace the switch with another router, reconnect it directly to the router, etc.)

    If specific model names\values are needed I can provide them, but I believe this to be a general topic.

    UPDATE #1

    I completely removed the vonage device and I switched the PC to non-static ip, yet, I can not even connect to the local ip address from anywhere on the LAN. I am beginning to think it is a firewall or anti-virus problem.

    EDIT #1

    By "route to it" (the PC in question) I mean access ports running on said PC remotely. eg: port 80, 22, etc.

    EDIT #2

    The strange thing is, to get things to work (before) I had to config the vonage device to route to the router (which I had to hunt down it's local address) and then also route to the PC from the router as well. Additionally, I have the PC setup with a static IP as to prevent the address from being reassigned.

    EDIT #3

    I tried turning DHCP & NAT off at the router. With DHCP off I still have an outbound connection but the default gateway still shows up as the router and I still can't connect from external. When I turn NAT off I get no connection at all. I believe I used to have "double natting" working by routing traffic from the vonage device to the routers address, and then router to PC - but this no longer seems to work and I have no idea why. Furthermore, I can reach the router but NOT the vonage device from a browser - I find this highly suspect, but I have no idea what the cause.

    Any other suggestions out there?

    EDIT #3a

    Removing the static IP config allows me to connect to the vonage device - not sure if that will help someone else, just throwing it out there.

    • uSlackr
      uSlackr almost 13 years
      What do you mean "you could route to it" Route what from where?
    • javamonkey79
      javamonkey79 almost 13 years
      edited to answer your question
    • evan.bovie
      evan.bovie almost 13 years
      Hmmm... You shouldn't have any troubles, as a switch does not do NAT. What is the model of the Netgear switch? Also, what does your Network Connection Status say? A screenshot might be easiest.
    • javamonkey79
      javamonkey79 almost 13 years
      What sort of screen shot would help? I set it up to have a local static ip, when I run ipconfig it is consistent with the assigned address.
    • evan.bovie
      evan.bovie almost 13 years
      Okay, then forget the screenshot. The switch is just a switch, right? Not a router/ethernet hub? Have you tried switching ports?
    • evan.bovie
      evan.bovie almost 13 years
      Try this: Cable Modem --> Switch --(Port 1)--> Vonage --> Phone then, Switch --(Port 2)--> Router --> PC
  • javamonkey79
    javamonkey79 almost 13 years
    Yeah, I think I had some trouble when trying to put vonage behind the router but I can definitely try again.
  • javamonkey79
    javamonkey79 almost 13 years
    What an awesome answer!!! I will try your suggestions and get back to this post.
  • javamonkey79
    javamonkey79 almost 13 years
    I added an edit above to answer this.
  • MaQleod
    MaQleod almost 13 years
    This sort of setup might require QoS to be setup on the Linksys to prioritize the voice through it. The vonage device does this already, but if it is going through another router later, it might not be as effective.