Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Two Local area connections

25 Feb 2013   #1
iceman69493

windows 7 64bit
 
 
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 System SpecsSystem Spec
.
25 Feb 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

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


Attached Files
File Type: zip netsh-bats.zip (815 Bytes, 38 views)
My System SpecsSystem Spec
25 Feb 2013   #3
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by iceman69493 View Post
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
Two Local area connections-add-static-ip-tcpip.png  
My System SpecsSystem Spec
.

Reply

 Two Local area connections




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Local Area Connection - No Connections Available
Windows 7 64bit Professional: Recently cloned another machine and imaged this one and it was working fine. Did a few windows updates and was working fine. Now on reboot "No Connections Available". This is in a school comp. lab and this happened to 1 other machine (wasn't able to fix). I've...
Network & Sharing
Local Area Connections Properties ?
Windows 7 64bit desk top machine (not having any problems) just a question In the Local Area Connections Properties dialog box there are quite a few items and all are checked (see image below), I know I can only "disable" them in Win. 7 as opposed to "deleting" them in XP, I am NOT on a...
Network & Sharing
Local Area Connection not showing in Network Connections
Sorry for poor English....!!! I have 2 LAN cards installed in my Core2Duo; 1. Intel(R) PRO/100 VE, and 2. RealTek but only one shows up in "Network Connection" that is "Intel PRO/100 VE" (which is named as "Local Area Connection 2"), which is working fine. Green LED light shows up when...
Network & Sharing
no local area connection
Win7 home Premimum 64bit It started with a trojan which is removed but it left a couple of problems. Here is the last one. Device manager shows my lan card. I've tried uninstalling it but its uninstall app hangs...no messages just never finishes. Network Connection in control panel...
Network & Sharing
Hide Local Area Connections Icon in Network Sharing
Hi Guys, I have a question if there is a way to hide the "local Area Connection" icon in the Change Adapter Settings window. We do not want the regular users changing settings that they do not understand. Of course this is for Windows 7. A way to do it via Group Policy would be...
Network & Sharing
Deleting Local Area Connections
Hello, I have 3 comptuers Running Windows 7 Ultimate. Anyway I am having an issue networking them correctly and getting homegroup to link up. I have narrowed down the issue. A month back I was using a new Cable Modem that didn't end up being fully supported by my ISP. SO I switched back to the old...
Network & Sharing


Our Sites

Site Links

About Us

Find 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 00:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App