Operating System - HP-UX
1837121 Members
5841 Online
110112 Solutions
New Discussion

Configuring new lan card with sam

 
radi_1
Frequent Advisor

Configuring new lan card with sam

Hi,
I have tried to configure a 100Mbs lan card using SAM and supplied new ip address and aliase name for it but SAM refused to configure it.Have I missed out on something?
also can I configure this card by command line without reboot?and what files do I need to edit?
Note;
I want to keep the built in 10mbs card configured.
Thanks.
never take simple maters for granted
6 REPLIES 6
Sanjiv Sharma_1
Honored Contributor

Re: Configuring new lan card with sam

Hi,

I think you have plugged in the UTP patch cord to the LAN card.

Check that there is a link between the LAN card and the Switch/Hub.

Then configure through sam it should be ok or else modify the /etc/rc.config.d/netconf file and put the values for your new lan card.

Thanks,
Everything is possible
Rajeev  Shukla
Honored Contributor

Re: Configuring new lan card with sam

I dont know what went wrong when you configured by SAM but ya you can surely configure it using command line. Use ifconfig command to do so.
use lanscan to find the interface name (say lan1)

then use

#ifconfig lan1 netmask up
this will assign the IP and bring up the card, you can then ping from other client if connected to network.
Also see the status if IP is assigned by
#netstat -in

Have a look on man pages of all these commands you have doubt.
This does not require reboot.

rajeev
Rajeev  Shukla
Honored Contributor

Re: Configuring new lan card with sam

Hi Sanjiv,
If you put in /etc/rc.config.d/netconf you'll have to start the network daemons or restart the server.

By he way what i posted will just configure that card till the machine is up to permanently assign this you'll definately have to put the values in netconf

Rajeev
Steven E. Protter
Exalted Contributor

Re: Configuring new lan card with sam

Few pointers:

1) Check the speed and duplex of the card before you start. Run lanscan to get the lan number then:

lanadmin -x #

replace the # with the number. lan0 is 0 etcetera

Now you know the thing is hooked up.

2) Test your configuration with ifconfig
ifconfig lan0 192.168.0.50 netmask 255.255.255.0 UP

See if it can talk to other children er, network cards via the ping command.

Take a look at the /etc/rc.config.d/netconf file I'm posting. You can cut and paste and change from this one and you'll be better off than using sam.

After changing netconf, you should boot, but you can stop and start the network

/sbin/init.d/net stop
/sbin/init.d/net start

This never works for me, don't know why. Go ahead and boot when you have recovery time in case you made a typo. You can back up the netconf file, but not in the same directory. this will confuse the system when it starts.

Here is my netconf

I skip the comments.

#section 1

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

#section 2
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.168.0.70"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

#section 3


ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.0.40"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""


The 0 inside the brakets stands for lan0

Give it a try.

I quote Bill Hassel, and he meant it humorously. "Real Sysadmins don't use GUI's"

I got hacked off when he said it, but it actually makes sense 95% of the time. You know it better when you learn the command line or config file. There is no sam in single user mode.

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
Ravi_8
Honored Contributor

Re: Configuring new lan card with sam

Hi

#ioscan -fnC lan

if the card is CLAIMED
#lanscan
must show the n/w card
#ifconfig lanX netmask
#/sbin/init.d net stop
#/sbin/init.d/net start

must start the new lan card

if the card is UNCLAIMED install patch bundles from recent support plus media, after a reboot lan card must be in CLAIMED state
never give up
radi_1
Frequent Advisor

Re: Configuring new lan card with sam

.Hi everybody
Here are more info.
1-the 100base card is of type EISA
2-I ran ioscan -fnC lan,two lan instances:
CLASS I DRIVER H/w state
lan 0 lan2 claimed #device file displayed
lan 1 btlan0 claumed # NO device file

Why there is no device file ?
3-When I ran ifconfig lan0 it shows lan0 is up
when I tried to bind the second lan card to new ip addr. using ifconfig lan1 >ip addrr< up
it says no such interface
only when i used the lan card name displayed by sam (btlan01) it hooked up the card with the new ip addr.
Because server reboot or stoping net was not possible at the time ,I did not edit the netcon file.I am realy puzzeled by the non-existance of device file in the first place.
any ideas.
NOTE:THE SERVER IS A 10.20/D-CLASS
thanks
never take simple maters for granted