router - How to setup external static IP address

19
2014-04
  • Carlos

    I have a block of static IP addresses (eg. 211.11.111.n / n+1 / ...), how can i set them up. Or at least one of them, I need one to be pointing at a server.

    More specifically, in my network connected to the router there are 3 Desktops (counting the server), my laptop, a wired printer and a NAS. Preferably I would prefer if the network stayed the same but the server could be accessed from outside of the network.

    Am using Linksys WAG160Nv2, I also have a netgear DG834G. Advise on either is well appreciated.


    UPDATE

    When i talk about about a block of IP adresses i mean like 211.11.202.n / n+1 / n+2 / ....

    Additionally the internet I use is ADSL with encapsulation PPPoA.

    As MaQleod answered;

    You can set up your router with 1-1 NAT and essentially NAT a single public IP directly to a single private IP for each device you want public. This will allow you to have your devices networked and will allow them to be firewalled.

    The above is what am trying to find out how to do with the routers i have, preferably the Linksys one.

  • Answers
  • icyrock.com

    In general, for small business the Internet provider usually gives you a router that is already set up as necessary. The only thing you need to do is set up your server with one of the IPs and plug it into the router and you should be all set.

    If that's not the case, you would have to make a 1-1 NAT for your servers. You can do that by going into the Setup > 2 Routing and setting up static routes, for example. Looking at the docs, you might try to select Internet Connection Type > Bridged Mode Only, which will make it a bridge.

  • MaQleod

    By block, do you mean routed block or do you just mean a number of single IPs? What type of a connection do you have (ie routed or bridged)? Depending on what is coming out to you will depend on how you set up your network with those IPs.

    If you have a bridged connection, it means that all the IPs are not in a block and you most likely have a Cable or ADSL connection. If this is the case, you need to request that your IPs remain static from our ISP and you have two options:

    • You can set up a switch and have all your devices plugged into the switch with static IPs set. They will not be networked together and they will not be firewalled.
    • You can set up your router with 1-1 NAT and essentially NAT a single public IP directly to a single private IP for each device you want public. This will allow you to have your devices networked and will allow them to be firewalled.

    If you have a routed connection it means that you most likely have a T1 or EoC line, or less likely an SDSL or IDSL line, and you have a CIDR block of IPs. This means that you need a router capable of handling routed blocks for that specific type of technology. If this is the case, then you have one basic option and that is to set an interface on your router to have the routed block on. You then must use a switch and plug all devices into the switch. You can have the router DHCP out the public IPs or statically assign them, or both, and depending on your router, you can have NAT as well, or just add a device that will NAT a second network.

    The first step is really finding out what type of connection you have and how those IPs are set up, otherwise you can't do anything.


  • Related Question

    router - How to assign a static IP with a linksys WRT54G2?
  • Will

    For all my googleing it appears the best you can do is tell your computer not to use DHCP; I cannot find a way to do this at the Access Point level.

    EDIT: This is not for port forwarding. This is for an internal mythTV server. Right now the DHCP server on the AP is set to assign IP's from 192.168.1.100 - 192.168.1.149. When I set a static IP outside that range on the computer that computer is unable to connect to the Internet.

    I've done this before on my old Buffalo brand AP (may it RIP) without any problems. This seems to be a WRT54G2 specific issue.


  • Related Answers
  • heavyd

    From what I have found, it doesn't look like the WRT54G2 supports setting static IPs through the DHCP server. Depending on the version of the WRT54G2 you could load a 3rd party firmware such as DD-WRT onto the router to add these features. Here is a tutorial from someone who did it on a WRT54G2.

  • JFV

    I agree with @Spooky. I'm assuming that you want to set static IP's for port-forwarding. You can set certain computers using the MAC Address (directly connected to the AP is best-case and easiest).

    Or by setting the IP(s) Manually on the computer(s) outside of the normal DHCP Range (ie: DHCP set from 192.168.xxx.100 to 192.168.xxx.250, manually set the IP(s) from 192.168.xxx.50 to 192.168.xxx.99).

    EDIT: Even if you set the IP manually, you will still need the subnet mask, gateway, and DNS IP's to connect to the Internet and the rest of your network. Check those settings to see if there is an issue.

  • Sliff

    I may be completely wide of the mark here, but when you say

    When I set a static IP outside that range on the computer that computer is unable to connect to the Internet.

    Are you also setting said computer to use a specific DNS server and gateway? It may be worth checking the DNS server and gateway assigned via DHCP and checking it's the same as what you're manually setting.

  • Jedi Master Spooky

    I dont have this model but a lot of routers let you assign a Static IP by MAC address. If this does not work, you have to set it in your PC.

  • Will

    Here's what it took to make this work:

    1. Set the static IP either in the GUI or in the text file
    2. Set the netmask to 255.255.255.0 OR 255.255.240.0 (the later works on the computer hooked into an Ethernet -> wireless bridge, the former is Ethernet straight to the Access Point).
    3. Set the DNS servers to what is listed when you http into the router.
    4. Set the Gateway to 192.168.1.1 (the access point) NOTE: This was changed to 0.0.0.192 on the Ethernet -> Access Point machine
    5. Pray

    I'm no network genius, but this is not my first time doing this. Some of this makes zero sense to me (gateway address changed by OS (?) to 0.0.0.192 on a wired connection going straight to the router? subnet mask of 255.255.240.0?).

    If anybody cares to comment I will continue to edit this into a decent answer.

  • Paul Tomblin

    I tell the router's DHCP server to start assigning numbers at 192.168.1.100, and that way I can use numbers below that for my static ips (servers, mostly).

  • MaxVT

    You need to set the DNS server on the computer to the router's address (typically 192.168.1.1). The caching DNS server on the router will redirect the query to the currently configured ISP's routers.

    The IP should be chosen from outside the DHCP range (on this particular model, 192.168.1.2 - 192.168.1.