- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need 2 functional NIC's on an HPUX machine
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 09:28 AM
01-05-2005 09:28 AM
need 2 functional NIC's on an HPUX machine
i have an HPUX machine with 2 NIC's, Lan0 is already configured with IP, Lan1 is not yet configured.
i need to do the following scenario, i need to be able to make lan1 functional using a different IP of lan0 and different gateway than that of lan0, and to start some services using this IP.
i was thinking of a script to do the following steps
1- ifconfig for lan1
2- configure the gateway for lan1
3- start the services i need to use with lan1
sooo do you think this is right ?? and how to do it ??
for example, i think of having "netconf" file with lan0 configuration, and another "netconf.old" for example with lan1 config, and when i need to enable and switch the configuration to lan1 i would rename and switch the files.
so do you think that these steps would do it ?? or the idea itself is nonacceptable ??
and in this case how to use both NIC's on the same machine to start services that bind on a specific IP like (OPENVIW NNM) on a specific IP
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 09:41 AM
01-05-2005 09:41 AM
Re: need 2 functional NIC's on an HPUX machine
I'm a firm believer in the command line, but SAM does have some benefits. Use them.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 10:02 AM
01-05-2005 10:02 AM
Re: need 2 functional NIC's on an HPUX machine
i dont think sam will be good for me since i need to use this in a script, so i will have to go for commands
second the NICS will not be on the same network, for example, 10.100.100.1 and 10.101.101.1
sooo they will not be on the same network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 12:02 PM
01-05-2005 12:02 PM
Re: need 2 functional NIC's on an HPUX machine
way to do this is to add an entry in
/etc/rc.config.d/netconf. Any time you don't
want lan1 to be up, you could just unplumb
it by :
# ifconfig lan1 down
# ifconfig lan1 unplumb
I don't think having 2 netconf files is a good idea;
everytime you want to switch, you need to bring
down the networking (and terminate all networking
connections with it).
Any service that's running on the system would
probably bind to all interfaces. If you want to
allow specific IP addresses to access your service,
use IPFilter system firewall to control connections.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 05:20 PM
01-05-2005 05:20 PM
Re: need 2 functional NIC's on an HPUX machine
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.100.100.1
SUBNET_MASK[0]=
BROADCAST_ADDRESS[0]=
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]=10.101.101.1
SUBNET_MASK[1]=
BROADCAST_ADDRESS[1]=
DHCP_ENABLE[1]=0
For the first time you may have to use ifconfig and plumb the second NIC also. Everytime after that (when the machine reboots) its automatically taken care.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2005 06:31 PM
01-05-2005 06:31 PM
Re: need 2 functional NIC's on an HPUX machine
Don't set the broadcast address to the gateway address.