1833748 Members
2860 Online
110063 Solutions
New Discussion

moving lan cards

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

moving lan cards

I am moving from a 10/100 card to a new Gige card. My network switches can accomodate the change in speed, and I have the driver loaded and the card is claimed.

lan 5 0/0/3/1/0/6/0 igelan CLAIMED INTERFACE HP A9784-60001 PCI/PCI-X 1000Base-T FC/GigE Combo Adapter


I know that I need to edit hpigelanconf.

HP_IGELAN_INTERFACE_NAME[0]=lan5
HP_IGELAN_STATION_ADDRESS[0]=
HP_IGELAN_SPEED[0]=auto_on


My question is what steps do I need to do after I shutdown the application and databases?

How do I shutdown the network and then move the cable and then reenable the network?


Unix, the other white meat.
9 REPLIES 9
Torsten.
Acclaimed Contributor

Re: moving lan cards

Prior to remove the old card, connect to the systems console, disable the card (SAM) and remove the device files (rmsf).

Once the cards are changed, easily use SAM to configure the new card.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Todd McDaniel_1
Honored Contributor

Re: moving lan cards

I am not physically removing the old card but switching the cabling to the new one.

Other than editing the files I have detailed how do I enable the new lan card and restart the network.
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: moving lan cards

I really dont trust SAM for something like this...

is there a command line method?
Unix, the other white meat.
Torsten.
Acclaimed Contributor

Re: moving lan cards

Use SAM to unconfigure the old and configure the new card.

I would use the system console to prevent using just this card for network connection.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
DCE
Honored Contributor

Re: moving lan cards


I agree with Torsten. SAM is the easiest way to do it. It hits all of the correct files.

Simply disable the old card in SAM, and enable the new card with the correct IP. SAM will allow to customize/optimize the to a limited degree.

Manual
Down old interface (ifconfig)
modify netconf and hpigelanconf
move cable
bring up new interface (ifconfig)
Reboot system to make nothing was missed
rick jones
Honored Contributor
Solution

Re: moving lan cards

Why do you think you need to edit the hpigelanconf file? The default should be autoon and such.

If you intend to simply move the IP from the old 10/100 to the new gige card, you could go into netconf file and simply change the interface name in the existing entry for your 10/100 interface and then either reboot or stop/start networking. if you do either of those, it best be from the console.

you could even simply:

ifconfig 0.0.0.0
ifconfig IP etc

and make sure you have the routes you were expecting to have - might need to reestablish the default route
there is no rest for the wicked yet the virtuous have no pillows
Prashant Zanwar_4
Respected Contributor

Re: moving lan cards

simplest way will be ig GIGE is already available on host..
simply shutdown old 10/10, by putting a 0.0 ip as mentioned.. and then assign the ip to new card.
also update /etc/rc.config.d/netconf .. if you have any card specific file, will need to be updated ..

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Josiah Henline
Valued Contributor

Re: moving lan cards

A good way to change network cards and verify that all of your files are set up correctly is to stop the network, change the network, and restart the network.

This will need to be done on the console.

/sbin/init.d/net stop
ifconfig OLDLAN down
ifconfig OLDLAN plumb
ifconfig OLDLAN unplub

vi /etc/rc.config.d/netconf #Change the interface name to lan5

/sbin/init.d/net start

ifconfig lan5 #Make sure the IP address is correct

netstat -rn #Make sure the default route is associated with LAN5

If at first you don't succeed, read the man page.
Josiah Henline
Valued Contributor

Re: moving lan cards

For the least amount of interuption, you can put several commands on the same line and experience almost no downtime. You can then go back and change the netconf later.

ifconfig OLDLAN down;\
ifconfig OLDLAN plumb;\
ifconfig OLDLAN unplumb;\
route delete default DEFAULT_ROUTE_IP;\
ifconfig lan5 IPADD netmask NETMASK up;\
route add default DEFAULT_ROUTE_IP 1

Make sure to include the " 1" on the end of the last line. Then you can change the netconf to reflect the new card. I would still recommend running the command from the console in case there is a typo.
If at first you don't succeed, read the man page.