1839533 Members
2447 Online
110146 Solutions
New Discussion

Re: IP move

 
ricky_8
Frequent Advisor

IP move

Hi ALL,

I have added gigabit lan card to a existing 100 mbps server.
So want to change the IP to go thru gigabit card, what should be the best way.
One way i can think of is enable and configure the gigabit card with the IP and then disable the 100mb card.

Is there a better way/

5 REPLIES 5
CCIL
Frequent Advisor

Re: IP move

If you want to assign the same exsting IP to the new, giga bit then only care should be take that the cahnges should be made from the console of the system, not from any normal telnet session
Amit Vichare
Michael Tully
Honored Contributor

Re: IP move

You need to make the changes to the /etc/rc.config.d/hpgelanconf file
Use the same information from your existing network file, depending on the existing network file.
You could attempt to do this on the fly, with the /sbin/init.d/net stop - start, but it may be better to do a system reboot. Make sure that your lan card number is the same as being used in /etc/rc.config.d/netconf file.
Anyone for a Mutiny ?
monasingh_1
Trusted Contributor

Re: IP move

you can do this from a telnet session as long as your cables are properly connected to the same net and you give ifconfig lan100bt down and ifconfig lanGB up IP_ADD in a () separated by ;

the problem may come if your 1000BT cable is not connected to the same subnet or the 1000BT card or your swith port has some issues.
Otherwise it works without any problem. No need to reboot or do net stop and net start.
After the new card starts working change the old lan (lan100BT) entry in netconf to the new lan (1000BT).

hope this helps..

Michael Duthie
Trusted Contributor

Re: IP move

Ricky,

Either use lanscan, find the lanX for the new card, edit /etc/rc.config.d/netconf and replace the lanX entry for the 100mb card with the 1gb card. Then either stop & start the networking or reboot.

Or you could use SAM to delete the 100mb configuration & then configure the 1gb card.
Steven E. Protter
Exalted Contributor

Re: IP move

Prior to starting, check your switch configuration. Based on my prior experience with HP's and Cisco switchs, make sure the switch is hard coded to the speed you intend to run the card at. Then follow the instructions above.

My methodology for making the move.

Lets say the new card is lan3 and the existing one is lan1.

make necessary changes to /etc/rc.config.d/netconf

Have a second set of eyes look for typos or inconsistencies with regards to the little numbers in the brackets.

ifconfig lan1 down
ifconfig lan3 netmask up

That should do it fast enough that you don't even have to shut down your users. Though if it were me, I'd do it in a maintenace window or the wee hours of the night.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com