- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to give the IP address for a single Network ca...
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
11-27-2008 03:18 AM
11-27-2008 03:18 AM
i want to give the 2 Ipaddress for a single Netowrk card and is it where will stored that IP details.
Pls anyone help to me....
Regards,
Unixguy.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:21 AM
11-27-2008 03:21 AM
SolutionMultiple IP addresses assigned to the same interface may be in different subnets. An example of an interface name without an IP index number is lan0. An example of an interface name with a IP index number is lan0:1. Note: specifying lan0:0 is equivalent to lan0.
A primary interface is an interface whose IP index number is zero. A secondary interface is an interface whose IP index number is non-zero.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:23 AM
11-27-2008 03:23 AM
Re: How to give the IP address for a single Network card?
ip details stored in the /etc/rc.config.d/netconf file. you can add seconday by using sam.
sam - networking and comm - network interface cards - choose your card and from actions add logical ip.
Hasan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:24 AM
11-27-2008 03:24 AM
Re: How to give the IP address for a single Network card?
ifconfig lan0:1 ip mask etc
if you wan't to make it permanent, in /etc/rc.config.d/netconf
something like:
IP_ADDRESS[1]=10.10.10.1
SUBNET_MASK[1]=255.255.252.0
INTERFACE_NAME[1]=lan0:1
BROADCAST_ADDRESS[1]=10.10.11.255
INTERFACE_STATE[1]=up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:26 AM
11-27-2008 03:26 AM
Re: How to give the IP address for a single Network card?
Hi,
Iam not able to understand,pls kindly give the step by step.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:57 AM
11-27-2008 03:57 AM
Re: How to give the IP address for a single Network card?
You can assign more than one ip address on single ethernet card.
You can do it through command line or manually editing the /etc/rc.config.d/netconf file.
But the easiest way is to do it through SAM.
Goto SAM --> Network interface cards --> Select the interface which you want to add second ip --> actions --> Add ip logical interface --> Here you can specifiy new ip address and hostname
If you do it through SAM you don't need to edit config file(netconf) manually. System will modify everything.
What actually happening here is, system is creating Logical interface(like lan0:1) over the physical interface(lan0) and assigning the new ip on it.
Hope you understand now.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 03:58 AM
11-27-2008 03:58 AM
Re: How to give the IP address for a single Network card?
ip :10.10.10.1
mask :255.255.252.0
you can do it by hand:
ifconfig lan0:1 10.10.10.1 netmask 255.255.252.0
And if you wan't to make it permanent:
vi /etc/rc.config.d/netconf
and you add at the end of the file:
IP_ADDRESS[1]=10.10.10.1
SUBNET_MASK[1]=255.255.252.0
INTERFACE_NAME[1]=lan0:1
BROADCAST_ADDRESS[1]=10.10.11.255
INTERFACE_STATE[1]=up
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 04:18 AM
11-27-2008 04:18 AM
Re: How to give the IP address for a single Network card?
Thanks a lot Friends,
I understood.
Thanks for ur kind reply.
Regards,
Unixguy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2008 04:26 AM
11-27-2008 04:26 AM
Re: How to give the IP address for a single Network card?
Thanks a Lot Friends,
I got the solution.
It's resolved.
Regards,
Unixguy.