From nobody Fri Mar 15 19:54:05 2024 X-Original-To: dev-commits-doc-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 4TxFLk0tJJz5CnYQ for ; Fri, 15 Mar 2024 19:54:06 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TxFLk0Nk0z45Hn; Fri, 15 Mar 2024 19:54:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710532446; 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=mFINNANG6ln+JS4lMp2vWMcN5Sjs81SOCHnIYM81z2U=; b=ZE0vLipTgk9MVQ5m/AZ0f4Zbi8GvdLC8QjmSuBaN4MC2qzXS7gizsCkqbOQZ7qnMilNYdV ttianRZ4lb0bR2EvYZ+JudB8U9XR4EUdYj9CKp90MavzgXrKXFCorj6Bvj+Vo+IMPPh3EA m5ShXQNXFBpPnvMma6Wr9azSjoLL6LZkYOcwRC6XnDUeDXQRO7yn0rQOnlnt8aGLqcS5re iAuM38t3fUfDUwAnSlheoPjiqBjaaZ55bAtcMk/O6JcScBjU4W8zURR69+Rrar6SlMbsaY FvIb2vfGyy1i0O3MEOxtIxo6VgWHP8Kf9gVLPVM8swnlIvMW2VBgf1EM8xIcqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710532446; a=rsa-sha256; cv=none; b=DjvmuLJfYwjoINqqe83V2mYHgTV50O3rFOyXRzLpK5HtzmYL/hVryn1Y4DlgTPg0zPRAwv VrWYhrUlgIK0w++QrYXCpe9ahtI62OEbPb53WL8/PgI1zzzzPDL0Y5mIcmHboIo7HI/5kZ F65s+4+F9JxlwzhaCX4NNZJ3OP/R3X7lymtJBe9sH25uZ0Zg9PO/UUCcF4WnfmPmb4Eeif OYZmH8oVFbBATCujsbtnpgKuDUfX57sSGvrHki7F62WxAEBDRoLQMtgR0QXq6Rr439+yaF P/hRN2CJEmZz4TwPWBnGgH3ZzKEG7G1fVrgcWhXRB8k8NgyvJuBHuPWCrlh9eQ== 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=1710532446; 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=mFINNANG6ln+JS4lMp2vWMcN5Sjs81SOCHnIYM81z2U=; b=Xhws2OX4OUte0b2KqJs9cjCcL/RPox1QFJGX6Pv3pIuKk2ZFeRuq2SOyYPgBBfrWq04Nz9 2GwCrv+SnVN8HCMbaBIJE28Zl7+x07F1QsOW5Eqkhu9W45qSvJlT70kL5A+crqfjIQhw4v h6VED9zbaoAzWAi1mfT/5IagMlkT7ejmMMH9n4uPNw5GATgmC7nWP+9OHn6qxdEltLRnRP 8NpQ7B8QZ2v0fCpRSHJoRnSrQ6boRC7InSPbguFWwdHZ3DxMK6V/BkOku9v5bzWGanH6hv GHRiT1i4S0iDgkmYytGgIhVK/SbqEslvK/hUY3IDO2j2vNrP1/mrdYehCJiC0Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TxFLk00BCzNqx; Fri, 15 Mar 2024 19:54:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42FJs5Am002866; Fri, 15 Mar 2024 19:54:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42FJs5cx002863; Fri, 15 Mar 2024 19:54:05 GMT (envelope-from git) Date: Fri, 15 Mar 2024 19:54:05 GMT Message-Id: <202403151954.42FJs5cx002863@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Joseph Mingrone Subject: git: bc3bc049f7 - main - Handbook/Advanced Networking: Remove obsolete CARP content List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrm X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bc3bc049f7e33c6e6a85c19cab03f79c95423b0f Auto-Submitted: auto-generated The branch main has been updated by jrm: URL: https://cgit.FreeBSD.org/doc/commit/?id=bc3bc049f7e33c6e6a85c19cab03f79c95423b0f commit bc3bc049f7e33c6e6a85c19cab03f79c95423b0f Author: Chris Moerz AuthorDate: 2024-03-15 19:19:47 +0000 Commit: Joseph Mingrone CommitDate: 2024-03-15 19:52:44 +0000 Handbook/Advanced Networking: Remove obsolete CARP content PR: 192663 Reviewed by: emaste, jrm, Pau Amma Differential Revision: https://reviews.freebsd.org/D43948 --- .../books/handbook/advanced-networking/_index.adoc | 85 +--------------------- 1 file changed, 1 insertion(+), 84 deletions(-) diff --git a/documentation/content/en/books/handbook/advanced-networking/_index.adoc b/documentation/content/en/books/handbook/advanced-networking/_index.adoc index a1f861079b..89281523fb 100644 --- a/documentation/content/en/books/handbook/advanced-networking/_index.adoc +++ b/documentation/content/en/books/handbook/advanced-networking/_index.adoc @@ -2221,7 +2221,7 @@ The backup machine has two additional CARP interfaces, one for each of the maste When a failure occurs, the backup server will pick up the failed master machine's IP address. [[carp-10x]] -=== Using CARP on FreeBSD 10 and Later +=== Using CARP Enable boot-time support for CARP by adding an entry for the [.filename]#carp.ko# kernel module in [.filename]#/boot/loader.conf#: @@ -2299,89 +2299,6 @@ High availability is now enabled. CARP functionality can be controlled via several man:sysctl[8] variables documented in the man:carp[4] manual pages. Other actions can be triggered from CARP events by using man:devd[8]. -[[carp-9x]] -=== Using CARP on FreeBSD 9 and Earlier - -The configuration for these versions of FreeBSD is similar to the one described in the previous section, except that a CARP device must first be created and referred to in the configuration. - -Enable boot-time support for CARP by loading the [.filename]#if_carp.ko# kernel module in [.filename]#/boot/loader.conf#: - -[.programlisting] -.... -if_carp_load="YES" -.... - -To load the module now without rebooting: - -[source,shell] -.... -# kldload carp -.... - -For users who prefer to use a custom kernel, include the following line in the custom kernel configuration file and compile the kernel as described in crossref:kernelconfig[kernelconfig,Configuring the FreeBSD Kernel]: - -[.programlisting] -.... -device carp -.... - -Next, on each host, create a CARP device: - -[source,shell] -.... -# ifconfig carp0 create -.... - -Set the hostname, management IP address, the shared IP address, and VHID by adding the required lines to [.filename]#/etc/rc.conf#. -Since a virtual CARP device is used instead of an alias, the actual subnet mask of `/24` is used instead of `/32`. -Here are the entries for `hosta.example.org`: - -[.programlisting] -.... -hostname="hosta.example.org" -ifconfig_fxp0="inet 192.168.1.3 netmask 255.255.255.0" -cloned_interfaces="carp0" -ifconfig_carp0="vhid 1 pass testpass 192.168.1.50/24" -.... - -On `hostb.example.org`: - -[.programlisting] -.... -hostname="hostb.example.org" -ifconfig_fxp0="inet 192.168.1.4 netmask 255.255.255.0" -cloned_interfaces="carp0" -ifconfig_carp0="vhid 2 pass testpass 192.168.1.51/24" -.... - -The third machine, `hostc.example.org`, is configured to handle failover from either of the master hosts: - -[.programlisting] -.... -hostname="hostc.example.org" -ifconfig_fxp0="inet 192.168.1.5 netmask 255.255.255.0" -cloned_interfaces="carp0 carp1" -ifconfig_carp0="vhid 1 advskew 100 pass testpass 192.168.1.50/24" -ifconfig_carp1="vhid 2 advskew 100 pass testpass 192.168.1.51/24" -.... - -[NOTE] -==== -Preemption is disabled in the [.filename]#GENERIC# FreeBSD kernel. -If preemption has been enabled with a custom kernel, `hostc.example.org` may not release the IP address back to the original content server. -The administrator can force the backup server to return the IP address to the master with the command: - -[source,shell] -.... -# ifconfig carp0 down && ifconfig carp0 up -.... - -This should be done on the [.filename]#carp# interface which corresponds to the correct host. -==== - -Once the configuration is complete, either restart networking or reboot each system. -High availability is now enabled. - [[network-vlan]] == VLANs