Operating System - HP-UX
1836233 Members
1965 Online
110096 Solutions
New Discussion

should i configure NETWORK CARD using SAM?

 
SOLVED
Go to solution
bunty.....
Frequent Advisor

should i configure NETWORK CARD using SAM?

Hi,
I need to configure another IP address on secondary NIC.

these are the details:
# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/8/1/0/4/0 0x00306EF3D7AA 0 UP lan0 snap0 1 ETHER Yes 119
1/0/1/1/0/4/0 0x00306E497FFE 1 UP lan1 snap1 2 ETHER Yes 119
1/0/10/1/0 0x00306EF4680E 2 UP lan2 snap2 3 ETHER Yes 119

# ifconfig lan0
lan0: flags=1843
inet 170.120.1.14 netmask ffffff80 broadcast 170.120.1.17

# ifconfig lan1
ifconfig: no such interface

# ifconfig lan2
ifconfig: no such interface

I need to configure the secondary NIC as follows:

lan1--170.120.1.15 (subnet:255.255.255.128)

how can i do this?
and in which files , i have to make changes & what changes

Once I tried with this:
#ifconfig lan1 170.120.1.15 netmask 255.255.255.128 broadcast 170.120.1.127 up

Then i got disconnected from my server,
I am not physicaly near to my server thatz why i faced a alot of problems.

should i configure this lan1 using SAM?

thanks
bunty
3 REPLIES 3
Victor Fridyev
Honored Contributor
Solution

Re: should i configure NETWORK CARD using SAM?

Hi,

An ifconfig LAN configuration will be lost after the first reboot. In order to restore it, you may either use SAM or edit the file /etc/rc.config.d/netconf

Look at it on the configuration array for the existing LAN, update the array index and insert needed values for the configured LAN. After that run
/sbin/init.d/net stop;/sbin/init.d/net start

The commands better to run from the computer console.
HTH
Entities are not to be multiplied beyond necessity - RTFM
Steven E. Protter
Exalted Contributor

Re: should i configure NETWORK CARD using SAM?

bunty,

You can not have two lan cards on the same network.

when ifconfig causes those results, the cause is usually two cards on one network.

Your netmask should permit that unless of course you have left no address space. Doubt that, because the one works.

Sam should produce exactly the same results if given the same parameters as the ifconfig command, unless ifconfig is broken.

You can also try it by direct edit of /etc/rc.config.d/netconf

I would however expect consistent behavior or I'd start wanting to check the machines patch level.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Devender Khatana
Honored Contributor

Re: should i configure NETWORK CARD using SAM?

Hi,

Yes you will get disconnected as you have assigned IPs of same subnet to two cards of you same system.

If you wish to configure this to achive load balancing than you can consider using "Auto Port Aggregation" which will server both your purposes load balance/failover protection.

More info about APA is available in this document

http://www.docs.hp.com/en/J4240-90033/J4240-90033.pdf

HTH,
Devender
Impossible itself mentions "I m possible"