HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: routing table with more than one NIC
Operating System - HP-UX
1838263
Members
3484
Online
110125
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
02-20-2003 08:39 AM
02-20-2003 08:39 AM
Hi,
I have a HPUX 10.20 box with two network cards. Each in on a different network. Lan0 is on the 193.178. network and Lan1 is on the 10.149. network.
When I view the routing table, it only shows me LAN1 routes. Can i specifically ask for the routing table for LAN0?
Also, how do I add routes for the LAN0 network, so they use LAN0 and only appear as if they came from LAN0 (i.e. 193.178. network). New routes are defaulting to LAN1's network.
I'd appreciate any help.
Thanks,
Dermot
I have a HPUX 10.20 box with two network cards. Each in on a different network. Lan0 is on the 193.178. network and Lan1 is on the 10.149. network.
When I view the routing table, it only shows me LAN1 routes. Can i specifically ask for the routing table for LAN0?
Also, how do I add routes for the LAN0 network, so they use LAN0 and only appear as if they came from LAN0 (i.e. 193.178. network). New routes are defaulting to LAN1's network.
I'd appreciate any help.
Thanks,
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 08:46 AM
02-20-2003 08:46 AM
Solution
Hi,
It is because the default route is specified through the IP of lan1.
You can define static routes. For ex., if there is a router 193.178.x.1 that can route to another network (say 200.200.200.0 then you would add the route
route add net 200.200.200.0 netmask 255.255.255.0 193.178.x.1 1
So all the packets destined to the network 200.200.200.0 will go through lan0.
To make it permanent, you would add the above into your /etc/rc.config.d/netconf.
ROUTE_DESTINATION[1]="200.200.200.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="178.x.1.1"
ROUTE_COUNT[1]=1
-Sri
It is because the default route is specified through the IP of lan1.
You can define static routes. For ex., if there is a router 193.178.x.1 that can route to another network (say 200.200.200.0 then you would add the route
route add net 200.200.200.0 netmask 255.255.255.0 193.178.x.1 1
So all the packets destined to the network 200.200.200.0 will go through lan0.
To make it permanent, you would add the above into your /etc/rc.config.d/netconf.
ROUTE_DESTINATION[1]="200.200.200.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="178.x.1.1"
ROUTE_COUNT[1]=1
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 09:04 AM
02-20-2003 09:04 AM
Re: routing table with more than one NIC
That did the trick. Thanks very much for your help.
Dermot.
Dermot.
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:17 AM
02-21-2003 11:17 AM
Re: routing table with more than one NIC
When/if you are able to update to 11.X, instead of having to add static routes (which you would still be able to do...) you could use ndd to set ip_strong_es_model to a value of "1" at which point route lookups include the source IP address. This tends to mean that you can have things like per-interface default routes etc etc.
ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt
ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt
there is no rest for the wicked yet the virtuous have no pillows
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