System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Tried to add lan1 to network, but netconf has extra lan1 lines

SOLVED
Go to solution

Tried to add lan1 to network, but netconf has extra lan1 lines

On rx2600 HP-UX 11i v3. nwmgr showed lan0 (intl100) and lan1 (igelan) Interface both being UP. "ifconfig lan0" gives IP address, etc., but "ifconfig lan1" gives "ifconfig: no such interface". In SMH, selected  Tools -> Network Interfaces Configuration -> Network Interface Cards (checked lan1), then -> View/Modify IP Attributes -> Enable DHCP button

 

The /etc/rc.config.d/netconf  now shows:

INTERFACE_NAME[1]=lan1
DHCP_ENABLE[1]=0

INTERFACE_NAME[2]="lan1"

IP_ADDRESS[2]=""
SUBNET_MASK[2]=""
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]="1"
INTERFACE_MODULES[2]=""

 

My understanding is that after a reboot, I will have an IP address for lan1, as well as a netmask and broadcast address. But I am concerned that there are two lan1 entries. So, I will hold off on the reboot hoping to get the right steps from this forum. I recall that before these SMH steps, there was a two line entry for lan1. Should I have deleted those two lines before the SMH steps?

 

Aside: LAN Admin Guide said "If you are adding logical interfaces to a card type, choose Add IP Logical Interface". But, since that option was desensitized, I chose "View/Modify IP Attributes", and saw the Enable DHCP button, which I selected. What does the Add IP Logical Interface option mean? Why was it desensitized?

 

Thanks in advance,

  Paul

8 REPLIES
Ajin_1
Valued Contributor

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

Hi
Post the o/p
#ioscan funkC lan
#cat /etc/rc.config.d/netconf
#cat /etc/hosts
#ifconfig lan1
#ifconfig lan2
Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

Hi Ajin,

    Here are the outputs. Thanks. (Also added nwmgr output.) 

    I saw something about ifconfig plumb. Can you tell me how do I know when I need to use this option

       - that is, what output would indicate that this command is needed?

 

# ioscan funkC lan
ioscan: Only one devfile allowed
…  Usage info, so I got this next one to work (without the 'u' option):

 

# ioscan -fnkC lan
Class     I  H/W Path  Driver  S/W State   H/W Type     Description
====================================================================
lan       0  0/0/3/0   intl100   CLAIMED     INTERFACE    Intel PCI Pro 10/100Tx Server Adapter
lan       1  0/1/2/0   igelan    CLAIMED     INTERFACE    HP PCI 1000Base-T Core

 

# nwmgr
Name/          Interface Station          Sub-   Interface      Related
ClassInstance  State     Address        system   Type           Interface
============== ========= ============== ======== ============== =========
lan0           UP        0x00306E4A2388 intl100  100Base-TX
lan1           UP        0x00306E4A12C3 igelan   1000Base-T



# cat /etc/rc.config.d/netconf
# netconf:  configuration values for core networking subsystems
# @(#) netconf $Date: 2007/10/05 20:09:28 $Revision: r11.31/1 PATCH_11.31 (PHNE_36281)

 

HOSTNAME="rx2600Svr"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

 

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=17.110.131.32
SUBNET_MASK[0]=255.255.252.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1
INTERFACE_MODULES[0]=""

# ROUTE_DESTINATION[0]=default
# ROUTE_MASK[0]=""
# ROUTE_GATEWAY[0]=""
# ROUTE_COUNT[0]=""
# ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""

 

GATED=0
GATED_ARGS=""

 

RDPD=0

 

RARPD=0

 

DEFAULT_INTERFACE_MODULES=""

 

LANCONFIG_ARGS[0]=ether
ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=17.110.128.1
ROUTE_COUNT[0]=1

 

INTERFACE_NAME[1]=lan1
DHCP_ENABLE[1]=0
INTERFACE_NAME[2]="lan1"
IP_ADDRESS[2]=""
SUBNET_MASK[2]=""
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]="1"
INTERFACE_MODULES[2]=""

 

# cat /etc/hosts
# @(#)B.11.31_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
17.110.131.32   rx2600Svr
127.0.0.1       localhost       loopback


# ifconfig lan1
ifconfig: no such interface
# ifconfig lan2
ifconfig: no such interface
# ifconfig lan0
lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
        inet 17.110.131.32 netmask fffffc00 broadcast 17.110.131.255

 

 

Bill Hassell
Honored Contributor

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

The netconf file has several errors. SMH is not smart enough to figure out the mistakes. That's why I always configure the netconf file by hand. Also, I group all LAN definitions together, followed by routing information. Unfortunately, tools like SAM and SMH simply append new entries. So remove all these entries:

 

INTERFACE_NAME[1]=lan1
DHCP_ENABLE[1]=0
INTERFACE_NAME[2]="lan1"
IP_ADDRESS[2]=""
SUBNET_MASK[2]=""
BROADCAST_ADDRESS[2]=""
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]="1"
INTERFACE_MODULES[2]=""

Now add some comments about LAN0 and then LAN1 (and LAN2, etc as needed). To keep some sanity about setting the LAN settings, use the same shell index as the LAN number, ie LAN0 will be ...[0]= and LAN1 should be ...[1]= and so on, something like this:

 

 ## lan0 settings
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=17.110.131.32
SUBNET_MASK[0]=255.255.252.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""

## lan1 settings

INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=12.23.45.67
SUBNET_MASK[1]=255.255.252.0
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
INTERFACE_MODULES[1]=""

## lan2 settings

INTERFACE_NAME[2]=lan2
IP_ADDRESSES[2]=23.45.67.89
...and so on...

 The above example uses a dummy IP addresses for lan1 and lan2, but you get the idea.

 

Also, you had DHCP set but also assigned an IP address. I don't think you want DHCP set=1.

 

 

 

 

 



Bill Hassell, sysadmin

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

Thanks Bill for the info. Nice to know about how smart SMH is.
I do not have an IP address for lan1. So, it has to be enabled for DHCP. In that case, how would you recommend I fill out the netconf file for lan1? Should it be similar to what SMH produced:

 

I would delete the first two line that currently exist for lan1, namely remove:

INTERFACE_NAME[1]=lan1
DHCP_ENABLE[1]=0

 

Then change the index from 2 to 1 for the remainder:

INTERFACE_NAME[1]="lan1"
IP_ADDRESS[1]=""
SUBNET_MASK[1]=""
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]="1"
INTERFACE_MODULES[1]=""

 

The network administrator is no longer at the HP office, and does not remember whether lan1 was on the same network as lan0  - another good reason for using DHCP.

 

I read in the ifconfig man page "By default, the plumb operation is done automatically when an IP address is specified for an interface." I take it then that if I use DHCP to obtain the IP address, then I do not need to run the ifconfig plumb.

 

As far as lan0 goes with DHCP enabled, all I can say is that I have connectivity to the server with no glitches. I know that the network administrator did not give this server the IP address. This was the address given when HP-UX 11.23 was installed; and then HP-UX 11.31 was cold-installed, so maybe that address was included in the cold-install.

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

>> "This was the address given when HP-UX 11.23 was installed"

 

Just wanted to rewrite this to better clarify - should be:

"DHCP was enabled to generate the address when HP-UX 11.23 was installed"

I was told to keep using DHCP.

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

Looking further re: DHCP for lan0 -
# cat /etc/auto_parms.log
Mar 13 03:52:30: Mounting filesystems ...
Mar 12 22:52:32: The /tmp/EFI_SYSINFO.txt file does not exist.
Mar 12 22:52:33: dhcpclient is managing lease(s) for: lan0
Mar 12 22:52:33: No reply received (or DHCP disabled) for: lan1
Mar 12 22:52:33: DHCP is disabled for: lan1

So, from this, it looks like lan0 is actually DHCP controlled.
Bill Hassell
Honored Contributor
Solution

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

You are correct. If DHCP is needed, then leave the IP address ="" and the address will be supplied automatically. It is fairly unusual to have servers with DHCP addresses. This would make it complicated to use the second LAN card. The hostname would have to be setup and available from the DHCP server. Otherwise, the address may change at every reboot.



Bill Hassell, sysadmin

Re: Tried to add lan1 to network, but netconf has extra lan1 lines

Thanks Bill for your confirmation. After the reboot, the system modified the netconf file for lan1 by adding in the new IP_ADRESS[1] and SUBNET_MASK[1]. DHCP_ENABLE[1]="1" remained the same. This platform is being used as a workstation at the moment, so DHCP usage is acceptable. The system also modified the /etc/hosts file, adding in the new IP Address. But since the name was the same as the other one, I modified the new entry with a new name.

 

Regards,

  Paul