This is a discussion on Creating two Lan connections in winxp within the Desktop Computer forums, part of the Computer technology category; Hi, I use my laptop at office and home with different network configurations. Everytime I have to change the network ...
| |||||||
| | #1 |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | Hi, I use my laptop at office and home with different network configurations. Everytime I have to change the network settings to connect to the LAN. Can we create additional (2 different) connection for a single network card. I didn't find any option to create a new connection in the Network Connections. |
| | |
| | #2 |
| Guest
Posts: n/a
| there are softwares which can keep track of multiple settings and which are stored as different profiles. After saving each of settings to a profile, u can just change the profile to change the settings. unfortunately i don't know the names. |
| |
| | #3 |
| Platinum Member Join Date: Aug 2007 Location: Chennai
Posts: 4,224
Rep Power: 12 | Do you use WIFI mode in Office and at Home ? You can use LAN/ethernet port connection for Home and WIFI mode in office . Or ( same mode at both places ) In network card LAN or wireless TCP/IP properties assign IP address automatically. Obtain DNS automatically. or enter open dns 208.67.220.220 and 208.67.222.222 Apply Save. ( Precaution : Note present settings please !) Para two : Please mention modem/model/make used at home.&Office Is it some VPN set Up ? . |
| | |
| | #4 |
| Guest
Posts: n/a
| Control Panel > Network Connections > Create a new connection > Connect to the internet / Connect to network at my work place |
| |
| | #6 | |
| Gold Member Join Date: May 2008 Location: India
Posts: 531
Rep Power: 2 | Quote:
netsh command will help you to do this. You do not need to enter any network details manually or install software. A simple 3 line script (Microsoft command line, available in all Windows) will automatically change settings. What you need to do is
Netsh interface ip set address name="Local Area Connection" source=static addr=STATIC_IP_ADDRESS mask= SUBNET_MASK gateway=DEFAULT_GATEWAY netsh interface ip set dns name="Local Area Connection" source=static addr=DNS_SERVER_1 netsh interface ip add dns name="Local Area Connection" addr=DNS_SERVER_2 index=2
| |
| | |
| | #7 | |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | Thanks Skap , This was the answer , i was looking for. Quote:
Batch 1 : @echo off netsh interface ip set address name="Local Area Connection" source=static addr=192.168.*.*** mask=255.255.255.0 netsh interface ip set dns name="Local Area Connection" source=static addr=**.1*5.0.*0 netsh interface ip add dns name="Local Area Connection" addr=208.67.222.222 index=2 pause ---------------------------------------- output: C:\>lan2 Ok. Ok. Ok. Press any key to continue . . . --------------------------------------------- Batch 2 : @echo off netsh interface ip set address name="Local Area Connection" source=static addr=192.168.*.*** mask=255.255.255.0 gateway=192.168.*.1 netsh interface ip set dns name="Local Area Connection" source=static addr=**.1*5.0.*0 netsh interface ip add dns name="Local Area Connection" addr=208.67.222.222 index=2 pause --------------------------------------------- output : C:\>lan1 The syntax supplied for this command is not valid. Check help for the co ntax. Usage: set address [name=]<string> [[source=]dhcp | [source=] static [addr=]IP address [mask=]IP subnet mask] [[gateway=]<IP address>|none [gwmetric=]integer] ************** ************** ************** Ok. Ok. Press any key to continue . . . ----------------------------------------- The missing gateway=Gateway in the second Batch | |
| | |
| | #8 |
| Gold Member Join Date: May 2008 Location: India
Posts: 531
Rep Power: 2 | |
| | |
| | #9 |
| Junior Member Join Date: Dec 2008 Age: 21
Posts: 24
Rep Power: 1 | should use of a ethernet hub silence all the problem here.. and setup the two ips different for each computer.. |
| | |
| | #10 |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | yeah skap........ i did try that ...... it changes everything if gateway is not provided when gateway is provided it gives some error and changes everything except the gateway.! |
| | |
| | #11 |
| Guest
Posts: n/a
| |
| |
| | #12 | |
| Platinum Member | Quote:
But I would like to understand further. I also use laptop at office and home. I never have to change TCP/IP settings. It is set to automatic. At home, I have enabled DHCP in the modem and this assigns the lap ip address to my laptop automatically.
__________________ *** Never argue with an idiot *** To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ------------------------------------------------------------------------------------------- | |
| | |
| | #13 | |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | Quote:
no, skape has already helped me out on this. But thanks for that software newprouser just4kix thank you , my problem has been solved. | |
| | |
| | #14 |
| Guest
Posts: n/a
| ok |
| |
| | #15 |
| Gold Member Join Date: May 2008 Location: India
Posts: 531
Rep Power: 2 | |
| | |
| | #16 |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | The gateway thing has not yet been rectified. But iam happy with it! |
| | |
| | #17 |
| Gold Member Join Date: May 2008 Location: India
Posts: 531
Rep Power: 2 | Its working for me. Could please upload the exact bat file that creates the problem? |
| | |
| | #18 |
| Junior Member Join Date: Jun 2009 Age: 22
Posts: 35
Rep Power: 1 | http://www.sendspace.com/file/nnsiuf -->my batch |
| | |
| | #19 |
| Gold Member Join Date: May 2008 Location: India
Posts: 531
Rep Power: 2 | The gateway is not mentioned in the script ( ---------------------------------------- @echo off netsh interface ip set address name="Local Area Connection" source=static addr=192.168.1.123 mask=255.255.255.0 gateway=192.168.1.1 netsh interface ip set dns name="Local Area Connection" source=static addr=59.138.0.5 netsh interface ip add dns name="Local Area Connection" addr=208.67.222.222 index=2 pause ---------------------------------------- |
| | |
| Tags |
| connections, creating, lan, winxp |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a PPPoE Dialup Connection | Dipy | BSNL broadband | 8 | 10-27-09 07:31 PM |
| How to configure My Blackberry Storm as Modem for WinXp laptop | meetme2 | Vodafone Mobile | 0 | 05-05-09 04:12 AM |
| Using WA3002G4 for creating a home network | iragavar | Broadband How to | 1 | 01-31-09 05:26 PM |
| Need help in creating portal id | dnagamahendra | BSNL broadband | 2 | 07-27-08 10:49 PM |
| tell the way for creating the pppoe dialer | cooldude | BSNL broadband | 1 | 06-28-08 09:40 PM |