1829461 Members
2193 Online
109992 Solutions
New Discussion

Routing Tables

 
SOLVED
Go to solution
Brian Brown_1
New Member

Routing Tables

In versions previous to HP/UX 11 there was a file called 'rc.net'. This was the file the routing table information was stored.
What in version 11 did they replace 'rc.net' with? Where can i find this information?
7 REPLIES 7
Paul Hite
Trusted Contributor

Re: Routing Tables

The routes are now in /etc/rc.config.d/netconf.
Sachin Patel
Honored Contributor

Re: Routing Tables

As per I know in 10.20 and 10.10 it is in /etc/rc.config.d/netconf too.

Sachin
Is photography a hobby or another way to spend $
Brian Brown_1
New Member

Re: Routing Tables

As far as i know, the 'rc.net' file is where the "static" information is stored.
If i want a permanent routing table, what file is the "static" information stored?

I thought the /etc/rc.config.d/netconf was a definition file, which would be different than the rc.net file. True?

Any insight at all on this, do all systems have an 'rc.net' file?
Andreas Voss
Honored Contributor
Solution

Re: Routing Tables

Hi,

i think the /etc/rc.config.d/netconf is the right place for adding static routes.
Within this file there is a default entry that looks like:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="192.1.2.3"
ROUTE_COUNT[0]="0"
ROUTE_ARGS[0]=""

So if you have additional routes just copy these five lines and increment the index number in the brackets like:
ROUTE_DESTINATION[1]="net 192.2.3.0"
ROUTE_MASK[1]="255.255.255.0"
ROUTE_GATEWAY[1]="192.2.3.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
The example above would do:
route add net 192.2.3.0 netmask 255.255.255.0 192.2.3.1 1
where the Network is 192.2.3.0, the Netmask 255.255.255.0, the gateway for that net is 192.2.3.1 and the metric value is 1 (which means that the gateway is outside your box)

Regards

Andrew



Berlene Herren
Honored Contributor

Re: Routing Tables

Brian, you can also see your routing table by issuing:

#netstat -rn

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Paul Hite
Trusted Contributor

Re: Routing Tables

I have been searching for the source of your "rc.net". According to TCP/IP Illustrated, Volume 1, page 116, rc.net is used on SVR4 and AIX. I tend to think that HP never used this file, but I'm not sure of that.
rajsri
Frequent Advisor

Re: Routing Tables

you can add static route in gated.conf with static function , see man page of gated.conf