Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Networking issue

Thread Tools
 
Search this Thread
 
Old 14 September 2009, 11:59 AM
  #1  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default Networking issue

Folks,

Maybe someone on here can help - networks are not my forte

We have a dedicated router for remote support for 2 specific sites of a big customer.
All works great.
We use a batch files to open and close gateways.

Here's the commands to open the gateway
Originally Posted by TheBatchFile
route add 0.0.0.0 mask 0.0.0.0 192.168.16.250
route add 10.31.103.0 mask 255.255.255.0 192.168.16.250
Thats on an XP machine.

Windows 7 doesn't like the "Route Add" commands.
Its just says this operation requires elevation

Any ideas?

THanks,
Shaun

Last edited by urban; 14 September 2009 at 12:01 PM.
Old 14 September 2009, 12:13 PM
  #2  
boxst
Scooby Regular
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
Default

You have to run the batch file as administrator.

Steve
Old 14 September 2009, 12:38 PM
  #3  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

Fair enough, but I have administrator privilages on the domain.
Old 14 September 2009, 12:46 PM
  #4  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

OK, I run as administrator and that fixes the initial problem, hoever I can't access remote site from windows 7

Here is a tracert on windows 7
Originally Posted by Windows7Tracert

C:\>tracert 10.31.10.28

Tracing route to kal [10.31.10.28]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms 192.168.16.254
2 41 ms 41 ms 40 ms 88-212-191-128.rdns.as8401.net [88.212.191.128]

3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.

Here is a tracert on XP

Originally Posted by WindowsXPTracert

C:\>tracert 10.31.10.28

Tracing route to KAL [10.31.10.28]
over a maximum of 30 hops:

1 1 ms <1 ms <1 ms 192.168.16.250
2 43 ms 42 ms 44 ms 82-198-152-155.nethop.ie [82.198.152.155]
3 44 ms 45 ms 46 ms 82-198-142-112.nethop.ie [82.198.142.112]
4 70 ms 71 ms 73 ms 82-198-152-159.nethop.ie [82.198.152.159]
5 71 ms 71 ms 72 ms KAL [10.31.10.28]

Trace complete.
Old 14 September 2009, 01:32 PM
  #5  
phoenixgold
Scooby Regular
iTrader: (2)
 
phoenixgold's Avatar
 
Join Date: Oct 2007
Posts: 348
Likes: 0
Received 0 Likes on 0 Posts
Default

The 2 traceroutes are going different routes:-

Originally Posted by WindowsXPTracert
C:\>tracert 10.31.10.28

Tracing route to KAL [10.31.10.28]
over a maximum of 30 hops:

1 1 ms <1 ms <1 ms 192.168.16.250
2 43 ms 42 ms 44 ms 82-198-152-155.nethop.ie [82.198.152.155]
3 44 ms 45 ms 46 ms 82-198-142-112.nethop.ie [82.198.142.112]
4 70 ms 71 ms 73 ms 82-198-152-159.nethop.ie [82.198.152.159]
5 71 ms 71 ms 72 ms KAL [10.31.10.28]

Trace complete.
Originally Posted by Windows7Tracert
C:\>tracert 10.31.10.28

Tracing route to kal [10.31.10.28]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms 192.168.16.254
2 41 ms 41 ms 40 ms 88-212-191-128.rdns.as8401.net [88.212.191.128]
The batch file is for the wrong subnet:-

Originally Posted by TheBatchFile
route add 10.31.103.0 mask 255.255.255.0 192.168.16.250
Looking at them, seems you need a route something along the lines of:-

route add 10.31.10.0 mask 255.255.255.0 192.168.16.250
Old 14 September 2009, 01:38 PM
  #6  
LostUser
Scooby Regular
 
LostUser's Avatar
 
Join Date: Oct 2005
Posts: 476
Likes: 0
Received 0 Likes on 0 Posts
Default

Do you realise that your original batch file was adding the route

route add 10.31.103.0 mask 255.255.255.0 192.168.16.250

and you were using tracert for

10.31.10.28


If I had to guess I'd say that you've created a route for 10.31.103.0 and so when you try to go to 10.31.10.28 it is just going to the default gateway.

If you do a tracert for 10.31.103.28 you'd probably find it went via the gateway 192.168.16.250

Last edited by LostUser; 14 September 2009 at 01:40 PM.
Old 14 September 2009, 02:00 PM
  #7  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

OK, I know.

So how about we completely forget about line 2 of that batch file and just concentrate on line 1.

If you do a tracert for 10.31.103.28 you'd probably find it went via the gateway 192.168.16.250
And your quite correct sir.

Originally it was only line 1 in the batch file "route add 0.0.0.0 mask 0.0.0.0 192.168.16.250"

Then they brought a second site into the equation and told us to add this to the batch file "route add 10.31.103.0 mask 255.255.255.0 192.168.16.250"

Worked OK with XP?
Just not with Vista or Win 7
Old 14 September 2009, 02:03 PM
  #8  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

Update: just looked at a Unix server which has direct access to BOTH sites.
THis server in particular just has a static IP address on our network which is "192.168.16.99"

It does the following
"route add default 10.31.10.1"

Last edited by urban; 14 September 2009 at 02:05 PM.
Old 14 September 2009, 02:32 PM
  #9  
LostUser
Scooby Regular
 
LostUser's Avatar
 
Join Date: Oct 2005
Posts: 476
Likes: 0
Received 0 Likes on 0 Posts
Default

By using

route add 0.0.0.0

you're effectively overwriting your default gateway. Are you assigning a default gateway to your clients via DHCP or other methods?

It may be that XP gave precedence to the route add 0.0.0.0 command but Vista gives precedence to the default gateway.

It would help if you could provide a "route print" and an "ipconfig" from a client that is having problems contacting the remote site.
Old 14 September 2009, 02:42 PM
  #10  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

Originally Posted by LostUser
By using

route add 0.0.0.0

you're effectively overwriting your default gateway. Are you assigning a default gateway to your clients via DHCP or other methods?
I'm sorry, I don't really know via DHCP I presume.
I'm logged onto our internal network, I need to connect to the client
We used to change the gateway on the TCP/IP settings, then the client's gave us batch files to use instead - 1 to turn on and 1 to turn back off again

Originally Posted by LostUser
It would help if you could provide a "route print" and an "ipconfig" from a client that is having problems contacting the remote site.
Before running the batch file or after?
Old 14 September 2009, 03:02 PM
  #11  
LostUser
Scooby Regular
 
LostUser's Avatar
 
Join Date: Oct 2005
Posts: 476
Likes: 0
Received 0 Likes on 0 Posts
Default

An ipconfig before and after, and a route print after.
Old 14 September 2009, 03:25 PM
  #12  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

OK - Windows 7 client

Originally Posted by IpConfigBefore
C:\>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : SYSCODOM.local
Link-local IPv6 Address . . . . . : fe80::3568:88c8:d909:3264%12
IPv4 Address. . . . . . . . . . . : 192.168.16.32
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.16.254

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : SYSCODOM.local
Link-local IPv6 Address . . . . . : fe80::216b:27e9:21e9:ae5b%11
IPv4 Address. . . . . . . . . . . : 192.168.16.20
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.16.254

Tunnel adapter isatap.SYSCODOM.local:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : SYSCODOM.local

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Originally Posted by IpConfigAfter
C:\>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . : SYSCODOM.local
Link-local IPv6 Address . . . . . : fe80::3568:88c8:d909:3264%12
IPv4 Address. . . . . . . . . . . : 192.168.16.32
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.16.254

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : SYSCODOM.local
Link-local IPv6 Address . . . . . : fe80::216b:27e9:21e9:ae5b%11
IPv4 Address. . . . . . . . . . . : 192.168.16.20
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.16.254
192.168.16.250

Tunnel adapter isatap.SYSCODOM.local:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : SYSCODOM.local

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Originally Posted by RoutePrintAfter
C:\>route print
================================================== =========================
Interface List
12...00 21 6a 53 35 04 ......Intel(R) WiFi Link 5300 AGN
11...00 23 ae 38 f0 82 ......Broadcom NetXtreme 57xx Gigabit Controller
1...........................Software Loopback Interface 1
13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
15...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
================================================== =========================

IPv4 Route Table
================================================== =========================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.16.254 192.168.16.20 20
0.0.0.0 0.0.0.0 192.168.16.254 192.168.16.32 25
0.0.0.0 0.0.0.0 192.168.16.250 192.168.16.20 21
10.31.103.0 255.255.255.0 192.168.16.250 192.168.16.20 21
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.16.0 255.255.255.0 On-link 192.168.16.20 276
192.168.16.0 255.255.255.0 On-link 192.168.16.32 281
192.168.16.20 255.255.255.255 On-link 192.168.16.20 276
192.168.16.32 255.255.255.255 On-link 192.168.16.32 281
192.168.16.255 255.255.255.255 On-link 192.168.16.20 276
192.168.16.255 255.255.255.255 On-link 192.168.16.32 281
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.16.20 276
224.0.0.0 240.0.0.0 On-link 192.168.16.32 281
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.16.20 276
255.255.255.255 255.255.255.255 On-link 192.168.16.32 281
================================================== =========================
Persistent Routes:
None

IPv6 Route Table
================================================== =========================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 276 fe80::/64 On-link
12 281 fe80::/64 On-link
11 276 fe80::216b:27e9:21e9:ae5b/128
On-link
12 281 fe80::3568:88c8:d909:3264/128
On-link
1 306 ff00::/8 On-link
11 276 ff00::/8 On-link
12 281 ff00::/8 On-link
================================================== =========================
Persistent Routes:
None
Old 14 September 2009, 03:35 PM
  #13  
LostUser
Scooby Regular
 
LostUser's Avatar
 
Join Date: Oct 2005
Posts: 476
Likes: 0
Received 0 Likes on 0 Posts
Default

I'd say this is your problem
0.0.0.0 0.0.0.0 192.168.16.254 192.168.16.20 20
0.0.0.0 0.0.0.0 192.168.16.254 192.168.16.32 25
0.0.0.0 0.0.0.0 192.168.16.250 192.168.16.20 21

You effectively have 3 default routes. The highest priority being to 192.168.16.254

Rather than use the batch file to introduce a new default gateway you'd be better just specifiying the route for the network you're interested in.

Like this one which you can see in the route print

10.31.103.0 255.255.255.0 192.168.16.250 192.168.16.20 21


So just try

route add 10.31.10.0 mask 255.255.255.0 192.168.16.250
Old 14 September 2009, 03:48 PM
  #14  
urban
Scooby Regular
Thread Starter
iTrader: (1)
 
urban's Avatar
 
Join Date: Mar 2002
Location: Never you mind
Posts: 12,566
Received 1 Like on 1 Post
Default

Your a genuis boy

Site 1 works, so I can ping 10.31.10.28 now

I was in the process of typing about "what shall I do for site 2"

But I've figured that out now from your command so thanks.

Cheers,
Shaun
Old 14 September 2009, 03:51 PM
  #15  
LostUser
Scooby Regular
 
LostUser's Avatar
 
Join Date: Oct 2005
Posts: 476
Likes: 0
Received 0 Likes on 0 Posts
Default

No probs. Always good to get the old brain thinking now and again.
Old 14 September 2009, 06:41 PM
  #16  
hodgy0_2
Scooby Regular
 
hodgy0_2's Avatar
 
Join Date: Jul 2008
Location: K
Posts: 15,633
Received 21 Likes on 18 Posts
Default

reminds me of an old MCSE exams -- and if in doubt its always the DG
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
greg320
Non Car Related Items For sale
6
11 October 2015 11:44 AM
PetrolHeadKid
Driving Dynamics
10
05 October 2015 05:19 PM
blackieblob
ScoobyNet General
2
02 October 2015 05:34 PM
Lillyart14
ScoobyNet General
24
01 October 2015 01:29 AM
Phil3822
General Technical
0
30 September 2015 06:29 PM



Quick Reply: Networking issue



All times are GMT +1. The time now is 02:28 AM.