Two Local area connections


  1. Posts : 1
    windows 7 64bit
       #1

    Two Local area connections


    Hi,

    Need help with setting up two local area connections using the same ethernet controller. I use my laptop in two different networks, one is DHCP enabled and the other needs static IP. Right now i keep changing the IP settings every time i connect from on to another. So i want to avoid doing this and have to two local area connections for the two different networks. Can this be done, and if so, do let me know the procedure to set up the second local area connections.

    Cheers!
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Welcome to the Seven Forums.

    You can use NETSH to change between DHCP and a static IP setup.

    Look at the 3 batch files that I've attached to this post.

    Test them out by manualy setting a static IP address
    Right click on the file named "DHCP-netsh.bat"
    And select "Run as administrator" from the context menu

    That should set your network connection named "Local Area Connection" to use DHCP for the IP address and the DNS servers.

    You will need to edit the other two files to use the static IP and gateway that you need.
    netsh interface ipv4 set address name="Local Area Connection" static 10.10.0.252 255.255.255.0 10.10.0.1 1

    Be sure to leave the " 1" after the gateway.

    If you like this way of changing those settings, then I would suggest putting those files somewhere on your hard drive and making a shortcut to them. Then set the shortcut to "Run as administrator" via option six in this tutorial: Run as Administrator

    That way, you can just double click on the shortcut, answer the UAC if needed and the IP changes will start happening.

    edit: how to test your DNS speed: http://www.dslreports.com/faq/15890
    Two Local area connections Attached Files
      My Computer


  3. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #3

    iceman69493 said:
    Hi,

    Need help with setting up two local area connections using the same ethernet controller. I use my laptop in two different networks, one is DHCP enabled and the other needs static IP. Right now i keep changing the IP settings every time i connect from on to another. So i want to avoid doing this and have to two local area connections for the two different networks. Can this be done, and if so, do let me know the procedure to set up the second local area connections.

    Cheers!
    You can easily bind up to 2 static IP's to your network adaptor by going into the Advanced adaptor properties and change to static IP then type in the subnet mask, default gateway, IP, DNS server etc. The picture below shows where to go.

    If you go with 2 static connections for both places you can bind both of the static IP's to your Ethernet NIC and then you can automatically connect to both places.
    Attached Thumbnails Attached Thumbnails Two Local area connections-add-static-ip-tcpip.png  
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:35.
Find Us