From owner-svn-src-projects@FreeBSD.ORG Sun Sep 14 19:34:58 2014 Return-Path: Delivered-To: svn-src-projects@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 0DC236B4; Sun, 14 Sep 2014 19:34:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D3371D4E; Sun, 14 Sep 2014 19:34:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8EJYvS6087793; Sun, 14 Sep 2014 19:34:57 GMT (envelope-from bryanv@FreeBSD.org) Received: (from bryanv@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8EJYvRN087791; Sun, 14 Sep 2014 19:34:57 GMT (envelope-from bryanv@FreeBSD.org) Message-Id: <201409141934.s8EJYvRN087791@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bryanv set sender to bryanv@FreeBSD.org using -f From: Bryan Venteicher Date: Sun, 14 Sep 2014 19:34:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r271599 - in projects/vxlan: sbin/ifconfig share/man/man4 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 19:34:58 -0000 Author: bryanv Date: Sun Sep 14 19:34:57 2014 New Revision: 271599 URL: http://svnweb.freebsd.org/changeset/base/271599 Log: Add vxlan examples and fix some minor issues Modified: projects/vxlan/sbin/ifconfig/ifconfig.8 projects/vxlan/share/man/man4/vxlan.4 Modified: projects/vxlan/sbin/ifconfig/ifconfig.8 ============================================================================== --- projects/vxlan/sbin/ifconfig/ifconfig.8 Sun Sep 14 18:55:48 2014 (r271598) +++ projects/vxlan/sbin/ifconfig/ifconfig.8 Sun Sep 14 19:34:57 2014 (r271599) @@ -2495,7 +2495,7 @@ The following parameters are used to con interfaces. .Bl -tag -width indent .It Cm vni Ar identifier -This value is a 16-bit VXLAN Network Identifier (VNI) that identifies the +This value is a 24-bit VXLAN Network Identifier (VNI) that identifies the virtual network segment membership of the interface. .It Cm local Ar address The source address used in the encapsulating IPv4/IPv6 header. @@ -2540,7 +2540,7 @@ The maximum number of entries in the for The default is 2000. .It Cm vxlandev Ar dev When the interface is configured in multicast mode, the -.Ar Cm dev +.Cm dev interface is used to transmit IP multicast packets. .It Cm ttl Ar ttl The TTL used in the encapsulating IPv4/IPv6 header. Modified: projects/vxlan/share/man/man4/vxlan.4 ============================================================================== --- projects/vxlan/share/man/man4/vxlan.4 Sun Sep 14 18:55:48 2014 (r271598) +++ projects/vxlan/share/man/man4/vxlan.4 Sun Sep 14 19:34:57 2014 (r271599) @@ -81,7 +81,7 @@ driver creates a pseudo Ethernet network that supports the usual network .Xr ioctl 2 Ns s and is thus can be used with -.Xr ifconfig 8 . +.Xr ifconfig 8 like any other Ethernet interface. The .Nm @@ -181,7 +181,39 @@ Alternatively, the command may be used to reduce the MTU size on the .Nm interface to allow the encapsulated frame to fit in the -physical network current MTU. +current MTU of the physical network. +.Sh EXAMPLES +Create a +.Nm +interface in unicast mode +with the +.Cm local +tunnel address of 192.168.100.1, +and the +.Cm remote +tunnel address of 192.168.100.2. +.Bd -literal -offset indent +ifconfig vxlan create vni 108 local 192.168.100.1 remote 192.168.100.2 +.Ed +.Pp +Create a +.Nm +interface in multicast mode, +with the +.Cm local +address of 192.168.10.95, +and the +.Cm group +address of 224.0.2.6. +The em0 interface will be used to transmit multicast packets. +.Bd -literal -offset indent +ifconfig vxlan create vni 42 local 192.168.10.95 group 224.0.2.6 vxlandev em0 +.Ed +.Pp +Once created, the +.Nm +interface can be configured with +.Xr ifconfig 8 . .Sh SEE ALSO .Xr ifconfig 8 , .Xr inet 4 ,