From owner-freebsd-net@FreeBSD.ORG Sat May 3 06:44:59 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7E2D31E for ; Sat, 3 May 2014 06:44:58 +0000 (UTC) Received: from mail-ob0-x242.google.com (mail-ob0-x242.google.com [IPv6:2607:f8b0:4003:c01::242]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B56221A8D for ; Sat, 3 May 2014 06:44:58 +0000 (UTC) Received: by mail-ob0-f194.google.com with SMTP id va2so799210obc.1 for ; Fri, 02 May 2014 23:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EMccv6TqMMrH67sDJzFzV6XE8CLGKbnfcaaLW82VTPc=; b=m1kGLl313yLG75lZ7PeEojqbnoVZ0N2W8W2bJMVLtbIab3i85oe/L3lvABUyoNPAPa db1oOZxjBlecnnPzvh7U4Oz2PzrjrZtV+Gl6ZNoEMr/k0yDZiXK77NroFynGEB32TNcQ InGizg13wuKdHoBA0p8yxZfffK3frGIuDzgUmgkTzUUivLmkDLMF6cVN3ygAhceyd8nw GMNckxlKxcvKXHj/5al/iTjTD054VuOz4dJKb+Bb0YbIozU0kZeWfD/fXYpTD9vHmRm2 QGDuQ4XskFXX/wX3uy4FKPnHma3NK5sNNG3Yasm3E0pdHbNZ+r72EQCOz9iVHSG4He9z nQLg== MIME-Version: 1.0 X-Received: by 10.182.33.99 with SMTP id q3mr19631950obi.33.1399099497689; Fri, 02 May 2014 23:44:57 -0700 (PDT) Received: by 10.76.101.18 with HTTP; Fri, 2 May 2014 23:44:57 -0700 (PDT) Date: Sat, 3 May 2014 14:44:57 +0800 Message-ID: Subject: netmap: how to bridge 2 eth? From: upyzl To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 06:44:59 -0000 Hi all I'm doing to implement a simple openflow-based software switch(not same as OVS, much simpler to OVS) and I choose netmap for the network framework Now I try to do a simplest thing: there's 3 VMs, all are Ubuntu 12.04.4 x64 2 act as hosts, other 1 act as switch topo: [host1] eth0 ----- eth0 [switch] eth1 ----- eth0 [host2] I want to bridge switch's eth0ð1 (like "brctl" in linux), then host1 ping host2 the problem is, how to bridge using netmap? I tried example "bridge" in netmap project(git clone https://code.google.com/p/netmap/): ./bridge -i netmap:eth0 -i netmap:eth1 then host1 ping to host2 but pinging result is "Destination Host Unreachable" (if using brctl, pinging is fine) Then I tried vale-ctl but i dont know how to use it... e.g. ./vale-ctl -a eth0 show "eth0: Invalid argument" could anyone help me?