Operating System - HP-UX
1819682 Members
3849 Online
109605 Solutions
New Discussion юеВ

route added has UGH flags

 
SOLVED
Go to solution
Steve Lewis
Honored Contributor

route added has UGH flags

Hi nexperts,
A customer of mine has 10 lan interfaces on their serviceguard cluster.
1 heartbeat, 1 to the WAN outside of the cluster 4 others going to various places in the cluster with 4 standbys for them.
Routing is a bit of a headache for me in this instance, as you might imagine.
The problem is that a route I have added to the netconf file for an interface gets added to the routing table as a host type with flags UGH. This means that it doesn't work properly and we cannot transfer files to that host.

After the system has booted, I can add the route manually by typing:

route delete IP gateway-IP
route add net IP gateway-IP 1

So how do I add a 'net' type route to the netconf file? Because it is not acceptable to have to type in routes every time the system boots.


4 REPLIES 4
Jeff Schussele
Honored Contributor
Solution

Re: route added has UGH flags

Hi Steve,

It would look like this:


ROUTE_DESTINATION[1]="net xx.xxx.xxx"
ROUTE_MASK[1]="255.255.192.0"
ROUTE_GATEWAY[1]="xx.xxx.xxx.xx"
ROUTE_COUNT[1]="0"
ROUTE_ARGS[1]=""

Of course use the appropriate net & IP addresses. Subnet masks will vary - consult your network group.
And almost always a static route will have a zero hop count to direct it to the appropriate local I/F.
And don't forget to use a unique index value.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Cesare Salvioni
Trusted Contributor

Re: route added has UGH flags

Just a little correction to lines told before

ROUTE_COUNT[0]=1

if the gateway is not the host on which you set the route the hop count MUST be 1, not 0 !!!

Hope this helps
Sundar_7
Honored Contributor

Re: route added has UGH flags

I do believe the hop count must be 1 - a route to the network a particular NIC is configured, is automatically added to the routing table.

Say for example, a route to the 141.167.76.0 network is automatically added if your NIC is assigned an IP address of 141.167.76.X/255.255.255.0.

I assume you want to reach some other network using a intermediate gateway. So you would want to use the HOP count of 1.
Learn What to do ,How to do and more importantly When to do ?
Jeff Schussele
Honored Contributor

Re: route added has UGH flags

Although I masked my IPs for obvious security reasons, the gateway IS the local NIC & therefore the hop count should = 0.
In this case the route is for our Bulk Data network upon which our backups traverse. It's a supernet & no routing is required.

IF you are setting a static route to a net outside of a local super/subnet, THEN you'd use the IP of the router on the secondary super/subnet as the gateway and use a hop count of 1 of course.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!