1826498 Members
1612 Online
109692 Solutions
New Discussion

Re: route add

 
Helder Lopes
Occasional Advisor

route add

Hello I'm haveing some trouble using the route add in Tru 64.
I pretend that all the comunication that come from the IP address 10.0.2.0
go to 192.168.1.252.
The comand that I use for DOS is here :

route add 10.0.2.0 mask 255.255.255.0 192.168.1.252

# netstat -nr
Routing tables
Destination Gateway Flags Refs Use Interface
Netmasks:
Inet 255.0.0.0
Inet 255.255.255.0

Route Tree for Protocol Family 2:
default 192.168.1.254 UGS 18 69576688 tu0
127/8 127.0.0.1 UR 0 0 lo0
127.0.0.1 127.0.0.1 UH 0 0 lo0
192.168.1/24 192.168.1.1 U 35 92820637 tu0
224.0.0.9 127.0.0.1 UH 0 0 lo0

thanks
Helder Lopes
4 REPLIES 4
Michael Schulte zur Sur
Honored Contributor

Re: route add

Hi,

assuming that you use 5.x the syntax has changed.
Adding a Route
route [-nqvC] add [-net | -host] [family] destination[/bitmask] gateway [-link] [modifiers[args]]

You do not use netmask anymore instead you use the number of bits of the net part.
example 192.168.1.1/24 = netmask 255.255.255.0

See man route.

greetings,

Michael

Re: route add

Try this
route add -net 10.0.2/24 192.168.1.252


Ravi_8
Honored Contributor

Re: route add

Hi,

#route add default
never give up
Michael Schulte zur Sur
Honored Contributor

Re: route add

Helder,

could you solve the problem? If so could you please assign points to whose who tried to help?

thanks,

Michael
http://forums1.itrc.hp.com/service/forums/helptips.do?#28