From owner-freebsd-questions Sat Feb 25 01:01:51 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id BAA15656 for questions-outgoing; Sat, 25 Feb 1995 01:01:51 -0800 Received: from belgarath.it.com.au (root@belgarath.it.com.au [203.8.116.3]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id AAA15610 for ; Sat, 25 Feb 1995 00:52:05 -0800 Received: by belgarath.it.com.au (Smail3.1.29.1 #5) id m0riICu-0002185; Sat, 25 Feb 95 16:50 WET Message-Id: Subject: Routing with subnets To: freebsd-questions@freefall.cdrom.com Date: Sat, 25 Feb 1995 16:50:32 +0800 (WST) From: "Stephen Darragh" X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 589 Sender: questions-owner@FreeBSD.org Precedence: bulk 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