Operating System - HP-UX
1833163 Members
3355 Online
110051 Solutions
New Discussion

Re: subnetting or routing problem

 
SOLVED
Go to solution
Sebastian Kaczmarek
New Member

subnetting or routing problem

Hello,

I had to configure subnetting on my HP 11. In netconf I have:
INTERFACE_NAME[1]=lan101
IP_ADDRESS[1]=192.168.235.25
SUBNET_MASK[1]=255.255.255.192

ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=192.168.235.3
ROUTE_COUNT[0]=1

Of course I have configured nddconf to support subnetting.

My problem is that I can reach devices outside my subnet only after I flash my routing table (route -f). But unfortunatelly it works for a while (30-180 pings). Needlees to say that I cannot see any errors in syslog.
I would be very grateful for any suggestions what can be wrong.

Regards,
sebastian.
8 REPLIES 8
David_246
Trusted Contributor

Re: subnetting or routing problem

Hi sebastian,

Please send us a netstat -rn output working and not working, also a :

for i in `lanscan | awk '{print $5}' | grep lan`
do
ifconfig $i
done

Regs David
@yourservice
Bill Douglass
Esteemed Contributor

Re: subnetting or routing problem

Also please post your entore /etc/rc.config.d/netconf file. Specifically, what is the configuration for INTERFACE_NAME[0], etc.

route -f deletes any entries that specify a remote host as a gateway. That will remove your default gateway entry, according to your posting above. I wonder if you have the correct gateway for your subnet.

Also, verify that your subnet mask is correct.
Michael Steele_2
Honored Contributor

Re: subnetting or routing problem

Sounds like a router issue. Check with the router manufacturer (* who is it? *). Any switches involved? (* what *)

See what happens if you elminate the router by connecting a cross over cable between subnet nodes.
Support Fatherhood - Stop Family Law
Sebastian Kaczmarek
New Member

Re: subnetting or routing problem

When it is NOT working:
tscpa # netstat -rn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 1066 lo0 4136
192.168.235.25 192.168.235.25 UH 0 696 lan0 4136
192.168.235.0 192.168.235.25 U 2 0 lan0 1500
default 192.168.235.2 UG 0 0 lan0 1500
tscpa # lan0: flags=843
inet 192.168.235.20 netmask ffffffc0 broadcast 192.168.235.63

When it is working:
tscpa # netstat -rn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 1066 lo0 4136
192.168.235.25 192.168.235.25 UH 0 696 lan0 4136
192.168.235.0 192.168.235.25 U 2 0 lan0 1500
default 192.168.235.3 UG 0 0 lan0 1500
lan0: flags=843
inet 192.168.235.25 netmask ffffffc0 broadcast 192.168.235.63

My netconf looks like:
Sebastian Kaczmarek
New Member

Re: subnetting or routing problem

I am very sorry that my latest response was wrong (I type the command on the wrong machine).
When it is working ro when it isn't working my inconfig lan0 shows exactly the same.

Onse again sorry.
Regards,
sebastian.
Adam J Markiewicz
Trusted Contributor
Solution

Re: subnetting or routing problem

Massimo Bianchi
Honored Contributor

Re: subnetting or routing problem

hi,
may be you are using dynami routing.

Did you check if gated is active ?

Massimo
Sebastian Kaczmarek
New Member

Re: subnetting or routing problem

Thanks a lot to everyone for your help. It was a issue with a detection of a dead router.

Regards,
sebastian.