From owner-freebsd-questions@FreeBSD.ORG Wed Mar 13 15:37:27 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D8E7D8BD for ; Wed, 13 Mar 2013 15:37:27 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from outbound.ifdnrg.com (outbound.ifdnrg.com [193.200.98.76]) by mx1.freebsd.org (Postfix) with ESMTP id 8D69EF1C for ; Wed, 13 Mar 2013 15:37:27 +0000 (UTC) Received: from [192.168.1.105] (cpc15-sgyl30-2-0-cust460.18-2.cable.virginmedia.com [82.39.117.205]) (authenticated bits=0) by outbound.ifdnrg.com (8.14.5/8.14.5) with ESMTP id r2DFbQTD020781 for ; Wed, 13 Mar 2013 15:37:26 GMT (envelope-from paul@ifdnrg.com) Message-ID: <51409D39.6030107@ifdnrg.com> Date: Wed, 13 Mar 2013 15:37:29 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: questions@freebsd.org Subject: SOLVED /23 static routing question References: <51409444.1090803@ifdnrg.com> In-Reply-To: <51409444.1090803@ifdnrg.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 15:37:27 -0000 On 13/03/2013 14:59, Paul Macdonald wrote: > > Hi, > > I have added an IP of the 2nd group of 254 addresses in a /23. > > let's call them 100.100.98.0 and 100.100.99.0 > > what's the correct way to set up the routing table for this and how my > rc.conf should look > > Currently netstat shows something like the below > > Destination Gateway Flags Refs Use Netif Expire > default 100.100.98.254 UGS 0 111301074 bge0 > 100.100.98.0 link#1 U 0 1470707172 bge0 > > But i suspect i want: > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 100.100.98.254 UGS 0 111301074 bge0 > 100.100.98.0 link#1 U 0 1470707172 bge0 > 100.100.99.0 link#1 U 0 1470707172 bge0 > > or > 100.100.98.0/23 link#1 U 0 1470707172 bge0 > > restarting routing seemed to do this fine...:P /" FreeBSD will automatically identify any hosts (//test0//in the example) on the local Ethernet and add a route for that host, directly to it over the Ethernet interface, //ed0"// /http://www.freebsd.org/doc/handbook/network-routing.html