- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding lan interface...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2006 09:29 PM
07-23-2006 09:29 PM
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
Why it's showing lan0?.Where is the wrong?.Please give me your suggestions on this.
Regards,
srinu.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2006 09:33 PM
07-23-2006 09:33 PM
Re: Regarding lan interface...
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2006 09:40 PM
07-23-2006 09:40 PM
Solutionjust 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:05 AM
07-24-2006 12:05 AM
Re: Regarding lan interface...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:12 AM
07-24-2006 12:12 AM
Re: Regarding lan interface...
If you wish to use lan1 and not lan0, edit the netconf file and replace lan0 with lan1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:13 AM
07-24-2006 12:13 AM
Re: Regarding lan interface...
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 :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:32 AM
07-24-2006 12:32 AM
Re: Regarding lan interface...
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 02:01 AM
07-24-2006 02:01 AM
Re: Regarding lan interface...
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:50 PM
07-24-2006 12:50 PM
Re: Regarding lan interface...
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 06:30 PM
07-25-2006 06:30 PM
Re: Regarding lan interface...
now it's working fine.I assigned points to every one.
regards,
srinu.