Operating System - HP-UX
1834499 Members
2821 Online
110068 Solutions
New Discussion

Enable Built-in NIC On The Fly?

 
SOLVED
Go to solution
Justin Willoughby
Regular Advisor

Enable Built-in NIC On The Fly?


I have a need to enable the built-in NIC on our K570. This NIC will be used for direct access by the vendor for support. The vendor already has a dedicated line to us and currently goes over our network to get to this box. We want to have the vendor have to go over a private network to this box using the built-in NIC.

The question I have is, can I re-enable/configure this card without causing any problems while the system is up and running? We are running HP/UX 11.00.

This is a production box with 200+ users accessing it via a 10/100BaseT card.

Thanks!

- Justin
6 REPLIES 6
Santosh Nair_1
Honored Contributor

Re: Enable Built-in NIC On The Fly?

If the card is not currently being used, then you should be able to configure it using the ifconfig command. If you need to have the configuration restored on reboots, then you need to add the lan card configuration in /etc/rc.config.d/netconf.

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Sridhar Bhaskarla
Honored Contributor

Re: Enable Built-in NIC On The Fly?

Hi Justin,

This interface is always enabled . Do a lanscan and find out the corresponding lan device using the H/W path. Usually it defaults to lan0 but depends.

#lanscan
(Find out the lan device)
#ifconfig lan0 inet IP_Address netmask mask

Edit your /etc/rc.config.d/netconf and duplicate the existing entries, increase the index to the next integer and change them suitable to the new IP parameters. This will make the changes permanent.

You may need to add a static route.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
pap
Respected Contributor
Solution

Re: Enable Built-in NIC On The Fly?

Hi,
You can do your required task with NIC without disturbing the running machine. NIC remains enabled as long as configured properly.


You need to do following things.

1. edit the file /etc/rc.config.d/netconf and put all the required values like IP address, Gateway, Subnet mask....etc..etc....

2. Save the file.

3. Run following command
/sbin/init.d/net stop
/sbin/init.d/net start

4. Now check the card using
#lanscan
or

# ifconfig lan0

Ping any of the machine over the network and you are all set then.

-pap
"Winners don't do different things , they do things differently"
pap
Respected Contributor

Re: Enable Built-in NIC On The Fly?

Hi,

Just to let you know.

YOU DO NOT NEED TO REBOOT THE MACHINE .

-PAP
"Winners don't do different things , they do things differently"
Justin Willoughby
Regular Advisor

Re: Enable Built-in NIC On The Fly?

Pap,

Will not running /sbin/init.d/net stop
cause issues for who ever is connected to the box?

- Justin
Jeff Schussele
Honored Contributor

Re: Enable Built-in NIC On The Fly?

Justin,

Nope net stop/start leaves existing connections untouched - it will however prevent new connections until fully back up.

Rgds,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!