Problem
I want to add a route like:
# /etc/route add -netmask 255.255.255.0 -net 10.1.110.0 \
-gateway 192.168.246.65I get no error message but netstat shows:
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
10 192.168.246.65 UGS 0 0 net0which is a class A network and NOT the expected Class C network.
This has worked on previous OpenServer6 systems (MP1, MP2, and MP3).
Solution
You have to change the way you use the "route" command.
The following will work:# route add -net 10.1.110.0 -netmask 255.255.255.0 192.168.246.65or:# route add -net 10.1.110.0 -netmask 255.255.255.0 \
-gateway 192.168.246.65
or:# route add 10.1.110.0 -netmask 255.255.255.0 192.168.246.65or:# route add 10.1.110.0/24 192.168.246.65This will create a route like:# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
10.1.110/24 192.168.246.65 UGS 0 0 net0This issue has been reported to SCO Engineering.