- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX 11.0: Configuring Mutliple Routes To Mult...
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-2003 11:23 AM
03-25-2003 11:23 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 11:32 AM
03-25-2003 11:32 AM
SolutionThere is one more thread today about the same thing.
You will need to use 'route add' command to add a route. For ex., Say you have a router 200.200.200.1 that can route to 210.210.210.0 network. If your 1000B-Sx interface has the IP 200.200.200.10, then you would run the following command to add the route to 210.210.210.0.
route add net 210.210.210.0 netmask 255.255.255.0 200.200.200.1 1
Since 200.200.200.1 is directly reachable through your Gigabit interface, the traffic to 210.210.210.0 network will go through it.
Your netconf will have
ROUTE_DESTINATION[x]="net 210.210.210.0"
ROUTE_MASK[x]="255.255.255.0"
ROUTE_GATEWAY[x]=200.200.200.1
ROUTE_COUNT[x]=1
Replace x with the next index in netconf file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 11:32 AM
03-25-2003 11:32 AM
Re: HPUX 11.0: Configuring Mutliple Routes To Multiple Lan Cards
route add destination source
If the route isn't valid it will return and error code. You are responsible for not setting up routes that will screw with the default routes.
Check them before you start with netstat -in
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 11:40 AM
03-25-2003 11:40 AM
Re: HPUX 11.0: Configuring Mutliple Routes To Multiple Lan Cards
route add net 10.0.0.0 192.168.100.2 255.0.0.0 1
(* route add net subnet_ip gateway mask hop_count *)
To be added in /etc/rc.config.netconf for bootup:
ROUTE_DESTINATION[1]="10.0.0.0"
ROUNT_MASK[1]="255.0.0.0"
ROUTE_GATEWAY[1]="192.168.100.2"
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""
Note the [indice] increases like an array indice.
You may have an issue with the default gateway sending all traffic to the primary lan. Apparently this is how routers and gateways work sometimes. Contact your router/gateway manufacturer about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2003 03:54 PM
03-25-2003 03:54 PM
Re: HPUX 11.0: Configuring Mutliple Routes To Multiple Lan Cards
If your problem is that you want to have a second default gateway for lan3 then HPUX allows you to turn on the strong end-system model in ndd (HPUX 10.3 or later) which is what you need if you insist on having a second default gateway dedicated to lan1. Unfortunately they did not bother to document it anywhere that I can find. The behavior of the Strong End-System Model is discussed in RFC 1122.
http://deesse.univ-lemans.fr:8003/Connected/RFC/1122/62.html
ndd -h ip_strong_es_model says:
Controls support for "Strong End-System Model" described in
RFC1122, Section 3.3.4.2. When enabled, packet source addresses
(and therefore interfaces on a multihomed host) affect selection
of a gateway for outbound packets. Set to 0 to disable; set to 1
to enable. [0,1] Default: 0 (disable)
In order to turn SESM on you have to:
ndd -set /dev/ip ip_strong_es_model 1
or better edit /etc/rc.config.d/nddconf
to add:
TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_strong_es_model
NDD_VALUE[0]=1
so it will stay after a reboot.
If HPUX supports the RFC 1122 then it must allow you to assign two default gateways tho again how you do it is not really well defined. I suppose it would simply be the same in /etc/rc.config.d/netconf as defining one default so it would look something like this:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.168.2.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="172.155.23.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
(IP addresses are from a previous post use your own.)
In your case you would need a default gateway assigned for each interface since the strong model requires it.
I assume the Strong ES Model would figure out which one went with which interface based on the IP addresses.
If you do
ndd -set /dev/ip ip_strong_es_model 1
first then you can probably get it to reread the netconf file with:
ined -c
otherwise you would have to reboot.
You can check whether it is working by doing a traceroute to this system from a device on the other side of the Lan3 router. If the traceroute reports the final address as that of lan3 then it worked if not it will show one of the other interface IPs.
Ron