HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: routing to a device.
Operating System - HP-UX
1834930
Members
2663
Online
110071
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-07-2003 01:12 AM
03-07-2003 01:12 AM
Hey,
When using a computer with Linux, I can plug in 1 NIC and configure it with "ifconfig eth0 10.0.14.122 netmask 255.255.255.0 broadcast 10.0.14.255". So the computer is working on the network 10.0.14.0. When now a visitor plugs in his laptop with IP-adress 125.23.56.7 and mask 255.255.255.0, I just have to adjust a route on my Linux machine with "route add -net 125.23.56.0 netmask 255.255.255.0 dev eth0". So when the Linux machine has to look foor the IP-adress I told him to look for it on the interface eth0.
Is there is something equivalent on hp-ux 10.20, because the man pages don't speak about a device just about a gateway, but that isn't what I need.
So the question is: can I say to unix to route to a device (lan0) not knowing what else ip-adresses or gateways are configured.
When using a computer with Linux, I can plug in 1 NIC and configure it with "ifconfig eth0 10.0.14.122 netmask 255.255.255.0 broadcast 10.0.14.255". So the computer is working on the network 10.0.14.0. When now a visitor plugs in his laptop with IP-adress 125.23.56.7 and mask 255.255.255.0, I just have to adjust a route on my Linux machine with "route add -net 125.23.56.0 netmask 255.255.255.0 dev eth0". So when the Linux machine has to look foor the IP-adress I told him to look for it on the interface eth0.
Is there is something equivalent on hp-ux 10.20, because the man pages don't speak about a device just about a gateway, but that isn't what I need.
So the question is: can I say to unix to route to a device (lan0) not knowing what else ip-adresses or gateways are configured.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 01:46 AM
03-07-2003 01:46 AM
Re: routing to a device.
I think you will need to know the router port address at your end (10.0.14.x) and will need to add that while doing route add. In HP, I have not seen doing route add other than using remote gateway address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 03:41 AM
03-07-2003 03:41 AM
Re: routing to a device.
I have to admit, I'm affraid I didn't get exactly what do you mean.
However as I've read your example I see that you want to add another network for routing for specified NIC.
In your example isn't this what are you lookig for?:
route add net 125.23.56.0 netmask 255.255.255.0 10.0.14.122 0
The last two arguments say:
first: route it through the interface of this IP; second: this is local network rather that gateway.
Good luck
Adam
However as I've read your example I see that you want to add another network for routing for specified NIC.
In your example isn't this what are you lookig for?:
route add net 125.23.56.0 netmask 255.255.255.0 10.0.14.122 0
The last two arguments say:
first: route it through the interface of this IP; second: this is local network rather that gateway.
Good luck
Adam
I do everything perfectly, except from my mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 05:36 AM
03-07-2003 05:36 AM
Solution
When I need to do stuff like this, I usually just alias the interface;
(on HP-UX) ifconfig eth0 alias 125.23.56.1 netmask 255.255.255.0
...and it works.
But I also run dhcpd, so foreign laptops and such get assigned addresses in my range.
-Vince
(on HP-UX) ifconfig eth0 alias 125.23.56.1 netmask 255.255.255.0
...and it works.
But I also run dhcpd, so foreign laptops and such get assigned addresses in my range.
-Vince
No matter where you go, there you are.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP