Operating System - HP-UX
1849431 Members
6445 Online
104044 Solutions
New Discussion

Install of GELAN fiber nic

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

Install of GELAN fiber nic

I need to install an existing fiber nic card on my N class server. Right now i have a 10/100 regular nic card running. I am concerned with the procedure of how to install and get the proper nic working. i tryed once and it didn't work.. here is my thoughts. any comments or better way let me know. thanks in advance.

1. install recommended patchs
2. install J1642AA driver
3. reboot
4. connect fiber to NIC card
5. run "ifconfig lan0 unplumb"
6. run "ifconfig lan2 192.x.x.x netmask 255.x.x.x. up
7. run "ifconfig lan2"
8. get the broadcast address and ping it to see if it works.
9. edit /etc/rc.config.d and change lan0 to lan2
10. edit the hpgelancong file

does this sound like it will work?
is there a better reliable way to do this?
9 REPLIES 9
Joseph C. Denman
Honored Contributor

Re: Install of GELAN fiber nic

Looks like you pretty much got it. Don't forget the default route info in the netconf file.

...jcd...
If I had only read the instructions first??
linuxfan
Honored Contributor

Re: Install of GELAN fiber nic

Hi Chris,


Looks ok if you are doing this from the console, if not the moment you do the unplumb on lan0, you would lose your connection.

I haven't used the Fibre NIC card, but you might also want to check for patches if applicaable.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Chris Fadrowski
Super Advisor

Re: Install of GELAN fiber nic

i also wanted to mention that i wanted to use the same IP address as assigned right now.

is the netconf file the file in /etc/rc.config.d/netconf ?

and change the "interface name" right?
Santosh Nair_1
Honored Contributor

Re: Install of GELAN fiber nic

Chris,

Yes, the netconf file is /etc/rc.config.d/netconf. One thing I would change in your procedures is that I would make the changes to netconf and then run /sbin/init.d/net start rather than bringing things up manually. My reasoning being that this will verify that the changes you made are correct and you won't run into a nasty surprise later on when you have a subsequent reboot.

Also, as Joseph mentioned, don't forget to define the default route...but if you're just moving the lan connection from lan0 to lan2, then this should already be taken care of.

-Santosh
Life is what's happening while you're busy making other plans
linuxfan
Honored Contributor

Re: Install of GELAN fiber nic

Hi Chris,

Yes change the interface name in /etc/rc.config.d/netconf from lan0 to lan2, once you know lan2 is working fine.

Since you are changing your primary NIC/IP do the change from the console.


-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Chris Fadrowski
Super Advisor

Re: Install of GELAN fiber nic

where is this default route? can someone tell me where to find and change this?
Joseph C. Denman
Honored Contributor
Solution

Re: Install of GELAN fiber nic

It is in the netconf file. You will see it toward the bottom. In your netconf file you will see entries like

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=xxx.xxx.xxx.xxx

You will need to change them accordingly.

INTERFACE_NAME[2]=lan2
IP_ADDRESS[2]=xxx.xxx.xxx.xxx


...jcd...
If I had only read the instructions first??
Santosh Nair_1
Honored Contributor

Re: Install of GELAN fiber nic

The default route is also defined in the /etc/rc.config.d/netconf file. Its usually towards the bottom of the file. Look for entries like:

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=""
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

Just put your default gateway in ROUTE_GATEWAY.

-Santosh
Life is what's happening while you're busy making other plans
Sachin Patel
Honored Contributor

Re: Install of GELAN fiber nic

Hi Chris,
We have one system with tow NIC one fibre and one normal.
/etc/rc.config.d/netconfig looks like this if you have two nic.

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.20.0.39
SUBNET_MASK[0]=255.255.0.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

#this is fibre
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=10.25.25.3
SUBNET_MASK[1]=255.255.248.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0

#Gateway that you are looking for
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.20.254.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

For GELAN netstat -rn looks like this
10.25.24.0 10.25.25.3 U 2 0 lan1 9000

You can add gateway from command line
#route add default IP 1

Sachin
Is photography a hobby or another way to spend $