Alexandre Takacs
asked on
Static route question
Hello
I have occasionally have to use a Win7 workstation at a client's premise which has the following routing setup
(local LAN is 192.168.121.0/24)
At some point I have to start a VPN connexion to a remote site with subnet 192.168.127.0 which kills my local LAN access.
When connected I have the following routes
and I gather that my issue is with
Which routes all traffic to the remote site (where the GW is 254 btw...)-
In any case I do not want to touch the configuration of the workstation in any permanent way (I have local admin rights) but I'd like to issue one or more ROUTE ADD / DELETE instructions to have both access to the remote site via the VPN and the local LAN (and internet).
An advice how to do that (sorry I am not super fluent here...)
I have occasionally have to use a Win7 workstation at a client's premise which has the following routing setup
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Users\xxx.GVAWS07>route print
===========================================================================
Liste d'Interfaces
16...00 ff a0 ac 88 ab ......TAP-Win32 Adapter V9
13...3c d9 2b 58 3e 69 ......Intel(R) 82579LM Gigabit Network Connection
1...........................Software Loopback Interface 1
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
11...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
12...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter
15...00 00 00 00 00 00 00 e0 Carte Microsoft ISATAP
===========================================================================
IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau Masque réseau Adr. passerelle Adr. interface Métrique
0.0.0.0 0.0.0.0 192.168.121.254 192.168.121.116 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.121.0 255.255.255.0 On-link 192.168.121.116 266
192.168.121.116 255.255.255.255 On-link 192.168.121.116 266
192.168.121.255 255.255.255.255 On-link 192.168.121.116 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.121.116 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.121.116 266
===========================================================================
Itinéraires persistants :
Aucun
IPv6 Table de routage
===========================================================================
Itinéraires actifs :
If Metric Network Destination Gateway
1 306 ::1/128 On-link
13 266 fe80::/64 On-link
13 266 fe80::414e:c97b:5f46:fdf3/128
On-link
1 306 ff00::/8 On-link
13 266 ff00::/8 On-link
===========================================================================
Itinéraires persistants :
Aucun
(local LAN is 192.168.121.0/24)
At some point I have to start a VPN connexion to a remote site with subnet 192.168.127.0 which kills my local LAN access.
When connected I have the following routes
C:\Users\xxx.GVAWS07>route print
===========================================================================
Liste d'Interfaces
17...00 05 9a 3c 7a 00 ......Cisco AnyConnect VPN Virtual Miniport Adapter for
Windows x64
16...00 ff a0 ac 88 ab ......TAP-Win32 Adapter V9
13...3c d9 2b 58 3e 69 ......Intel(R) 82579LM Gigabit Network Connection
1...........................Software Loopback Interface 1
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
11...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
12...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter
15...00 00 00 00 00 00 00 e0 Carte Microsoft ISATAP
18...00 00 00 00 00 00 00 e0 Carte Microsoft ISATAP #2
===========================================================================
IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau Masque réseau Adr. passerelle Adr. interface Métrique
0.0.0.0 0.0.0.0 192.168.121.254 192.168.121.116 10
0.0.0.0 0.0.0.0 192.168.127.1 192.168.127.203 2
62.202.14.85 255.255.255.255 192.168.121.254 192.168.121.116 11
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.121.116 255.255.255.255 On-link 192.168.121.116 266
192.168.121.254 255.255.255.255 On-link 192.168.121.116 11
192.168.127.0 255.255.255.0 On-link 192.168.127.203 257
192.168.127.203 255.255.255.255 On-link 192.168.127.203 257
192.168.127.255 255.255.255.255 On-link 192.168.127.203 257
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.121.116 266
224.0.0.0 240.0.0.0 On-link 192.168.127.203 257
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.121.116 266
255.255.255.255 255.255.255.255 On-link 192.168.127.203 257
===========================================================================
Itinéraires persistants :
Adresse réseau Masque réseau Adresse passerelle Métrique
0.0.0.0 0.0.0.0 192.168.127.1 1
===========================================================================
IPv6 Table de routage
===========================================================================
Itinéraires actifs :
Aucun
Itinéraires persistants :
Aucun
and I gather that my issue is with
0.0.0.0 0.0.0.0 192.168.127.1 1
Which routes all traffic to the remote site (where the GW is 254 btw...)-
In any case I do not want to touch the configuration of the workstation in any permanent way (I have local admin rights) but I'd like to issue one or more ROUTE ADD / DELETE instructions to have both access to the remote site via the VPN and the local LAN (and internet).
An advice how to do that (sorry I am not super fluent here...)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If that is the case. Delete the route first then add it again with a different matrix.
ASKER
Sorry but could you be more specific ?
What I think I want (again, sorry I am not fully proficient here)
all traffic to 192.168.127.0/24 via 192.168.127.1
all other traffic to 192.168.121.254
What I think I want (again, sorry I am not fully proficient here)
all traffic to 192.168.127.0/24 via 192.168.127.1
all other traffic to 192.168.121.254
What I think I want (again, sorry I am not fully proficient here)
all traffic to 192.168.127.0/24 via 192.168.127.1
all other traffic to 192.168.121.254
You can run the below.
route delete 0.0.0.0 mask 0.0.0.0 192.168.127.1
route add 192.168.127.0 mask 255.255.255.0 192.168.127.1 metric 10
ASKER
Thanks - i eventually managed to get access to the gateway and added static routes there. All fine now :=)
ASKER
I have no access to the GW unfortunately.
Entering that route does not work: error is that it already exists.