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: 23
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: 5,313
Rep Power: 13
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: 4
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
 
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
www.skapadmin.net
Ethical Hacking Forum
skap is offline   Reply With Quote
Old 06-22-09, 07:03 AM   #7
Junior Member
 
Join Date: Jun 2009
Age: 23
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
 
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
 
Join Date: Dec 2008
Age: 22
Posts: 24
Rep Power: 2
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: 23
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
Reply

Tags
connections, creating, lan, winxp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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
Tikona Broadband Connections Preeti_20 Tikona WiBro 0 02-02-10 01:45 PM


All times are GMT +5.5. The time now is 08:30 PM.


India Broadband Forum