1831462 Members
3201 Online
110025 Solutions
New Discussion

Re: Odd entry in netstat

 
Paul Thomson_2
Super Advisor

Odd entry in netstat

I have a server in Kuwait and am able to connect OK from the UK, but can ping to the server back in the UK I have logged on from to Kuwait.
The output of netstat -rn on the Kuwait server is attached,

The parts of my /etc/rc.config.d/netconf on Kuwait server is
HOSTNAME="ku912_1"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=164.39.151.90
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=164.39.151.255
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=164.39.4.240
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""


The IP address of the server in the UK is 164.39.9.50.

I believe the line in netstat output showing
164.39.9.0 164.39.4.240 UG

I have tried a
route delete 164.39.9.0 164.39.4.240

and re booted the server.

Still no effect.

Any ideas ?

Argh ye land lovers !
12 REPLIES 12
Tom Geudens
Honored Contributor

Re: Odd entry in netstat

Hi,
Is it possible to post the /etc/rc.config.d/netconf of the UK server as well ? And the output of a "traceroute" from the Kuwait to the UK server ?

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

HI Tom
netconf of UK machine is
HOSTNAME="gb898_m"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=164.39.9.50
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=164.39.9.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""


Traceroute shows
traceroute to gb898_m(164.39.9.50), 30 hops max, 20 byte packets
1 gb898x25 (164.39.4.240) 2911 ms3827 ms1512 ms
2 164.39.28.230 (164.39.28.230) 1281 ms
164.39.28.215 (164.39.28.215) 707 ms
164.39.28.219 (164.39.28.219) 1326 ms
3 * * *
4 * * *


After this just shows the * * *

Basically the last IP a address 164.39.28.219
is in the UK so. I checked this first and then assumed the entry in netstat -rn was issue as the next subnet would be 164.39.9.

Thanks
Paul

Argh ye land lovers !
Tim D Fulford
Honored Contributor

Re: Odd entry in netstat

Am I missing something here? But the default route is on another subnet.

If the netmask was 255.255.0.0 then I would see no problems.

I also do not see an interface for the default route in the netstat -rn it just says "x00"

Reagards

Tim
-
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

Tim
Do you refer to the netmask on the Kuwait server or UK server.

Both shows
SUBNET_MASK[0]=255.255.255.0

??

Thanks
Paul
Argh ye land lovers !
Tom Geudens
Honored Contributor

Re: Odd entry in netstat

Hi,
I think Tim has hit upon the problem. The gateway on the UK side is in the same subnet as the server itself. This is not the case on the Kuwait side. I would take a look at that issue first ...

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

Tim/Tom

By this, excuse me as I am not really the network sort of person. From my understanding.

On Kuwait server. The gateway is.
164.39.4.240

Where as the subnet is 255.255.255.0 using an ip address of 164.39.151.90

There by on a different subnet. .151 and .4

The UK server has a gateway of
164.39.9.1
The subnet of 255.255.255.0 using an IP of 164.39.9.50.

Thereby the gatway and the IP address are on the same subnet ? In this case 164.39.9 ??

Thanks
Paul

What would be the best way to resolve this.

Change the subnet on UK server to 255.255.0.0. Would this affect the IP address ??
Argh ye land lovers !
Tom Geudens
Honored Contributor

Re: Odd entry in netstat

Paul,
I'm not a network person myself, but the way I understand it, the server and the gateway should be on the same subnet. And this is indeed the case on the UK side, not on the Kuwait side. So you should check the Kuwait configuration. What I would do is contact the network guys and check that Kuwait gateway. Either that is wrong (and if the "logic" of your complete network holds, it should be 164.39.151.1) or there is something wrong with the subnet mask. Even so, I would not alter this without checking with the network guys ... because you should alter it on ALL your servers then.

As you can see, not easy ...
Tom

P.S. Tim (or anyone else) please correct me if I'm talking "bullsh*t" here !!!

A life ? Cool ! Where can I download one of those from ?
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

Tim/Tom.

Thanks for your help.

I will speak with the network dept on Monday.

I was not sure, but that was my understanding, although very basic, the gateway and the IP should be on the same subnet.

Thanks again
Paul

Argh ye land lovers !
Tom Geudens
Honored Contributor

Re: Odd entry in netstat

Hi Paul,
Keep us posted ... I'm very interested in the solution myself !!!

Regards,
Tom ;-)

P.S. N/A for this reply please.
A life ? Cool ! Where can I download one of those from ?
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

Tom, will attempt to keep you posted.
Argh ye land lovers !
Steven Mertens
Trusted Contributor

Re: Odd entry in netstat

hi,

the gateway thingy is idd odd.


- can you login from the kuwait server to
the uk server ?
- are you sure your ping probes arent block
by some sort of firewall ? icmp maybe
get blocked.
- you can check this with a scanner like
nmap.

rgds,

Steven
Paul Thomson_2
Super Advisor

Re: Odd entry in netstat

Guys

Just a quick update.

Seems the issue here was...

The X25 'box' here was decommissioned 2 weeks ago which Kuwait was connecting in to.
He has temporarily switched this back on, but will investigate connecting the X25 link directly into the router here.
He will advise the outcome tomorrow.

Will keep you posted.
Argh ye land lovers !