From owner-freebsd-questions@FreeBSD.ORG Sun Sep 16 21:40:55 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFC2416A418 for ; Sun, 16 Sep 2007 21:40:55 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id A6CCA13C46A for ; Sun, 16 Sep 2007 21:40:55 +0000 (UTC) (envelope-from sandiegobiker@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so275374anc for ; Sun, 16 Sep 2007 14:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=ScSOeZGQCTvLkitOwpJfDIL36A6KUVGYumzbeXZ+Ly4=; b=tPbfnJfVi+PQlsBDxVMtPyM3vq86VtHI9bkpWW9Hu/TcANNcGlz0jAeuDWsShj3BZoFM+BmttUf0P1hIkBy1Tv7ssWOKu0iE3klQJix15i2IYKe5IHB2ZwDff72dTUUmezx/34bX4yoCtGLC5/mfp0sulUc1XPZcKYPbyfzpOoQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=O34PkG1Y3i60yOr1aZA0ngzqfLfX4m2a7NIGbALYQkTXxiP+BjL3HiAxdG0zSqQvw6bAaLZI95l+hQ05iVWzTtVDhvbtg+SiSkzAxCpyVQtYKE93ZDb/11EebAs4TX9bdggt3PJXEEJoj58MbbNf9tXaeMSFLrqupcfqIogUUTE= Received: by 10.100.10.20 with SMTP id 20mr6197591anj.1189977213147; Sun, 16 Sep 2007 14:13:33 -0700 (PDT) Received: by 10.70.102.1 with HTTP; Sun, 16 Sep 2007 14:13:33 -0700 (PDT) Message-ID: <27cb3ada0709161413i163d942cld279e92634d06001@mail.gmail.com> Date: Sun, 16 Sep 2007 14:13:33 -0700 From: "Len Gross" To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Multiple NICs - custom protocol development 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: Sun, 16 Sep 2007 21:40:56 -0000 I have a host on my local 192.168.0 / 24 subnet that works fine in getting to the Internet via a default route.via a wireless connection. I want to develop some custom link protocols and I have placed two Ethernet NICs in the box. I want to be able to send packets from one NIC to the other and maintain the link to the Internet. I've tried a large number of things via rc.conf but when I ping of the cards it is not going out the interface; it just gets looped back. (I test this by disconnecting the "crossover cable" between the two cards.) My current rc.conf has the following attempt, but this fails. # router_enable="Yes" gateway_enable="Yes" # Ethernet 1: ifconfig_xl0="inet 192.168.1.1 netmask 255.255.255.0" # Ethernet 2 ifconfig_rl0="inet 192.168.2.1 netmask 255.255.255.0" # # Set up loop between the two ethernet cards static_routes "xtor, rtox" route_rtox = "-host 192.168.1.1 192.168.2.1" route_xtor = "-host 192.168.2.1 192.168.1.1" Can I do what I want or must I have a second development box? -- Len