- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 2 IP address with one nic card
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-19-2004 06:22 PM
01-19-2004 06:22 PM
2 IP address with one nic card
lan0 192.168.0.XXX 255.255.255.0
lan0:1 68.82.XXX.XXX 255.255.255.0
my default gateway is 192.168.0.1
I updated the /etc/rc.config.d/netconf file with the information. but when I reboot the server either the server hungs when trying to configure the card or just fails and continue with the rest of rc scripts.
can someone giveme a idea of how can I approach this problem without install a second NIC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 06:27 PM
01-19-2004 06:27 PM
Re: 2 IP address with one nic card
I am sorry to disappoint you, but one nic, one address. Why do you need a second address at all? If you do, you need a second nic.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 06:29 PM
01-19-2004 06:29 PM
Re: 2 IP address with one nic card
This will work, but it is not supported:
ifconfig lan?:?
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 06:30 PM
01-19-2004 06:30 PM
Re: 2 IP address with one nic card
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 06:39 PM
01-19-2004 06:39 PM
Re: 2 IP address with one nic card
Instal a firewal in between and you don't need that second IP on this NIC.
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 06:45 PM
01-19-2004 06:45 PM
Re: 2 IP address with one nic card
I would not advise you to put two ipadresses on the NIC. It is better to set up NAT on the firewall if possible. The second problem you have is if your server is connected to a switch you must have multiple ip-ranges in the vlan. Or connect the system to a HUP. So it is performance / secutiry wise no good idea for a webserver.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 09:23 PM
01-19-2004 09:23 PM
Re: 2 IP address with one nic card
ifconfig lan0:1 68.82.XXX.XXX netmask 255.255.255.0
for LONG TIME use add an info to /etc/rc.config.d/netconf file about new virtual interface:
INTERFACE_NAME[1]="lan0:1"
IP_ADDRESS[0]="68.82.XXX.XXX"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="68.82.XXX.255"
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 09:34 PM
01-19-2004 09:34 PM
Re: 2 IP address with one nic card
for your information it is possible to configure two IP addresses on the same NIC card by APA (Auto Port Aggregation) and even on the same subnet:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/J4240-90016/J4240-90016_top.html&con=/hpux/onlinedocs/J4240-90016/00/00/1-con.html&toc=/hpux/onlinedocs/J4240-90016/00/00/1-toc.html&searchterms=apa&queryid=20040120-032752
I hope this helps you.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2004 11:08 PM
01-19-2004 11:08 PM
Re: 2 IP address with one nic card
I understand it differently than you. APA/link aggregation allows you to combine more than one nic under one address and balance the network traffic.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 01:33 AM
01-20-2004 01:33 AM
Re: 2 IP address with one nic card
The issue I think you have - is you want 1 to be internal and 1 for your WAN - won't work - how can you configure your hub/switch to route? With your DGW at 192.168.0.1 - that means 68.82.whatever can NOT go anywhere....
As others have suggested - you need 2 nics for this - or, a firewall that NAT's to your primary interface from the WAN...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 02:14 AM
01-20-2004 02:14 AM
Re: 2 IP address with one nic card
Thats done long term in /etc/rc.config.d/netconf as noted above.
The only possible issue is the two addresses are not compatible for some reason.
You can work that out by testing the configuration for lan0:1 and the ifconfig command.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com