Operating System - HP-UX
1847203 Members
3198 Online
110263 Solutions
New Discussion

Re: Adding a route statement - 11.0

 
SOLVED
Go to solution
Chet Woods
Frequent Advisor

Adding a route statement - 11.0

I am trying to add a route statement to my server. It will add but, it is giving me a subnet mask of 255.255.255.255, and I put in 255.255.255.0. Anyone know how I can change this or get it to take the right subnet?

Thanks,
Chet
4 REPLIES 4
Alan Riggs
Honored Contributor

Re: Adding a route statement - 11.0

route add net xxx.xxx.xxx.xxx netmask 255.255.255.0
Alan Riggs
Honored Contributor
Solution

Re: Adding a route statement - 11.0

oops -- ignore that. Brain cramp.

route add net xxx.xxx.xxx.xxx netmask 255.255.255.0 XXX.XXX.XXX.XXX 1

(where xxx=destination & XXX=gateway)
Chet Woods
Frequent Advisor

Re: Adding a route statement - 11.0

Ok, I tried that 2 different ways:
route add net 10.xx.xx.0 10.xx.xx.5 netmask 255.255.255.0
and:
route add net 10.xx.xx.0 gateway 10.xx.xx.5 netmask 255.255.255.0

Neither worked

Chet Woods
Frequent Advisor

Re: Adding a route statement - 11.0

Thanks Alan, the second way worked. I sure do appreciate it.

Chet