Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 1995 16:50:32 +0800 (WST)
From:      "Stephen Darragh" <stephen@belgarath.it.com.au>
To:        freebsd-questions@freefall.cdrom.com
Subject:   Routing with subnets
Message-ID:  <m0riICu-0002185@belgarath.it.com.au>

next in thread | raw e-mail | index | archive | help
G'day...

Well, I solved my problem eventually.  :)

After playing with route get and noticing that the inserted netmask for
the subnet routes being added was 255.255.255.255 instead of
255.255.255.248, a few different people read the manual page carefully
and eventually spotted that the -netmask parameter had to come *after*
the destination (gateway) for it to be applied correctly (doh).

So the command :

route add -net 203.8.116.40 203.8.116.4 -netmask 255.255.255.248

works, whereas :

route add -netmask 255.255.255.248 -net 203.8.116.40 203.8.116.4

does not work.

... Stephen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0riICu-0002185>