Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding route

kunjuttan
Super Advisor

Adding route

Hi
How to add a route to my hp-ux11.23 server?
netstat -rn output is the following
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.8.133 172.16.8.133 UH 0 lan0 4136
172.16.8.0 172.16.8.133 U 2 lan0 1500
172.250.0.0 172.16.8.1 UG 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 4136
default 172.16.8.200 UG 0 lan0 1500
4 REPLIES
Stephan.
Honored Contributor

Re: Adding route

For a persistent route you need to edit the /etc/rc.config.d/netconf

Using it only temporary have a look at 'man route'

f.e.
/usr/sbin/route add [net|host]destination [netmask mask] gateway [count] [source src]

hth
Stephan
kunjuttan
Super Advisor

Re: Adding route

How can I check if any routes are added currently???
Michal Kapalka (mikap)
Honored Contributor

Re: Adding route

hi,

if you add aditional route you can check it with the command :

netstat -nr


mikap

Steven Schweda
Honored Contributor

Re: Adding route

> How can I check if any routes are added
> currently???

Compare the routes in the start-up script
("/etc/rc.config.d/netconf") with the current
route list ("netstat -rn")? (One of us seems
to be missing something obvious.)