Operating System - HP-UX
1832910 Members
2734 Online
110048 Solutions
New Discussion

Regarding lan interface...

 
SOLVED
Go to solution
srinu_1
Frequent Advisor

Regarding lan interface...

Hi all,

In one of my hp server(model:9000/800/D390 & OS:11.11i) has two LAN interfaces are there.(lan0 and lan1).
I assigned ipadd. to lan1.After restarting the net services I am geeting the following error.Please find the details below..

bash-2.04# ifconfig lan1
lan1: flags=843
inet 161.85.20.130 netmask ffff0000 broadcast 161.85.255.255
bash-2.04# ifconfig lan0
ifconfig: no such interface
bash-2.04# /sbin/init.d/net stop
bash-2.04# /sbin/init.d/net start
Error:lan0 interface IP address already in use.
bash-2.04#


Plese find the lanadmin command output also.

Enter command: display

LAN INTERFACE STATUS DISPLAY
Mon, Jul 24,2006 14:00:41

PPA Number = 0
Description = lan0 Hewlett-Packard LAN Interface Hw Rev 0
Type (value) = ethernet-csmacd(6)
MTU Size = 1500
Speed = 10000000
Station Address = 0x80009046d0a
Administration Status (value) = up(1)
Operation Status (value) = down(2)
Last Change = 100
Inbound Octets = 526064
Inbound Unicast Packets = 0
Inbound Non-Unicast Packets = 0
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 0
Outbound Octets = 789096
Outbound Unicast Packets = 4026
Outbound Non-Unicast Packets = 0
Outbound Discards = 7
Outbound Errors = 0
Outbound Queue Length = 0
Specific = 655367

Press to continue


Why it's showing lan0?.Where is the wrong?.Please give me your suggestions on this.

Regards,
srinu.
9 REPLIES 9
Torsten.
Acclaimed Contributor

Re: Regarding lan interface...

Have a look at your netconf file. It looks like you defined the same IP address to lan0 and lan1 or at least the address you defined for lan0 is in use by another system. Thats why you get

Error:lan0 interface IP address already in use


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!   
Karsten Löperick
Valued Contributor
Solution

Re: Regarding lan interface...

Hello srinu,

just 2 ideas,
have you checked your
-/etc/rc.config.d/netconf (IP Adress config lan0/lan1 )
-/etc/rc.config.d/hpetherconf (or hpGSC100conf - depends of your lan-card type)
here you must setup e.g. the MAC-Adress for the appropriate IP-Adress )
Both files must be written with the correct settings ( lan0 and lan1 ). Please have a look or share those files to the forum.

Best regards
Karsten
Nothing is impossible
srinu_1
Frequent Advisor

Re: Regarding lan interface...

Hi,
Please find the two files contents below...
#vi /etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=161.85.20.130
SUBNET_MASK[0]=255.255.254.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

and
#vi /etc/rc.config.d/hpethers


# interfaces
#
# HP_ETHER_INTERFACE_NAME Name of interface (lan0, lan1...)
# HP_ETHER_STATION_ADDRESS Station address of interface
# configured through lanadmin(1m)
#
# The interface name, major number, card instance and nmid may be
# obtained from the lanscan(1m) command.
#
# The station address is set through the lanadmin(1m) command.
#
#####################################################################

HP_ETHER_INTERFACE_NAME[0]=
HP_ETHER_STATION_ADDRESS[0]=

###########################################################################
# The HP_ETHER_INIT_ARGS are reserved by HP. They are NOT user changable.

HP_ETHER_INIT_ARGS="HP_ETHER_STATION_ADDRESS"


# End of hpetherconf configuration file


I think Directly editing this files not good way.How to change this lan0 to lan1 in the netconf file.

Regards,
srinu.
melvyn burnard
Honored Contributor

Re: Regarding lan interface...

well there is your problem, you have configured lan0 and lan1 with the same Ip address.
If you wish to use lan1 and not lan0, edit the netconf file and replace lan0 with lan1.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Mancboy
Valued Contributor

Re: Regarding lan interface...

Hi Srinu,
you are definitely trying to assign the same IP address to both network cards (I'm not too sure if HPUX supports bonded cards).
Or are you trying to have a failover IP address as per serviceguard or solaris?

But, you can (and are encouraged) to edit the netconf file - this isn't windows.

If you're too wary of editing the file by hand, then SAM will guide you through the network setup.

But please, have a trawl through the file. Understanding how it all hangs together (now) will save you time later in life :-)
Jaime Bolanos Rojas.
Honored Contributor

Re: Regarding lan interface...

srinu,

Also, here you can see the main difference between Unix and other OS's, will will tell you what is wrong with your system.
In this case you got this error:
Error:lan0 interface IP address already in use.
Just by taking a look at it, you know that you assign the same ip address twice, which as you already know is not good, becuase Ip's are the location for a machine ( the address ) and two machines can not be on the same place.

Regards,

Jaime.
Work hard when the need comes out.
Karsten Löperick
Valued Contributor

Re: Regarding lan interface...

Hi srinu,

dont'worry about editing those files!
1. get MAC Adresses via lanscan
2. edit netconf
2.1 Duplicate all lines from INTERFACE_NAME[0] to DHCP_ENABLE[0]
2.2 Replace the [0] brackets with [1] and setup the right Interfacename and IP-Adress !
2.3 save
3. edit hpethers
3.1 duplicate the 2 lines HP_ETHER_INTERFACE[0] and HP_ETHER_STATION_ADRESS[0]
3.2 Replace the [0] brackets with [1] and put the right MAC Adress to the right Interface
3.3 save

Restart your network - must be OK now

Best regards

Karsten
Nothing is impossible
rick jones
Honored Contributor

Re: Regarding lan interface...

Unless you have some esoteric reason to do so, don't go overriding MAC addresses for NICs, so leave the ethers stuff out.

As for a question raised mid-thread, HP-UX does support bonding interfaces. It is called link or port aggregation and the software is called Auto Port Aggregation or APA. Should be details about it at docs.hp.com
there is no rest for the wicked yet the virtuous have no pillows
srinu_1
Frequent Advisor

Re: Regarding lan interface...

Thanks for your information.
now it's working fine.I assigned points to every one.

regards,
srinu.