- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problems with netconf file
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
03-23-2005 11:51 PM
03-23-2005 11:51 PM
We installed a new Gig fibre card in our RP5470 server running HPUX 11i.
I tried to change the netconf file so that the gig card would be lan0 (see the attached file).
But, when I restarted the network (/sbin/init.d/net stop/start), it complained about a duplicate IP for lan0 and did not complete the restart of the network.
I restarted the server and the boot process locked up when starting the SNMB Sub Agent.
Is there something wrong with the new netconf file?
Thanks
->lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x00306E1C0063 0 UP lan0 snap0 1 ETHER Yes 119
0/1/0/0 0x00306E4A8834 1 UP lan1 snap1 2 ETHER Yes 119
0/5/0/0 0x00306EF56524 2 UP lan2 snap2 3 ETHER Yes 119
->ioscan -fnC lan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 0/0/0/0 btlan CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0 /dev/lan0
lan 1 0/1/0/0 btlan CLAIMED INTERFACE HP A5230A/B5509BA PCI 10/
100Base-TX Addon
/dev/diag/lan1 /dev/ether1 /dev/lan1
lan 2 0/5/0/0 igelan CLAIMED INTERFACE HP A6847-60101 PCI 1000Ba
se-SX Adapter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2005 11:57 PM
03-23-2005 11:57 PM
Re: problems with netconf file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:01 AM
03-24-2005 12:01 AM
SolutionSo if you wish to assign the address that was on lan0 to the gigabit interface, i.e. lan2, that is the change yiou need to make.
Also, from the netconf file, you have one setup using array [0], and another using array [2].
You need to have no missing array numbers, so set the [2] to [1] in these lines:
INTERFACE_NAME[2]=lan2
IP_ADDRESS[2]=142.53.157.236
SUBNET_MASK[2]=255.255.255.0
BROADCAST_ADDRESS[2]=142.53.157.255
INTERFACE_STATE[2]=up
DHCP_ENABLE[2]=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:02 AM
03-24-2005 12:02 AM
Re: problems with netconf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:18 AM
03-24-2005 12:18 AM
Re: problems with netconf file
I was told by a tech at HP that only lan0 can use the word default for it's routing.
I did not know about the sequential array numbers. So, I have to use 0 then 1 and then 2, ...
OK thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:27 AM
03-24-2005 12:27 AM
Re: problems with netconf file
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
1/0/1/0/0/4/0 0x00306EA72B18 1 UP lan1 snap1 1 ETHER Yes
119
It's obviously lan1 and if you take a look at the attached netconf, you can see the default route.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:33 AM
03-24-2005 12:33 AM
Re: problems with netconf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 12:35 AM
03-24-2005 12:35 AM
Re: problems with netconf file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 02:33 AM
03-24-2005 02:33 AM
Re: problems with netconf file
Looks to me like what you need to do is move things around in your netconf. First define both interfaces then set your default route to what ever you want it to be. Currently you define lan0 then the default route and then lan2. It's no wonder that you can't use the default route you want since its network hasn't been defined at the time you try to use it. If you read the remarks in netconf you will see they really want you to finish defining networks before going on to the route definitions.
Lan0 is always the builtin lan so don't try and change it. Don't know that the [ ] numbers have to correspond with lanID but I know it will work with gaps in the [ ] sequence so using [0] for the lan0 and [2] for lan2 shouldn't hurt and is easier to keep straight.
Remember there is no connection between the [0] in the lan definitions and the [0] in the route definitions. These are two separate lists and the [numbers] are only used to group commands together.
Finally your second route statement makes no sense. Since the 142.53.22 network is on lan0 this traffic is local and needs no statement and certainly not one that attempts to send it to another router. You are essentially telling it that traffic to the default gateway really has to go to a different place which it doesn't understand.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 03:14 AM
03-24-2005 03:14 AM
Re: problems with netconf file
First of all, the default route does not have to be on the [0] interface.
I am not sure about the sequential numbering of the interfaces. But, for now, I decided to use interface [0] and [1].
I rebuilt my netconf file.
I put the internal 10/100 Mbps card as lan0, interface [0], and the gig card as lan1, interface [1].
I also configured the default route to use the Gig Card. But, it uses interface [0]. Does this matter?
Will this new file work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 03:21 AM
03-24-2005 03:21 AM
Re: problems with netconf file
Just remember, although the ROUT statements use [0], this does not mean they are tide to the lan you configured with [0], the important thing is what address you specify, and what route type etc.
The array is used simply to allow the start up scripts to go through each set of parameters, in an easy way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 03:22 AM
03-24-2005 03:22 AM
Re: problems with netconf file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2005 03:28 AM
03-24-2005 03:28 AM
Re: problems with netconf file
INTERFACE_STATE[1]=up
DHCP_ENABLE[2]=0
You want DHCP_ENABLE[1]=0
But that won't hurt anything.
What do you mean it still uses lan0?
What does
netstat -rn
show?
(You can't trust traceroute. It's been broken on HPUX since 11.0. Always uses lan0 and ignores the routing table. There is a ping option that works better. ping -o should show the first 9 hops.)
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 12:57 AM
03-25-2005 12:57 AM
Re: problems with netconf file
root@dolan> /usr/contrib/bin/traceroute
Version 1.4a5 with HP mods
Usage: traceroute [-dFInrvx] [-6] [-f first_ttl] [-g gateway] [-i iface]
[-m max_ttl] [ -p port] [-q nqueries]
[-s src_addr] [-t tos] [-w waittime]
host [packetsize]
Sorry, I know this is off the real subject, but just in case it helps anyone ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 01:11 AM
03-25-2005 01:11 AM
Re: problems with netconf file
If you look at the "stop" section of /sbin/init.d/net, the "stop" function doesn't really remove IP's from any interface, so when you re-ran it, you really were trying to give an IP to lan0 that what already assigned to a different interface.
As others have alluded to, changing netconf can't alter the PPA number assigned to an interface, it can only change which interface name you assign the IP to. So, you assigned the IP to lan0 which was probably still plugged into the wrong subnet you an invalid IP for that subnet. It hung because it couldn't reach any hosts using that subnet, like your DNS server or anyone else.
So, using lan2 for your gigabit card's name should work ok. If you feel you HAVE to change it, you may be able to use the "ioinit -f" command to re-arrange the "instance numbers" of the cards, which is where the PPA number comes from.
Good luck, hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 02:23 AM
03-25-2005 02:23 AM
Re: problems with netconf file
I use traceroute to find out where the system would naturally send a packet. If I have to tell it which interface to use then that defeats the purpose so I still maintain it's broken. Hey, Microsoft can get it right even if they spell traceroute wrong, why can't HPUX?
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2005 04:34 AM
03-25-2005 04:34 AM
Re: problems with netconf file
Your point is well taken. I'm just trying to point out that it's possible to use traceroute, it's not completely "broken".
At any rate, I hope BP is able to get his problem straightened out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 12:41 AM
04-01-2005 12:41 AM
Re: problems with netconf file
Last night, I was finally able to play with the server again.
With my new netconf file, everything works.