Operating System - HP-UX
1819777 Members
3466 Online
109607 Solutions
New Discussion юеВ

Re: Start and stop network service in HP-UX

 
yc_2
Regular Advisor

Start and stop network service in HP-UX

Hi,

Is there a way to start and stop the network service without rebooting the system ?

Currently, there are 2 x 100BaseT and 1 x 10BaseT in the system. The default network connection is to the 10baseT card and I want to change to 100baseT card for better performance.


Thanks in advance,
YC
7 REPLIES 7
Roger Baptiste
Honored Contributor

Re: Start and stop network service in HP-UX

<>

Yes. Do
/sbin/init.d/net stop
/sbin/init.d/net start

<>

Is the 100BT card enabled and working ??
Do
#lanscan
#ioscan -nkfClan
(to confirm that you can see the card).

If you want to swap the IP address setting of
10bT card to the 100Bt, then you would need to shut off the network service (or do a
ifconfig lan? down )

edit /etc/rc.config.d/netconf and add the
entry for the 100BT card , while commenting out the 10BT card entries. Do the same for routing entries in the file. Then run the net start command.

HTH
raj
Take it easy.
Sridhar Bhaskarla
Honored Contributor

Re: Start and stop network service in HP-UX

Yes. First thing you need to do is to change the IP address manually. Before that you need to make sure the switch is configured properly for the speed of your 100BT card. Let's say lan0 is your default interface and lan1 is 100BT. Then you would be doing like this. You need to go to the console. Network will be down for few minutes until your 100BT comes up on line.


#ifconfig lan0 unplumb
#ifconfig lan1 inet ip_address net_mask
#ifconfig lan1 up
then set the speed
#lanadmin -X 100FD 1 (100 Full Duplex)
(wait for 11 secs here)
#ping broadcast_address

Then edit /etc/rc.config.d/netconf file and change lan0 to lan1.

Also edit the corresponding btconf file in /etc/rc.config.d and hardcode the speed.
For ex., if it is a gsc card you would edit
/etc/rc.config.d/hpgsc100conf and place these two entries

HP_GSC100_INTERFACE_NAME[0]=lan1
HP_GSC100_SPEED[0]=100FD

So, then when the system comes backup, it will set the speed to 100FD.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: Start and stop network service in HP-UX

Hi,

Make sure that the switch you are connecting
to has been also set up as 100BT. If it is not
you will have problems. Do this before
attempting to do anything. I cannot stress
this point enough!

-Michael
Anyone for a Mutiny ?
Mary Ann Lipa
Valued Contributor

Re: Start and stop network service in HP-UX

Hi YC,



To stop network services


/sbin/init.d/net stop


/sbin/init.d/net start




If you want to make some changes on the settings of
your NIC, then you would need to shut off the network service, or do an

ifconfig. edit /etc/rc.config.d/netconf file
entry for your NIC, and routing entries. Then execute 'net start' command.


You must also execute 'inetd -c' to reread your /etc/rc.config.d/netconf file and for the changes to take effect without restarting your server.



d_b
Which is worse, smoking or picking your nose in a public place?
Mary Ann Lipa
Valued Contributor

Re: Start and stop network service in HP-UX

Hi YC,





To stop network services



/sbin/init.d/net stop



/sbin/init.d/net start






If you want to make some changes on the settings of
your NIC, then you would need to shut off the network service, or do an


ifconfig. edit /etc/rc.config.d/netconf file
entry for your NIC, and routing entries. Then execute 'net start' command.



You must also execute 'inetd -c' to reread your /etc/rc.config.d/netconf file and for the changes to take effect without restarting your server.





d_b
Which is worse, smoking or picking your nose in a public place?
yc_2
Regular Advisor

Re: Start and stop network service in HP-UX

Hi,

Thanks for taking out your time in answering my question.

I managed to perform the /sbin/init.d/net [stop | start]. However, the methods suggested were failed to assign the IP from the 10baseT 100baseT n/w card.

All the n/w cards status are "claimed" in ioscan and "up" in lanscan.

In lanadmin menu of the 100baseT card, the "Operation Status (value) = down(2)" after I assigned the IP to the card, what does it mean ?

I tried to configure the switch (CISCO 5500) port with 100 as well as auto-negotiate but not successful, any pointers.



YC
Shayne Gallagher
Occasional Contributor

Re: Start and stop network service in HP-UX

Is the first step (/sbin/init.d/net stop) necessary?