From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 02:04:20 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA3C16A4B3 for ; Tue, 16 Sep 2003 02:04:20 -0700 (PDT) Received: from telecom.sarkor.uz (telecom.sarkor.uz [81.95.226.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CB0943F85 for ; Tue, 16 Sep 2003 02:04:19 -0700 (PDT) (envelope-from thor@telecom.sarkor.uz) Received: by telecom.sarkor.uz (Postfix, from userid 1000) id 2ED30142E5B; Tue, 16 Sep 2003 13:51:38 +0500 (UZT) Date: Tue, 16 Sep 2003 13:51:38 +0500 To: freebsd-questions@freebsd.org Message-ID: <20030916085138.GA12820@telecom.sarkor.uz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: thor@telecom.sarkor.uz (Timur) Subject: linux like routing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 09:04:20 -0000 Hi! I'm moving to FreeBSD from Linux. On Linux, I can do following: ip address add 192.168.0.2/24 dev eth0 # assign address to first ether ip address add 10.0.0.1/32 dev eth0 # alias ip route add default via 192.168.0.1 src 10.0.0.1 The third line says that default route goes through 192.168.0.1, but this machine should use 10.0.0.1 address for outgoing packets. Can I reproduce the same behaviour with FreeBSD? Timur.