Operating System - HP-UX
1833268 Members
2883 Online
110051 Solutions
New Discussion

Re: after changing a network cable, how to get network connection back?

 
SOLVED
Go to solution
Carol Yu
Frequent Advisor

after changing a network cable, how to get network connection back?

Hi, here is what happened and what we did. We have a L class server running HP-UX 11i. 1 NIC card on. But the network connection was pretty bad. It ended up the connector on the network cable to switch port is bad. So I had to use another cable. But after that, we still can't ping the server. Then:
(1) We disabled and enabled the NIC from SAM, didn't work
(2) We deleted the NIC and configure it from SAM, didn't work
(3) We rebooted the server, it worked.

Certainly rebooting the server is a silly idea. I am wondering what is the correct waqy of making the network connection work after you changed the network cable or adjust the NIC settings?

Thanks a lot,
Carol

5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: after changing a network cable, how to get network connection back?

Carol,

I would suggest downing the interface before you unplug the cable, replacing the cable, then enabling the interface again.


Pete

Pete
RAC_1
Honored Contributor

Re: after changing a network cable, how to get network connection back?

ifconfig lanx down

Change the cable.

ifconfig lanx up

Anil
There is no substitute to HARDWORK
Jeroen Peereboom
Honored Contributor

Re: after changing a network cable, how to get network connection back?

Or maybe the switch disabled the port?

JP
Sanjay_6
Honored Contributor
Solution

Re: after changing a network cable, how to get network connection back?

Hi,

to be sure everything has been taken care of after a cable replacement,

these are the steps.

/sbin/init.d/net stop
/sbin/init.d/nettl stop
/sbin/init.d/net.init stop

Now restart these services in the reverse order.
/sbin/init.d/net.init start
/sbin/init.d/nettl start
/sbin/init.d/net start

Hope this helps.

Regds
Stefan Pendl
Valued Contributor

Re: after changing a network cable, how to get network connection back?

I had a similar problem before out switch was on UPS power. Everytime the power was gone I used lanadmin to reset the NIC.
This brought it back to respond.
Programing is fun.