f



Specific IP data to a specific connection when multiple connections running

Hello everyone

I am going through some trouble, which I cant figure out how to solve.
I have a computer which I have to connect to a VPN through dial-up,
which I havedone pretty easily. But I have to remotely access that same
machine through LAN. The problem is that the machine when connected
simultaneously to the LAN and the dial-up VPN, doesn't send the data to
the VPN and recieve from it like it should, instead I think it directs
the packets to the LAN.

But the good part of the problem (which I think will make it easier to
solve!) is that when I use the dial-up to connect to the VPN, I just
want communicate with a specific IP. I think the problem just boils
down to how to send data directed to a specific IP to a specific
network interface / connection.

Any ideas.
Thanks to anyone who can help me out.

Regards
Ahmad

0
8/12/2006 8:01:24 AM
comp.networking.windows 3090 articles. 0 followers. Kgoings (6) is leader. Post Follow

5 Replies
963 Views

Similar Articles

[PageSpeed] 6


Does the LAN and the network on the other end of the VPN have the same 
network number? If so, there's really no way to distinguish between the 
destinations. What is the LAN IP address and the VPN virtual adapter IP 
address? How about posting an "ipconfig /all" and a "route print" with both 
connections active.

....kurt




<ahmad.humyn@gmail.com> wrote in message 
news:1155369684.224597.160600@m79g2000cwm.googlegroups.com...
> Hello everyone
>
> I am going through some trouble, which I cant figure out how to solve.
> I have a computer which I have to connect to a VPN through dial-up,
> which I havedone pretty easily. But I have to remotely access that same
> machine through LAN. The problem is that the machine when connected
> simultaneously to the LAN and the dial-up VPN, doesn't send the data to
> the VPN and recieve from it like it should, instead I think it directs
> the packets to the LAN.
>
> But the good part of the problem (which I think will make it easier to
> solve!) is that when I use the dial-up to connect to the VPN, I just
> want communicate with a specific IP. I think the problem just boils
> down to how to send data directed to a specific IP to a specific
> network interface / connection.
>
> Any ideas.
> Thanks to anyone who can help me out.
>
> Regards
> Ahmad
> 


0
Kurt
8/12/2006 10:37:22 PM
Okay here is the ipconfig /all. As you can see I have two completely
different adapters giving me to network interfaces. One is an ethernet
adapter connecting to the company's LAN and the other is a modem which
connects to another company's VPN using Dial-up.

Windows IP Configuration

        Host Name . . . . . . . . . . . . : EP42
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Hybrid
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : xxxx.xxx.com.
        Description . . . . . . . . . . . : Intel(R) PRO/100 VM Network
Connecti
on
        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX (LAN card
MAC address)
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 122.213.150.172
        Subnet Mask . . . . . . . . . . . : 255.255.255.128
        Default Gateway . . . . . . . . . : 122.213.150.129
        DHCP Server . . . . . . . . . . . : 115.73.19.120
        DNS Servers . . . . . . . . . . . : 135.63.24.231
                                            135.63.1.19
        Primary WINS Server . . . . . . . : 135.63.163.100
        Secondary WINS Server . . . . . . : 135.63.176.100
        Lease Obtained. . . . . . . . . . : Tuesday, August 15, 2006
9:32:26 AM
        Lease Expires . . . . . . . . . . : Friday, August 18, 2006
9:32:26 AM

PPP adapter PIA Sabre VPN:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX (Modem
MAC address)
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 146.21.2.233
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 146.21.2.233
        DNS Servers . . . . . . . . . . . : 222.130.132.154
                                            222.130.132.155
        NetBIOS over Tcpip. . . . . . . . : Disabled

----------------------------------------------------
My problem is that any packet destined for the IP - 146.20.1.51 from
this machine should go through the modem (PPP adapter PIA Sabre VPN).
What should I do? Would any netsh command be useful?

Any ideas?

Regards

0
ahmad
8/15/2006 5:08:07 AM
I would have liked to have seen the output of "route print" also, but it 
appears that the problem is likely the subnet mask on the PPP adapter (not 
that there's anything wrong with it, just that Windows doesn't know what 
traffic to send there). 255.255.255.255 is just one host, so windows will 
route everything out the first default gateway in the routing table. I 
suspect your routing table has two 0.0.0.0 entries, one for each of the 
default gateways. So here's what I'd try. Open notepad and type this:

route delete 0.0.0.0
rem should delete both default routes
rem
route add 0.0.0.0 mask 0.0.0.0  122.213.150.129
rem re-establishes your primary default gateway
rem
route add 146.21.2.233 mask 255.255.255.0 146.21.2.233
rem you'll have to check on the actual network and subnet mask for the other 
end of the VPN

Save the file as "setroute.bat" (don't forget to set the file type to "All 
Files" in notepad before you save, or it'll be named setroute.bat.txt) and 
put a shortcut to it on your dektop. Then launch the VPN. After it comes up, 
run the batch file. See if you can ping stuff on the 146.21.2.0 network,

....kurt


<ahmad.humyn@gmail.com> wrote in message 
news:1155618487.557159.63430@i3g2000cwc.googlegroups.com...
> Okay here is the ipconfig /all. As you can see I have two completely
> different adapters giving me to network interfaces. One is an ethernet
> adapter connecting to the company's LAN and the other is a modem which
> connects to another company's VPN using Dial-up.
>
> Windows IP Configuration
>
>        Host Name . . . . . . . . . . . . : EP42
>        Primary Dns Suffix  . . . . . . . :
>        Node Type . . . . . . . . . . . . : Hybrid
>        IP Routing Enabled. . . . . . . . : No
>        WINS Proxy Enabled. . . . . . . . : No
>
> Ethernet adapter Local Area Connection:
>
>        Connection-specific DNS Suffix  . : xxxx.xxx.com.
>        Description . . . . . . . . . . . : Intel(R) PRO/100 VM Network
> Connecti
> on
>        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX (LAN card
> MAC address)
>        Dhcp Enabled. . . . . . . . . . . : Yes
>        Autoconfiguration Enabled . . . . : Yes
>        IP Address. . . . . . . . . . . . : 122.213.150.172
>        Subnet Mask . . . . . . . . . . . : 255.255.255.128
>        Default Gateway . . . . . . . . . : 122.213.150.129
>        DHCP Server . . . . . . . . . . . : 115.73.19.120
>        DNS Servers . . . . . . . . . . . : 135.63.24.231
>                                            135.63.1.19
>        Primary WINS Server . . . . . . . : 135.63.163.100
>        Secondary WINS Server . . . . . . : 135.63.176.100
>        Lease Obtained. . . . . . . . . . : Tuesday, August 15, 2006
> 9:32:26 AM
>        Lease Expires . . . . . . . . . . : Friday, August 18, 2006
> 9:32:26 AM
>
> PPP adapter PIA Sabre VPN:
>
>        Connection-specific DNS Suffix  . :
>        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
>        Physical Address. . . . . . . . . : XX-XX-XX-XX-XX-XX (Modem
> MAC address)
>        Dhcp Enabled. . . . . . . . . . . : No
>        IP Address. . . . . . . . . . . . : 146.21.2.233
>        Subnet Mask . . . . . . . . . . . : 255.255.255.255
>        Default Gateway . . . . . . . . . : 146.21.2.233
>        DNS Servers . . . . . . . . . . . : 222.130.132.154
>                                            222.130.132.155
>        NetBIOS over Tcpip. . . . . . . . : Disabled
>
> ----------------------------------------------------
> My problem is that any packet destined for the IP - 146.20.1.51 from
> this machine should go through the modem (PPP adapter PIA Sabre VPN).
> What should I do? Would any netsh command be useful?
>
> Any ideas?
>
> Regards
> 


0
Kurt
8/15/2006 6:15:40 AM
route print output --

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x60002 ...00 90 fb 06 b6 ed ...... Intel(R) PRO/100 VM Network
Connection - Pac
ket Scheduler Miniport
0x70004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination          Netmask              Gateway
Interface    Metric
               0.0.0.0                 0.0.0.0    122.213.150.129
122.213.150.172       21
               0.0.0.0                 0.0.0.0         146.21.2.233
   146.21.2.233        1
            127.0.0.0             255.0.0.0              127.0.0.1
       127.0.0.1        1
  122.213.150.128   255.255.255.128   122.213.150.172  122.213.150.172
     20
  122.213.150.172   255.255.255.255             127.0.0.1
127.0.0.1       20
  122.213.255.255   255.255.255.255   122.213.150.172  122.213.150.172
     20
       146.21.2.230   255.255.255.255        146.21.2.233
146.21.2.233         1
       146.21.2.235   255.255.255.255             127.0.0.1
127.0.0.1        50
    146.21.255.255   255.255.255.255        146.21.2.233
146.21.2.233       50
            224.0.0.0              240.0.0.0   122.213.150.172
122.213.150.172       20
            224.0.0.0              240.0.0.0        146.21.2.233
146.21.2.233         1
  255.255.255.255    255.255.255.255  122.213.150.172   122.213.150.172
       1
  255.255.255.255    255.255.255.255       146.21.2.233
146.21.2.233        1
Default Gateway:      146.21.2.233
===========================================================================
Persistent Routes:
  None

Kurt thanks for the great imense help you have forwarded to me. But I
have an argument :). I can see two routes 146.21.2.230 and
146.21.255.255 leading to the correct interface. Aren't those of any
help?

Anyways I'll try the trick you just sent and see what happens.
Thanks a bunch Kurt.

Regards

0
ahmad
8/15/2006 7:05:46 AM
Thanks a lot Kurt, you put me in the right direction. I solved the
problem by this command.

route ADD 146.20.1.51 MASK 255.255.255.255 146.21.2.233 if 0x70004

Which, I guess, just filters the packets of this specific IP to the
interface 0x70004, the modem interface as you can see from route
print's output.

Thanks a bunch. Learned something really useful

Regards

0
ahmad
8/15/2006 11:54:01 AM
Reply: