Operating System - HP-UX
1825759 Members
2182 Online
109687 Solutions
New Discussion

LAN gateway bind to Local network

 
Bruno Delorme
Occasional Contributor

LAN gateway bind to Local network

Hi,
I just configured network with 2 lan cards, but
it seem to be abnormal when I do the command
"netstat -nr", all intranet network are binds
(gateway) to local (loopback) network.

Thanks in advance
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: LAN gateway bind to Local network

Can you ping devices on both subnets?

live free or die
harry
Live Free or Die
Bruno Delorme
Occasional Contributor

Re: LAN gateway bind to Local network

Hi,
yes, I can access to all networks.

Thank you
Steven Sim Kok Leong
Honored Contributor

Re: LAN gateway bind to Local network

Hi

Personally, I can't find anything abnormal about the netstat -rn output you have.

1) 127.0.0.1 127.0.0.1 UH 0 257 lo0 4608

To reach localhost, go through the localhost address 127.0.0.1.

2) 100.120.20.200 127.0.0.1 UH 0 260 lo0 4608

To reach the network interface 100.120.20.200, go through the localhost address 127.0.0.1.

3) 192.168.20.200 127.0.0.1 UH 0 0 lo0 4608

To reach the network interface 192.168.20.200, go through the localhost address 127.0.0.1.

4) default 100.120.20.1 U 6 420923 lan1 1500

To reach an external network, use the default route 100.120.20.1.

5) 100.120.20.0 100.120.20.200 U 1 6419 lan1 1500

To reach subnet 100.120.20.0, use the interface 100.120.20.200.

6) 192.168.20 192.168.20.200 U 9 6667340 lan2 1500

To reach subnet 192.168.20.0, use the interface 192.168.20.200. I think you are missing one .0 after 192.168.20.

Hope this helps. Regards.

Steven Sim Kok Leong
Ron Kinner
Honored Contributor

Re: LAN gateway bind to Local network

As Steve says it looks OK. That is the way HP does netstat -rn.

I do disagree with Steve on the missing .0 - I do not have any .0 on my three network connections so I think you have an extra .0! You might want to check your mask on the 100.120.20.0 set up in /etc/rc.config.d/netconf.

or perhaps the network definition in /etc/networks.

Ron
Steven Sim Kok Leong
Honored Contributor

Re: LAN gateway bind to Local network

Hi,

The "Dest" field from netstat -rn should always have a 4-octet value (at least on HP-UX 11.00) or the reserved word "default".

If you use a pure class C network or subnet, it should always return 0 as the last octet (ie. X.X.X.0). However, if you are using smaller subnets within a class C network or subnet, then it may not be 0 depending on your netmask and IP address (eg. X.X.X.160 is the network address for IP address Y.Y.Y.169 with subnetmask 255.255.255.224).

Hope this helps. Regards.

Steven Sim Kok Leong