Operating System - HP-UX
1837117 Members
2316 Online
110112 Solutions
New Discussion

Re: network connection error

 
Ratzie
Super Advisor

network connection error

I am in a pickle, and was hoping someone can help me out.

I had to set up a server at my shop to be sent to another shop. I had every thing working and went to change the ip address and gateway for the other shop.

It looked fine, and I shutdown the system.
Hooked it up in it's new home, and it booted fine.
I was able to ping a host on the same subnet.
But, the gateway was wrong. So I changed the gateway... All done thru set_parms

When I did this I could not longer ping anything but its own address.

It could not find the gateway, or the dns server, I could not ping anything.

I checked every file. I ran set_parms add_ntwk

I even ran a set_parms intial

I am still at a loss.
And YES, I do have all the correct IPs. What the heck did I do!

When I did a route -rn
I got all 5 routes, including the default.

Everything looks fine.

Any suggestions!
13 REPLIES 13
John Poff
Honored Contributor

Re: network connection error

Hi,

Do you see your localhost entry in your route table? What does your /etc/rc.config.d/netconf file look like now?

I'm a big fan of editing the netconf file by hand. I've seen the netconf files get hosed up before by sam and set_parms.

JP
Ratzie
Super Advisor

Re: network connection error

yes there is a local host or
127.0.0.1 if that is what you are referring to.

Well, I could have really messed up my netconf file, but I now I dont know what it is really suppose to be...
John Poff
Honored Contributor

Re: network connection error

Can you post your netconf file? If so, we can take a look at it and see if it looks happy or not.

JP
Ratzie
Super Advisor

Re: network connection error

would gladly but it would have to wait until tom!
In another building that I dont have access to, yada yada

Will try to get copy tom

How do you put on formatted PC floppy?
John Poff
Honored Contributor

Re: network connection error

Do you have access to a PC? Maybe you can ftp it down to a PC with a floppy disk drive.

JP


Ratzie
Super Advisor

Re: network connection error

The thing is I dont have any network!
I am trying to fix it!
John Poff
Honored Contributor

Re: network connection error

Oh. Duh! Sorry about that. I had a brain fart.

Does the system have a DDS tape drive? If so, maybe you can tar off the netconf file and take it to another system where you can get to it.

JP
Ron Kinner
Honored Contributor

Re: network connection error

Once you get back to it check
lanadmin
lan
display

and see if the link is up.

If it is up see if you can ping something else on the local LAN. Oops you said you could before and not now. Check that you haven't somehow changed the ip address or the network mask on the interface. My suspicion is that your gateway does not want to reply to pings and dead gateway detection has turned off the gateway.


ndd /dev/ip ip_ire_gw_probe_interval 0

Then remove the default gateway with route delete and add it back with route add.

then if that fixes your problem add the setting to /etc/rc.config.d/nddconf

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_ire_gw_probe_interval
NDD_VALUE[0]=0

Another possibility is the subnet violates an old RFC.

ndd -set /dev/ip ip_check_subnet_addr 0

to make it happy with subnet zero.

You will want to edit /etc/rc.config.d/nddconf to permanently disable it:

TRANSPORT_NAME[1]=ip
NDD_NAME[1]=ip_check_subnet_addr
NDD_VALUE[1]=0

If the link is down then there are the usual suspects: bad cable, bad port on hub/switch, VLAN wrong, security on switch, cable plugged into the wrong NIC, bad hub/switch.

If all else fails post your /etc/rc.config.d/netconf (suitably changed to hide the first three octaves with A.B.C. if you like)

Ron



Suresh Patoria
Super Advisor

Re: network connection error

Hi,

Put the right IP address and gateway in the /etc/rc.config.d/netconf file

Then restart the service

Then u check it out

Thanx
doug mielke
Respected Contributor

Re: network connection error

It sure sounds like you did nothing wrong here. First step when can only ping yourself is check media, but you had this working just prior to change of gateway. Is it possible there is a metric problem here?

If the real default has a high one, and some bogus one out there has a low one, you can get into a situation where all packets outside the local seg. go for the low metric, whether it can forward them or not.
But Your local pings should still work in a case like this, unless there is a bogus route to your local segment via a segment you can't get to.

If you remove the gateway / routes. can you ping other hosts on same segment?
Arnaud_8
Advisor

Re: network connection error

LHradowy Don't forget :
To give points, it is a MORAL OBLIGATION

Thank you.
Service Informatique
Ratzie
Super Advisor

Re: network connection error

As I completely understand and support!
Right now I am in a holding pattern, stuck at one building and having the sever in another building. So when I get over there and sort out all the information that people have helped out on, then I will distribute the points.
Ratzie
Super Advisor

Re: network connection error

Well, heres what happened!
Very good learning experience...

After trying to get the network up, and fiddled with the netconf file, and then my maching was doing an endly loop of powering on and off.

Back to the drawing board...
I reinstalled the OS thinking I buggered up the netconf file... YIKES

Still no go...
After trials and tribulations, I light went on...
I needed to contact the support specialist of the switch that I plugged into, and get him to activate the port!!!

Turns out I had everything right!

Thanks everyone for your help!