Results 1 to 19 of 19

Thread: Creating two Lan connections in winxp

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

    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.

  2. #2
    newprouser
    Guest

    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.

  3. #3
    LEARNER
    Join Date
    Aug 2007
    Liked
    10 times
    Posts
    15,201

    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 ?





    .

  4. #4
    meetdilip
    Guest

    Default

    Control Panel > Network Connections > Create a new connection > Connect to the internet / Connect to network at my work place

  5. #5
    Platinum Member whitestar_999's Avatar
    Join Date
    Jan 2008
    Liked
    0 times
    Posts
    2,274

    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.

  6. #6
    Gold Member skap's Avatar
    Join Date
    May 2008
    Liked
    0 times
    Posts
    531

    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

  7. #7
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

    Default

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


    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

  8. #8
    Gold Member skap's Avatar
    Join Date
    May 2008
    Liked
    0 times
    Posts
    531

    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?

  9. #9
    Junior Member machbio's Avatar
    Join Date
    Dec 2008
    Age
    24
    Liked
    0 times
    Posts
    24

    Default

    should use of a ethernet hub silence all the problem here.. and setup the two ips different for each computer..

  10. #10
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

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

  11. #11
    newprouser
    Guest

    Default

    Do u think this software will suit your needs ?



    Please refer to this search also,

  12. #12
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    10,889

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

    All my useful articles and Guides | My Movie Collection | My Blogs
    -------------------------------------------------------------------------------------------

  13. #13
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

    Default

    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.

  14. #14
    newprouser
    Guest

    Default

    ok

  15. #15
    Gold Member skap's Avatar
    Join Date
    May 2008
    Liked
    0 times
    Posts
    531

    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?

  16. #16
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

    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

  17. #17
    Gold Member skap's Avatar
    Join Date
    May 2008
    Liked
    0 times
    Posts
    531

    Default

    Its working for me.

    Could please upload the exact bat file that creates the problem?

  18. #18
    Junior Member
    Join Date
    Jun 2009
    Age
    25
    Liked
    0 times
    Posts
    35

  19. #19
    Gold Member skap's Avatar
    Join Date
    May 2008
    Liked
    0 times
    Posts
    531

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Tikona Broadband Connections
    By Preeti_20 in forum Tikona WiBro
    Replies: 1
    Last Post: 04-12-10, 12:44 PM
  2. ITI DNA A211 LAN not working !!!
    By champ0007 in forum BSNL broadband
    Replies: 10
    Last Post: 02-15-10, 04:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •