networking - Specific static IP settings on different WiFi

06
2014-04
  • Ilan321

    I've been trying to set a static IP address for myself. My router details are as following:

    Wireless LAN adapter Wi-Fi:
    
       Connection-specific DNS Suffix  . :
       Link-local IPv6 Address . . . . . : fe80::4c77:ef95:76:961b%13
       IPv4 Address. . . . . . . . . . . : 192.168.1.16
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 192.168.1.1
    

    I set the static IP address to 192.168.1.50. However, since I go to school and connect to my own access point I set up there, the IP it gives me is 172.168.1.2 (without a static IP). My question is, can I configure my Wifi adapter to set a static IP address only if I'm connected to my home network?

  • Answers
  • Matthew Williams

    I am assuming you're on Windows. If not then please correct. If you go into:

    Network and Sharing Centre > Right click Wireless adapter > Properties > Select IPv4 > Properties.

    In there configure your primary network settings under the general tab (probably obtain IP automatically) and under Alternative specify the information related to your other network.

    Hope this helps

    EDIT: So using alternative IP. Generally speaking you would configure your alternative configuration to specify settings when a DHCP server is not present (and cannot collect an IP automatically). If this is the case for you then set the primary to collect an IP automatically (for your school network) and assign manual configuration to alternative when at home.

    If, however, this doesn't work you can probably assign both networks manually, but this would depend how your school network runs. I assume you won't be able to specify a manual connection if there are several hundred systems on the network. Be aware though, as pointed out below, once you start specifying static network configurations you won't be able to use your system anywhere else without resetting the network.

  • MariusMatutiae

    Depends on what you mean.

    If you mean, can I set myself up with a static IP at all? The answer is yes, always.

    If what you mean is: can I set up myself to have always the same IP address, the answer is no: the reason is that you will have different subnets in different places. You have 192.168.1.0/24 at home, but 172.168.1.0/24 at school. Next time you go to an Internet cafè, you may find a subnet 192.168.0.0/24, or 10.10.0.0, and so on. Having the same IP address on these different subnets makes it impossible to use them, since the number you chose for yourself, 192.168.1.50, belongs to your home subnet but does not belong to any other subnet mentioned above.

    This is the reason why most people do not use static IPs on wifi; the most common use for static IPs is in devices which cannot be moved, so they belong by definition always to the same network: dekstops, servers, routers, printers, TVs, and so on.

  • shinjijai

    It depends on your router/ap if it supports this for not, but you should be able to DHCP reservation using the MAC address for your wireless card and assigning it an IP (192.168.1.50 in this case).


  • Related Question

    windows - set static Network settings, enable a wifi adapter
  • xXbelrocXx

    Here is my scenario,

    I have a computer with a LAN Connection and a WiFi Connection, running Windows XP Pro.

    I have a local network router (WRVS4400Nv2 from Cisco) with Wireless access and a separate Mobile Hotspot. Both have internet access. Primarily we use the Offices LAN/wLAN to connect to the internet, but in the event they are down (Fiber cuts, etc), we use the Mobile Hotspot.

    I need to be able to connect to the local network for resources (printers) and the mobile hotspot if it is available with the least amount of setup or physical intervention.

    I've tried statically assigning an IP and Subnet to the LAN Adapter (No Gateway or DNS), and then using the WiFi Connection to select either the wLAN of the Office or the Mobile Hotspot. This worked but the Office wLAN would randomly disconnect. Is there another way I can accomplish this?

    I'm open to scripts that enable the WiFi and set static information on the LAN Connection. or anything else, it just has to be simple for a Computer Illiterate to institute.


  • Related Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.