From owner-freebsd-net@FreeBSD.ORG Wed May 16 15:20:54 2012 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 8F54A106566C for ; Wed, 16 May 2012 15:20:54 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0020C8FC23 for ; Wed, 16 May 2012 15:20:53 +0000 (UTC) Received: by lbon10 with SMTP id n10so836895lbo.13 for ; Wed, 16 May 2012 08:20:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=T+Mk53Ab1ONx/eZ7TXCYtNhyWFdmci/kbHfthvh6oYI=; b=DaLivXJOAvrs96PeZfsXpaWOpM4iQMVDl9AD8uiT9MmoVTnGtl2dN4wVd8yrHWlsJP ued6YCy2wc+Yhwzd/RZmkn7s0eYS3Em6Y1V471l829C7zuIYZwRV7AtVTMja0o2ce3HT ObxxL5ktZr+eEgqhHzXnGC6bIv6O4e+lOlSfxiUDiPbUQv1hK84L7T1RxmJiNZyRDh9G /UntIazuM7EBnsJJN+EVEchulVBcLDu/duntC3XCfmy0YXUjxbi87M9rAh4B+Zy2gTmO N7FkbyHp62jwPiSuhaGjm0oMrweH5FOB88rv/q581eSgumovGD4lGFqeYdTRXCI2cqy3 yUxw== Received: by 10.152.146.163 with SMTP id td3mr3366815lab.25.1337181652761; Wed, 16 May 2012 08:20:52 -0700 (PDT) Received: from zont-osx.local (ppp95-165-141-253.pppoe.spdop.ru. [95.165.141.253]) by mx.google.com with ESMTPS id o9sm3618799lbm.14.2012.05.16.08.20.51 (version=SSLv3 cipher=OTHER); Wed, 16 May 2012 08:20:52 -0700 (PDT) Message-ID: <4FB3C5D4.6080005@zonov.org> Date: Wed, 16 May 2012 19:20:52 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Sean Bruno References: <1337105271.3434.8.camel@powernoodle-l7.corp.yahoo.com> In-Reply-To: <1337105271.3434.8.camel@powernoodle-l7.corp.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQma/HE4xMPYxA3oIJvhttTTVXTyFu3Adotv1jr6tChvqAiRj6EuFBymcCuN1fVdL3uJ+Pwn Cc: "freebsd-net@freebsd.org" Subject: Re: [stable-9] 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: Wed, 16 May 2012 15:20:54 -0000 On 5/15/12 10:07 PM, Sean Bruno wrote: > Trying to use two interfaces connected to the same network with the same > default router. The two interfaces have two different IPs on the > same /28 and point at the same default router of .1. I have > successfully configured the machine such that data is coming *in* on > both interfaces, but the output is only going out the first interface. > > I've compiled with RADIX_MPATH enabled, and I'm setting the default > route ... but, I'm pretty ignorant what to do next. Chances are, I'm > just being stupid here and I need to get more sleep. > > -bash-4.2$ netstat -r > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif > Expire > default UGS 0 33320033 igb0 > XXX.XXX.XXX.0/25 link#1 U 0 0 igb0 => > XXX.XXX.XXX.0/25 link#2 U 0 0 igb1 > > > What am I missing here? > Did you try to use ipfw instead of RADIX_MPATH? Try something like this: route add default $router -interface $if1 ipfw add $number fwd $router ip from $ip2 to any out via $if2 -- Andrey Zonov