From owner-freebsd-questions@FreeBSD.ORG Fri May 18 17:56:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2569116A401 for ; Fri, 18 May 2007 17:56:57 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id 0C60B13C45D for ; Fri, 18 May 2007 17:56:57 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hp6hE-0000k2-Ej for freebsd-questions@freebsd.org; Fri, 18 May 2007 10:56:56 -0700 Message-ID: <10687376.post@talk.nabble.com> Date: Fri, 18 May 2007 10:56:56 -0700 (PDT) From: georgedonnelly To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: me@georgedonnelly.com Subject: Static Routes Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 17:56:57 -0000 I have a small network at my colo provider. Colo Provider | My HP 2650 | | server1 serverN I want to setup static routes on my servers so that my colo provider won't bill me for traffic among my servers (backups, portsnap, cvsup, etc.). IOW, I want to route locally for my local traffic. I use FreeBSD 6.2 on my servers. I read the FreeBSD handbook on this and it looks like i should do this: route add -net 0.0.0/24 0.0.0.83 where 0.0.0/24 is the C class I have from my provider and 0.0.0.83 is the IP address of my server (one of them/any of them). However, this route appears to already exist as i get this error when running that route command: route: writing to routing socket: File exists add net 0.0.0: gateway 0.0.0.83: route already in table # netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 0.0.0.1 UGS 0 154237 em0 0.0.0/24 link#1 UC 0 0 em0 0.0.0.1 00:d0:03:15:7c:0a UHLW 2 0 em0 1155 0.0.0.40 00:30:48:88:d9:98 UHLW 1 41787 em0 1198 0.0.0.83 00:30:48:76:84:ac UHLW 1 3708 lo0 127.0.0.1 127.0.0.1 UH 0 77453 lo0 (real ips obscured) Do I need to use a private ip block (eg 192.168.x.x) for this? Can I use "real"/routeable ips in a static route? Does FreeBSD take care of this for me automatically? Or is this simply impossible? Thanks. -- View this message in context: http://www.nabble.com/Static-Routes-Questions-tf3779299.html#a10687376 Sent from the freebsd-questions mailing list archive at Nabble.com.