From owner-freebsd-net@FreeBSD.ORG Thu Jul 23 15:27:51 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BD0F106568E for ; Thu, 23 Jul 2009 15:27:51 +0000 (UTC) (envelope-from lucian@lastdot.org) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id E1DAA8FC1A for ; Thu, 23 Jul 2009 15:27:50 +0000 (UTC) (envelope-from lucian@lastdot.org) Received: by fg-out-1718.google.com with SMTP id l26so1182657fgb.12 for ; Thu, 23 Jul 2009 08:27:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.86.30.17 with SMTP id d17mr1988214fgd.30.1248361074769; Thu, 23 Jul 2009 07:57:54 -0700 (PDT) Date: Thu, 23 Jul 2009 15:57:54 +0100 Message-ID: <5a3c8f450907230757j21191a11n6cae4699ec8a76e1@mail.gmail.com> From: "Lucian@lastdot.org" To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: How to change default source address? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 15:27:51 -0000 Hi guys, I need to change the default source address on a freebsd server. My situation is somehow similar to this (http://marc.info/?l=freebsd-questions&m=122535960804508&w=2). In linux i can easily do it like: ip ro replace default via 10.10.10.1 src a.b.c.d (where a.b.c.d is em0 alias). Any ideas?