1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

VPN and ADSL (Internet) connection on WinXP?

Discussion in 'Networking (Hardware & Software)' started by okramo, 2007/05/23.

  1. 2007/05/23
    okramo

    okramo Inactive Thread Starter

    Joined:
    2007/02/19
    Messages:
    16
    Likes Received:
    0
    I have 2 NIC's on computer with WinXP running.

    NIC1
    192.168.1.100
    255.255.255.0
    192.168.1.1

    NIC2
    192.168.2.100
    255.255.255.0
    192.168.2.1

    Address 192.168.1.1 is address of ADSL router connected to Internet, and address 192.168.2.1 is address of ADSL router which is connected to VPN.

    When both NIC's are enabled, XP takes default gateway of first NIC and Internet is working, but VPN not. When I disable NIC1, VPN is working.


    I suppose that I have to assign 192.168.1.1 as default gateway for both NIC's and make add route script.

    Could someone help me... What should I use for default gateway for NIC's?
    How to write proper add route command to route traffic?

    Thanks
     
  2. 2007/05/24
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    You should only have one default gateway defined. You should remove the default gateway setting for the 192.168.2.x NIC : that is leave it blank.

    As for a static route - it depends how your VPN is configured. How are you connecting to the VPN connection (do you run a VPN client application or do you have a connection set up via a router?), and what is the remote network's address space (IP address range)?
     

  3. to hide this advert.

  4. 2007/05/24
    okramo

    okramo Inactive Thread Starter

    Joined:
    2007/02/19
    Messages:
    16
    Likes Received:
    0
    I have a connection set up via router for VPN. Address of router which is connecting to VPN is 192.168.2.1.

    Router is getting VPN IP range from my ISP, and that IP range is configured at ISP core network.

    192.168.2.1 255.255.255.0 is LAN IP address for router.
    I've configured PPPOE connection in router configuration, where I entered username and password that ISP gave to me. By that username and password router gets VPN IP range (i think).

    So 192.168.2.1 is important address cause by that address my local network is communicates with other locations in VPN.

    I hope that you understand my situation, and you'll be able to help me with defining address of gateways and writing add route script.

    thx
     
  5. 2007/05/25
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    OK : 192.168.2.1 is the gateway to the networks accessed via VPN. However, you will need to tell your system which networks it can access via that gateway. For that you will need the IP address ranges used by those networks.

    For example, if the remote networks are 10.0.0.0 10.2.0.0 and 10.100.0.0 you tell your computer where they are by defining a static route. As all three networks start "10." you can set up a single rule that will cover the three:
    Code:
    route -p add 10.0.0.0 mask 255.0.0.0 192.168.2.1
    This creates a static route that effectively says "send all traffic for 10.x.x.x IP addresses to the gateway at 192.168.2.1. The -p switch makes sure the route is remembered following a reboot.
     
  6. 2007/05/25
    okramo

    okramo Inactive Thread Starter

    Joined:
    2007/02/19
    Messages:
    16
    Likes Received:
    0
    Thank you for your answer. I just want to repeat once again what I have to do - to be sure.

    NIC1 will be:
    192.168.1.100
    255.255.255.0
    192.168.1.1

    NIC2 will be:
    192.168.2.100
    255.255.255.0
    (I'll leave this blank)

    ------
    About add route script...
    All my VPN locations communicate between by LAN IP addresses configured in routers (as here 192.168.2.1). So at my VPN I have LAN's 192.168.2.x, 192.168.3.x, 192.168.4.x communicate each other with specified addresses.

    Routers have VPN address caught from ISP written in router. VPN range configured at ISP core network is 192.168.155.x.

    So I'll write:
    route -p add 192.168.155.x mask 255.255.255.0 192.168.2.1
    or
    route -p add 192.168.x.x mask 255.255.255.0 192.168.2.1


    Thanks very much for help.
     
  7. 2007/05/27
    okramo

    okramo Inactive Thread Starter

    Joined:
    2007/02/19
    Messages:
    16
    Likes Received:
    0
    ReggieB was I clear enough with my explanation?

    I hope that you've understood what I was saying cause I really need your help.

    thx
     
  8. 2007/05/28
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    Yes, that looks right.

    Your route scripts will be:

    route -p add 192.168.x.0 mask 255.255.255.0 192.168.2.1

    Where x is the unique number for the third octet in each remote network. So:

    route -p add 192.168.155.0 mask 255.255.255.0 192.168.2.1
    route -p add 192.168.156.0 mask 255.255.255.0 192.168.2.1
    route -p add 192.168.157.0 mask 255.255.255.0 192.168.2.1

    etc.
     
  9. 2007/05/29
    okramo

    okramo Inactive Thread Starter

    Joined:
    2007/02/19
    Messages:
    16
    Likes Received:
    0
    Thanks very much!

    I hope that will work ;)

    thx again
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.