India Broadband Forum


Creating two Lan connections in winxp

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 ...

Go Back   India Broadband Forum > Computers > Computer technology > Desktop Computer

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 06-20-09, 11:41 PM   #1
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default Creating two Lan connections in winxp

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.
rakshit1 is offline   Reply With Quote
Old 06-20-09, 11:45 PM   #2
newprouser
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 06-21-09, 12:54 AM   #3
Platinum Member
 
Join Date: Aug 2007
Location: Chennai
Posts: 4,224
Rep Power: 12
essbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of lightessbebe is a glorious beacon of light
Default

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 ?





.
essbebe is online now   Reply With Quote
Old 06-21-09, 09:29 AM   #4
meetdilip
Guest
 
Posts: n/a
Default

Control Panel > Network Connections > Create a new connection > Connect to the internet / Connect to network at my work place
  Reply With Quote
Old 06-21-09, 10:16 PM   #5
Platinum Member
 
whitestar_999's Avatar
 
Join Date: Jan 2008
Location: UP(west)
Posts: 1,971
Blog Entries: 1
Rep Power: 3
whitestar_999 will become famous soon enough
Default

XP has in LAN TCP/IP settings an alternate configuration tab is there which you can use if PC is used on more than 1 network.
whitestar_999 is offline   Reply With Quote
Old 06-22-09, 02:43 AM   #6
Gold Member
 
skap's Avatar
 
Join Date: May 2008
Location: India
Posts: 531
Rep Power: 2
skap will become famous soon enough
Default

Quote:
Originally Posted by rakshit1 View Post
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.


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
  • create a bat file (open new text file in notepad and save it as "Office_network.bat". Quotation marks are mandatory).
  • Copy below three lines in the Office_network.bat file. Replace the red mark details with the IP details of your office network.

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

  • Now whenever you are in office network, run Office_network.bat file to set all details automatically for you.
  • After entering all details, create similary file for your home network,say home_network.bat.
Note: Vista user has to run this bat file by right clicking and choosing "Run As Administrator" option. Because network property changes require Administrator privileges.
skap is offline   Reply With Quote
Old 06-22-09, 07:03 AM   #7
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default

Thanks Skap , This was the answer , i was looking for.


Quote:
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
The Batch Is running perfectly well , except that when added "gateway=GATEWAY" create's a problem, As such iam able to change my ip addr , Mask , dns1 and dns2 . But not able to change Gateway, Any Cure for it?



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
rakshit1 is offline   Reply With Quote
Old 06-22-09, 09:53 AM   #8
Gold Member
 
skap's Avatar
 
Join Date: May 2008
Location: India
Posts: 531
Rep Power: 2
skap will become famous soon enough
Default

Quote:
Originally Posted by rakshit1 View Post

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
this line is perfect. Did you try entering say IP details manually? Is it accepting?
skap is offline   Reply With Quote
Old 06-22-09, 10:50 AM   #9
Junior Member
 
machbio's Avatar
 
Join Date: Dec 2008
Age: 21
Posts: 24
Rep Power: 1
machbio is on a distinguished road
Default

should use of a ethernet hub silence all the problem here.. and setup the two ips different for each computer..
machbio is offline   Reply With Quote
Old 06-23-09, 08:20 PM   #10
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default

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.!
rakshit1 is offline   Reply With Quote
Old 06-23-09, 08:29 PM   #11
newprouser
Guest
 
Posts: n/a
Default

Do u think this software will suit your needs ?



Please refer to this search also,
  Reply With Quote
Old 06-23-09, 09:13 PM   #12
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default

Quote:
Originally Posted by rakshit1 View Post
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.
If you have IBM/Lenovo laptop, then you can download and install IBM Access Connections. This will allow you to save the profiles - home, office, roaming, etc.

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.

-------------------------------------------------------------------------------------------
just4kix is offline   Reply With Quote
Old 06-24-09, 05:47 AM   #13
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default

Quote:
Do u think this software will suit your needs ?
lol

no, skape has already helped me out on this.

But thanks for that software newprouser.

just4kix thank you , my problem has been solved.
rakshit1 is offline   Reply With Quote
Old 06-24-09, 07:11 AM   #14
newprouser
Guest
 
Posts: n/a
Default

ok
  Reply With Quote
Old 06-24-09, 11:23 AM   #15
Gold Member
 
skap's Avatar
 
Join Date: May 2008
Location: India
Posts: 531
Rep Power: 2
skap will become famous soon enough
Default

Quote:
Originally Posted by rakshit1 View Post
lol

no, skape has already helped me out on this.

But thanks for that software newprouser.

just4kix thank you , my problem has been solved.
What was causing that gateway problem?
skap is offline   Reply With Quote
Old 06-24-09, 04:42 PM   #16
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default

The gateway thing has not yet been rectified. But iam happy with it! , Just one line change wont take much time for me. But does gateway thingy working at ur pc @ skap
rakshit1 is offline   Reply With Quote
Old 06-24-09, 04:57 PM   #17
Gold Member
 
skap's Avatar
 
Join Date: May 2008
Location: India
Posts: 531
Rep Power: 2
skap will become famous soon enough
Default

Its working for me.

Could please upload the exact bat file that creates the problem?
skap is offline   Reply With Quote
Old 06-26-09, 03:35 AM   #18
Junior Member
 
Join Date: Jun 2009
Age: 22
Posts: 35
Rep Power: 1
rakshit1 is on a distinguished road
Default

http://www.sendspace.com/file/nnsiuf -->my batch
rakshit1 is offline   Reply With Quote
Old 06-26-09, 06:51 PM   #19
Gold Member
 
skap's Avatar
 
Join Date: May 2008
Location: India
Posts: 531
Rep Power: 2
skap will become famous soon enough
Default

The gateway is not mentioned in the script (). so if I add a gateway IP 192.168.1.1, it is working for me

----------------------------------------
@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
----------------------------------------
skap is offline   Reply With Quote
Reply

Tags
connections, creating, lan, winxp

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT +5.5. The time now is 07:00 AM.


India Broadband Forum