Operating System - HP-UX
1838497 Members
2546 Online
110126 Solutions
New Discussion

Re: Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

I'm going to change the hostname and IP address associated for a new hostname by changing the /etc/rc.config.d/netconf file and rebooting. The current initial IP configuration for the first entry, i.e. [0], is not the lan card I want to use for the box. It is not currently a 100 BT interface and it points to a different network. Should I make sure that the primary network interface card I want to use be the first entry or does it make any difference? Does order in netconf matter?

When using sam, the value for default gateway always shows the value for subscript [0].

Another question. Are there any issues of not using sam or set_parms to change the hostname and primary IP address? Is changing the netconf file and rebooting sufficient?

Thanks in advance... jack...
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

Jack,

It doesn't matter what card you want to use as your primary. So go for it.

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

Hi Jack,

1) The order in /etc/rc.config.d/netconf file matters only when both your network cards are configured on the same subnet. In that case the order matters in the case of incoming and outgoing packets. But in your case, as it is on different subnets, the order doesn't matter. However, if you want you can configure your cards as lan0 or lan1.


2) There is no problem in changing IP address and hostname using netconf file. But when using SAM and set_parms, you don't have to worry about any other details. The command will do everything on it's own. But remember to edit entries in /etc/hosts file, when you edit the netconf file.

Good luck !
Shiju
Life is a promise, fulfill it!
Ron Kinner
Honored Contributor

Re: Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

The [x]'s used for route destinations and ip address assignments are not related. You just need to make sure that you start with 0 and use consecutive numbers in each case. It does not matter to the routing which interface is listed first in the ip address section.

The following may be of interest tho I hope you won't need it:

From
http://www.uni-karlsruhe.de/Uni/RZ/Betriebssysteme/HP-UX/doc/interworks/Tech/sun_hpux_interop/chap07_tcpip.html

7.6 Troubleshooting Hostname Changes
When changing hostname or other network configuration, the following list may help to verify proper operation or to track down a configuration error:

Does /etc/hosts have the correct hostname and IP address?
If using DNS, does /etc/resolv.conf reflect changed IP addresses, if necessary, for the DNS server(s)? Has the DNS nameserver administrator been informed about changed IP address and/or hostname?
If the machine is a DNS server, either run hosts_to_named or edit the db.* files by hand if needed and re-start DNS.
If the machine is an NIS client and not a server, has the NIS Master server administrator been informed of the change, or has /etc/hosts been edited on the NIS master server to reflect the new hostname or IP address?
If changing IP addresses, were any changes necessary to /etc/bootptab? Was it necessary to re-configure any network printers and X-terminals that boot with bootp?


Ron
Jack C. Mahaffey
Super Advisor

Re: Plan to change Hostname and base IP address for box. Does primary lan card entry need to 1st entry?

Thanks to all. Got what I needed... :)