From nobody Mon Apr 13 14:17:01 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fvTxT62XVz6ZF0B for ; Mon, 13 Apr 2026 14:17:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fvTxT2cyzz3npy for ; Mon, 13 Apr 2026 14:17:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776089821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F8T5pEqnGJ5oTIUfUDjqy3aKk5bWufE99duA3nW7p98=; b=fkD6qIvRM/ip7o7aLoaF/9tS7ITgAgYwv3zIh0/Ko1i1XITsrOqpEwDhpBFILuEjKsEbHt hYZ7qeszYOzizkOr6TNM2/OVeJfPKhyEQ2BMCUTxXBi046ADlIXWawjlF+zPgjmZAyPHa3 GCkT02kXbbVkWLrXpzT754D3vSDUmtsftvEEDJ4TdaJ3zNbcjtnkLa55vKO1Sv6H/vPq/u UM4lS1HqFsdxd7+MIDtY5F9foswqG/PCEM5KzD8yivWE5JhfQyJPj8nw2Lt9wE3VuCv51J YgumK0U5OtbyVHls5lHl/q3GT1n10VqmY+1bA8ZjVzH3kDguo0TpoAx4UsDUOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776089821; a=rsa-sha256; cv=none; b=FJ6uAC/b5kmDIw+p4xEXiBsk6Lp9a1uF4sZ19cmS8Xyl1vFELJ+mJPCLnrSZfv6kvvOkcP J4mfE89Ss1HuZ3mZjipIMWsH2ZTuP15orOedSceCp1/xL93j1sdU58oa8OiuAddXH192Pw k4575j6Lz4OzS+BJ7NIc+x7SDS6tFzoyFqvo0lJTMOZi0eA11xheVxhYQwAdfePFXiDW8l anlI3kLwYUOuM23EflQ0nnKFUIXw0sUay4YY1iv41BeUMREnYAEQ4kfAu788sZPxyo6bTa 8fEepIPhCfBgScZRBrtc3fdB+bYqlTyWpEuIvYl/xZxXnuI3mZGC4IoaMxRolw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776089821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=F8T5pEqnGJ5oTIUfUDjqy3aKk5bWufE99duA3nW7p98=; b=x+aChpiO2l1G3zHNvIN6eLK4hqsoYqi3V4RFlMCUk3r0sCrRTNQuW+CyqBEfjrbcOOTR91 154SkmH3uISga1YFzmXsTbSX+bKUbrAwkEBghknM3idPxcwNYBNU2Q/i8W+ro/DvtM6yl+ 3pVxdk55A//k7HHxfoQGIlvdIOWIXJ03ztySziXKsjkTNhEXBJLj+NcnAB3NP/0P6hOSOF T3YVSDraRICbYYR1xOUMDJqhLVboJER+f+Lsg3SeNWxWa6Xu2HrRi5CBuYPgMHSfba/mPO 5xnABHEcKe8W4FXcd78SzQMsM8DGHjmqVpfKlOQE6ufRF1vJPji2L9NTag8O2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fvTxT1ydzz16p6 for ; Mon, 13 Apr 2026 14:17:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 462a8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 13 Apr 2026 14:17:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: b0ef03f0c4bc - main - ifconfig.8: Add geneve(4) parameters List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b0ef03f0c4bc2a7715e4b8ea4ead8dd73dffdd95 Auto-Submitted: auto-generated Date: Mon, 13 Apr 2026 14:17:01 +0000 Message-Id: <69dcfadd.462a8.13c0a6fa@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=b0ef03f0c4bc2a7715e4b8ea4ead8dd73dffdd95 commit b0ef03f0c4bc2a7715e4b8ea4ead8dd73dffdd95 Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-04-13 12:38:53 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-04-13 14:15:06 +0000 ifconfig.8: Add geneve(4) parameters Add geneve parameters to ifconfig manual. Reviewed by: ziaee Differential Revision: https://reviews.freebsd.org/D55181 --- sbin/ifconfig/ifconfig.8 | 113 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 112 insertions(+), 1 deletion(-) diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8 index f062ddec774d..1dc599a61623 100644 --- a/sbin/ifconfig/ifconfig.8 +++ b/sbin/ifconfig/ifconfig.8 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 12, 2025 +.Dd December 11, 2025 .Dt IFCONFIG 8 .Os .Sh NAME @@ -3257,6 +3257,117 @@ Delete all dynamically-learned addresses from the forwarding table. .It Cm vxlanflushall Delete all addresses, including static addresses, from the forwarding table. .El +.Ss Generic Network Virtualization Encapsulation Parameters +The following parameters are used to configure +.Xr geneve 4 +interfaces. +.Bl -tag -width indent +.It Cm geneveid Ar identifier +This value is a 24-bit Virtual Network Identifier (VNI) that identifies the +virtual network identifier of the interface. +.It Cm genevemode Ar mode +Set the +.Nm +protocol operating +.Ar mode +value. +Supported modes are currently: +.Bl -tag -width indent +.It Cm l2 +Default. +.It Cm l3 +.El +.It Cm genevelocal Ar address +The source address used in the encapsulating IPv4/IPv6 header. +The address should already be assigned to an existing interface. +When the interface is configured in unicast mode, the listening socket +is bound to this address. +.It Cm geneveremote Ar address +The interface can be configured in a unicast, or point-to-point, mode +to create a tunnel between two hosts. +This is the IP address of the remote end of the tunnel. +.It Cm genevegroup Ar address +The interface can be configured in a multicast mode +to create a virtual network of hosts. +This is the IP multicast group address the interface will join. +.It Cm genevelocalport Ar port +The port number the interface will listen on. +The default port number is 6081. +.It Cm geneveremoteport Ar port +The destination port number used in the encapsulating IPv4/IPv6 header. +The remote host should be listening on this port. +The default port number is 6081. +.It Cm geneveportrange Ar low high +The range of source ports used in the encapsulating IPv4/IPv6 header. +The port selected within the range is based on a hash of the inner frame. +A range is useful to provide entropy within the outer IP header +for more effective load balancing. +The default range is between the +.Xr sysctl 8 +variables +.Va net.inet.ip.portrange.first +and +.Va net.inet.ip.portrange.last +.It Cm genevetimeout Ar timeout +The maximum time, in seconds, before an entry in the forwarding table +is pruned. +The default is 1200 seconds (20 minutes). +.It Cm genevemaxaddr Ar max +The maximum number of entries in the forwarding table. +The default is 2000. +.It Cm genevedev Ar dev +When the interface is configured in multicast mode, the +.Cm dev +interface is used to transmit IP multicast packets. +.It Cm genevedf Ar df +Set the Do not fragment (DF) bit in the encapsulating header. +Supported +.Ar df +values are currently: +.Bl -tag -width indent +.It Cm set +Do not allow fragmentation on the output IPv4/IPv6 packets and +set the Do not fragment (DF) bit in the encapsulating IPv4 header. +.It Cm unset +Default. +.It Cm inherit +The Do not fragment (DF) bit copied from inner IPv4 header to the +outer IPv4 header. +.El +.It Cm genevettl Ar ttl +The TTL used in the encapsulating IPv4/IPv6 header. +.Bl -tag -width indent +.It Cm 0-255 +The default is 64. +.It Cm inherit +The TTL copied from inner encapsulated header to the outer header. +.El +.It Cm genevedscpinherit +Inherit DSCP or Traffic Class value from the inner IPv4/IPv6 header. +.It Fl genevedscpinherit +Unconfigure DSCP or Traffic Class inheritence from the inner IPv4/IPv6 header. +This is the default. +.It Cm genevelearn +When in L2 unicast mode, The source IP address and inner source Ethernet +MAC address of received packets are used to dynamically populate the +forwarding table. +When in L2 multicast mode, an entry in the forwarding table allows the +interface to send the frame directly to the remote host instead of +broadcasting the frame to the multicast group. +This is the default. +.It Fl genevelearn +In L2 mode, geneve forwarding table is not populated by received packets. +.It Cm geneveexternal +make this tunnel externally controlled. +.It Fl geneveexternal +enable manual configuration for this tunnel. +This is the default +.It Cm geneveflush +Delete all dynamically-learned addresses from the forwarding table when in L2 +mode. +.It Cm geneveflushall +Delete all addresses, including static addresses, from the forwarding table. +.El .Ss CARP Parameters The following parameters are used to configure .Xr carp 4