- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Different IP adresses on the same Ethernet port.
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
03-25-2004 01:16 AM
03-25-2004 01:16 AM
Is it possible to configure two different IP addresses belonging to two different subnets on the same Ethernet card?
I mean a netconf file like this:
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="192.170.121.84"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_NAME[1]="lan0"
IP_ADDRESS[1]="192.170.100.71"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
where lan0 is the same: /dev/lan0
Thanks a lot!
Simone
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:22 AM
03-25-2004 01:22 AM
Re: Different IP adresses on the same Ethernet port.
wonder how you would use this NIC?
Do you use some sort of Y-cable? ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:24 AM
03-25-2004 01:24 AM
SolutionUsing lan0 twice will give you problems. How will HP-UX know which one is which if you specify lan0? You can make multiple virtual addresses by adding :1, :2 and so on.
So this should work:
INTERFACE_NAME[1]="lan0:1"
IP_ADDRESS[1]="192.170.100.71"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]=0
HTH,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:31 AM
03-25-2004 01:31 AM
Re: Different IP adresses on the same Ethernet port.
Since the subnets are different could it bring any problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:37 AM
03-25-2004 01:37 AM
Re: Different IP adresses on the same Ethernet port.
Oeh. Missed that one! Subnets need to be the same as far as I know. You can try this, make sure that your traffic can be routed, I don't see any other option I'm afraid...
Let me know how this works out?
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:39 AM
03-25-2004 01:39 AM
Re: Different IP adresses on the same Ethernet port.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2004 11:49 PM
04-08-2004 11:49 PM
Re: Different IP adresses on the same Ethernet port.
You create subinterface like lan0:1 ,
and assign the IP address to this interface , you can assign the IP address of other subnet . I hope you must have shortcircuited the two subnet, which is not a good practice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2004 12:10 AM
04-09-2004 12:10 AM
Re: Different IP adresses on the same Ethernet port.
Looking at your IP & Subnet mask I can see they are of two diffrent TCP/IP network !. How will you wire a single Ethernet interface to two Physical Networks ?.
What is your requirement here?.
Regds,
Kaps