csmgsarma -6 Newbie Poster

Hi all,
I want to add a route on Solaris machine for each IP I am pinging. I am added static route for each IP as here:

route add -net 10.116.80.21 -netmask 255.255.255.255 10.116.80.18[interface id 10.116.80.21, gateway = 10.116.80.18]
route add -net 10.116.80.23 -netmask 255.255.255.255 10.116.80.18
route add -net 10.116.80.25 -netmask 255.255.255.255 10.116.80.18
route add -net 10.116.80.27 -netmask 255.255.255.255 10.116.80.18
route add -net 10.116.80.29 -netmask 255.255.255.255 10.116.80.18


Actually I know that any interface ip in the network 10.116.80.0 needs to be routed to the gateway 10.116.80.18. so I tried this

route add net 10.116.80.0 10.116.80.18

But the former works and the later doesn't. I want to know what is going wrong here?
The address scheme I am following is Class C[mask = 255.255.255.0]

Any suggestions would be greatly appreciated.
Cheers
Sarma

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.