1830504 Members
2406 Online
110006 Solutions
New Discussion

route add

 
zsujith
Frequent Advisor

route add

Hi,

Want to know how to do route add for IP address 10.125.0.10/26 in HP-Unix.

Regards
"The most wasted day is that in which we have not laughed."
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: route add

Shalom,

With any route, its the route command.

route add

In order to know what to put into the command, you need to talk to network administration and get the address of the network gateway.

Once you have that a simple check of the man page for route will give you examples and syntax.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Krastev
Honored Contributor

Re: route add

Use:

#route add 10.125.0.10 netmask 255.255.255.192 1

regards,
ivan
Steven Schweda
Honored Contributor

Re: route add

> #route add 10.125.0.10 netmask 255.255.255.192 1

With no "gateway", this might not work so
well. "man route" (look for "add") is good
advice.
F Verschuren
Esteemed Contributor

Re: route add

Long time ago...
comand line:
/usr/sbin/route add net 10.125.0.10 netmask 255.255.255.192 10.125.0.10 0

but do not forget to add it into /etc/rc.config.d/netconf
els you will lose your settings after a reboot!
Steven Schweda
Honored Contributor

Re: route add

By the way, does "10.125.0.10/26" actually
make any sense?

Do you mean that the network is
10.125.0.0/26, and the gateway is
10.125.0.10, or what?
Sandman!
Honored Contributor

Re: route add

Totally agree with Steven Schweda. It is hard to give the exact route add cmd for that IP w/o more info. Unless you just want the syntax do a man on route(1M). It would help if you posted the output of the routing table i.e.

# netstat -rn
Padma Asrani
Honored Contributor

Re: route add

hi

This is the command

route add 10.125.0.10 1

For more information refer to the man page of route.

Thanks
Padma
Steven Schweda
Honored Contributor

Re: route add

> This is the command
> [...]

Not likely.

> For more information refer to the man page of route.

_That_ is still good advice.