Operating System - HP-UX
1832433 Members
3292 Online
110042 Solutions
New Discussion

Static routes when swaping NIC

 
Shahul
Esteemed Contributor

Static routes when swaping NIC

Hi,

I am planning to add a Giga bit NIC to my HPUX 11.11 system. The system is currently running with 100Mbps card and 100s of static routes associated with it. My plan is to install new card and driver, then
ifconfig lan0 unplumb
ifconfig netmask up
/sbin/init.d/net stop and start from console.

My question is, will all static routes now change to new interface? or do I need to do anything manually to flip over these?

TIA
Shahul
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Static routes when swaping NIC

Shalom,

It is a near 100% probability if you replace the NIC card that it will be the same lan as its predecessor, thereby having no need for reconfiguration of your static route.

You plan however is flawed.

The system must be shut down for LAN card replacement. That is not a hot swap part.

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
Steven E. Protter
Exalted Contributor

Re: Static routes when swaping NIC

Of course I should have read more carefully in my first reply.

Adding a New GB NIC card will create a new lan.

If you intend this to be primary, then your plan will probably work.

I usually have more success after such work with a reboot.

Don't forget to update /etc/rc.config.d/netconf so next reboot you don't have to do your plan again.

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
Shahul
Esteemed Contributor

Re: Static routes when swaping NIC

Hi Steven,

Yes, it is my primary lan, but the lan number will be different as the card is plugged in to a new slot. Yes, I will be rebooting the server as I need to install NIC driver and patches for it. I will be changing netconf file. I am not planning to do a second reboot. Rather I will do a /sbin/init.d/net start and stop. I was unsure about the static routes, what hapens to them.

TIA Shahul
TTr
Honored Contributor

Re: Static routes when swaping NIC

Since you are adding the Gb card, the old LAN interface is probably the builtin one (lan0) and you can not remove it.

You should modify the /etc/rc.config.d/netconf and put in the new lan device (lan1 in place of lan0).

The /sbin/init.d/net stop does nothing, you only need to do /sbin/init.d/net start (or if you run the ifconfig command, you probably don't need to run the /sbin/init.d/net start command)

The static routes are all IP based so they should not get impacted.

Better to do this during off hours and prepare for reboot in case something goes wrong.
Shahul
Esteemed Contributor

Re: Static routes when swaping NIC

Thanks for your reply. Yes, I will be doing it at mid night only.

Thanks
Shahul
Tim Nelson
Honored Contributor

Re: Static routes when swaping NIC

If you execute netstat -rn you will notice that all your routes are bound to a specific lanX.

You will need to re-execute your routing config in order for them to be bound to the new card.

The simplest way is a reboot.

or

remove all manually then /sbin/init.d/net start