Operating System - HP-UX
1847203 Members
2994 Online
110263 Solutions
New Discussion

Re: 2nd interface (Fast Ethernet) setup

 
Lawrence Mau
Occasional Advisor

2nd interface (Fast Ethernet) setup

We currently have a HP9000-800 HP-UX 10.20 with
a 10BT "lan0" ethernet card as primary.

There is a 100BT FastEthernet card installed that
appears to have (2) ports. Lanscan shows hardware installed, and also "sam"
shows it.

We want to make the new card the primary interface.

I have hooked up (100BT) to a different subnet to make sure the card will
function.
Now, I want to switch over from the 10BT to
the 100BT card, and am looking for the best possible
procedure since this is a production machine.

Here are the steps so far.

1. Shutdown "nfs-server"
2. Shutdown "sco-visual-fs server"
3. Check to make sure "automount" is off.
4. Shutdown "/sbin/init.d/net stop".
5. Either manually edit the /etc/rc.config.d/netconf
"or" use "sam?
6. Swap ethernet cables over.
7. Startup /sbin/init.d/net start
8. Startup "nfs-server".
9. Startup "sco-visual-fs server".

swlist shows:
J4253AA B.10.20.01 HP-PCI 100Mb LAN/9000
J3620BA B.10.20.07 100BT/9000 GSC for K and T Series

Thanks
10 REPLIES 10
Berlene Herren_1
Super Advisor

Re: 2nd interface (Fast Ethernet) setup

Lawrence, there are a couple of things to look for here. One, there are device
files associated with the 10MB card. Another thing is the default route is
also associated with lan0. Does "#ioscan -fkC lan" show the card as claimed?
My suggestion is to configure manually. Create another instance in
/etc/rc.config.d/netconf for the 100MB card, with a [1] instance. Remove
everything the that file to the right of the "=" for lan0, name, ip, etc. Then
reboot. If you configure the 100BaseT in Sam, nine times out of ten, it will
assign the station address to the "SPEED" line in /etc/rc.config.d/hp###conf
file and you will receive "invalid duplex" messages.

Also, you are showing two different software drivers loaded,one for a PCI
another for an HP-PB. Which is the card you have?

Berlene
Lawrence Mau
Occasional Advisor

Re: 2nd interface (Fast Ethernet) setup

The ioscan shows that the fast-cards are as listed
below.
lan 3 8/4/1/0 btlan4 CLAIMED INTERFACE PCI(10110009)
lan 4 8/4/2/0 btlan4 CLAIMED INTERFACE PCI(10110009)

I did try to manually shutdown the lan0 10BT card,
and then edit the /etc/rc.config.d/netconf and start
up the /sbin/init.d/net, but for some reason, even
though the lan4 card (fast-ethernet) shows in the
"up" status, it would not pass packets.
I did try to use the route -f add default
command, but it just wouldn't work.
Unfortunately, I didn't install the interface hardware or software, so it's
kind of confusing to know exactly
what has been done.
We also tried to reboot, but it didn't work either.
The interface card does light up with the green light
when we plugged it in.
Berlene Herren_1
Super Advisor

Re: 2nd interface (Fast Ethernet) setup

If you do a netstat -rn and look under destination for default, is your flag
UG? What interface is the route associated with?

Berlene
Lawrence Mau
Occasional Advisor

Re: 2nd interface (Fast Ethernet) setup

It appears that once we edited the /etc/rc.config.d/netconf file with the new
lan interface and rebooted it did work.

An unexpected problem showed up upon reboot.
The interface worked fine, but our DCE connections
(These go to the various terminals within the building)
we unable to work, so we went back to the orig. lan0
10B interface.
Berlene Herren_1
Super Advisor

Re: 2nd interface (Fast Ethernet) setup

Did you also edit the /etc/hosts file with the new interface?

Berlene
Lawrence Mau
Occasional Advisor

Re: 2nd interface (Fast Ethernet) setup

I incorrectly stated that we lost our DCE connections,
but meant to say, our "DTC" which run through a
serial port over to the control box, and then is
distributed out to various terminals.

We looked at the DTC manager but there isn't any
settings based on "lan" device.
Lawrence Mau
Occasional Advisor

Re: 2nd interface (Fast Ethernet) setup

We didn't edit the /etc/host because we were not
adding another interface, but simply setting up
lan3 as primary. We disabled lan0 of course., after
we edited the /etc/rc.config.d/netconf file.

Thanks
Berlene Herren_1
Super Advisor

Re: 2nd interface (Fast Ethernet) setup

In order to switch the instance of lan0 and lan1:


HW Address Net-Interface Name MAC type
56.1 lan0 ether
8 lan1 ether
1) create file called /tmp/hp. Now put in new instances that you want:
8 lan 0 <---where 8 is hw address of card & word LAN MUST be
there. 0 is NEW instance number.
56.1 lan 1 <---where 56.1 is hw address of card & word LAN MUST be
there. 1 is NEW instance number.
2) do a: ioinit -f /tmp/hp
3) then reboot
4) do a lanscan to verify new names now are correct.
5) then cd /dev
6) do a: insf -e
7) do a: lssf /dev/lan* look for correct devices files & instances
8) then modify netconf & make sure ip's are going to correct card
9) Reboot again
Lawrence Mau
Occasional Advisor

Re: 2nd interface (Fast Ethernet) setup

To review...

Whenever
1.) You add a ethernet interface and "want" it to
become the "primary".
2.) Then you have to do the procedure
of "changing the "instance" of the "lan" via the
method described?

I ask because we intend to populate all our HP's
with these 100BT cards.

Berlene Herren_1
Super Advisor

Re: 2nd interface (Fast Ethernet) setup

Only if your primary interface is originally a built in 10BaseT card (because
that has device files and the 100Bts do not).

Berlene