From owner-freebsd-questions@FreeBSD.ORG Thu Jun 21 21:56:57 2012 Return-Path: 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 B084B1065672 for ; Thu, 21 Jun 2012 21:56:57 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id 78A938FC0C for ; Thu, 21 Jun 2012 21:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Mime-Version:Cc:Date:References:Subject:To:Content-Type; bh=SLl0g98EieijKDRxvGUUbcg3VBCqZS13GTfLCqx7yM0=; b=TbnngV90fdyok1YjLcjZyGeaCYks0+lVxSM/0u4Ckb+e/R3Aj3U8+Mc2zeMfJl8bVFTzxJEr2COWNbMtvG5V6YDMKteC31ov7ii4zsnqMwWol8LTCNyS0241U8wphjMS; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1ShpN1-000MVT-Fz; Thu, 21 Jun 2012 16:56:56 -0500 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpa id 1340315809-94480-94479/5/35; Thu, 21 Jun 2012 21:56:49 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "UNIX developer @ Google.com" References: <1842148286.20120621235936@gmail.com> Date: Thu, 21 Jun 2012 16:56:49 -0500 Mime-Version: 1.0 From: Mark Felder Message-Id: In-Reply-To: <1842148286.20120621235936@gmail.com> User-Agent: Opera Mail/12.00 (FreeBSD) X-SA-Score: -1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Problem with routing in VmWare VMS 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: Thu, 21 Jun 2012 21:56:57 -0000 On Thu, 21 Jun 2012 15:59:36 -0500, UNIX developer @ Google.com wrote: > /etc/rc.conf > ifconfig_em0=" inet 192.168.1.10 netmask 255.255.255.0" > ifconfig_em1=" inet 192.168.2.1 netmask 255.255.255.0" > defaultrouter="192.168.1.1" > gateway_enable="YES" > static_routes="clnet" > route_clnet="-net 192.168.2.0/24 192.168.1.10" You simply CANNOT do this. Traffic for 192.168.2.0/24 is bound to em1 and cannot be changed. You setup a static route that basically says "to find 192.168.2.0/24, don't use em1 but instead ask 192.168.1.10 how to find it"? This makes no sense at all.