From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5724243DC3; Tue, 2 Apr 2024 18:31:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9585840647; Tue, 2 Apr 2024 18:31:05 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 7546F402E5 for ; Tue, 2 Apr 2024 18:31:03 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e88e4c8500so4292703b3a.2 for ; Tue, 02 Apr 2024 09:31:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712075462; x=1712680262; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LYZ/HV8FfMSNOILFIyzwQtDavvt6XCAuN5X6pv4vjAg=; b=lkmYgJ5RfPPtw+uxqhXNE8yWFhfGH8bRgXyGZ4EYduD7bww3/a8jLDk5F4A6e4TioE 5EqPPFVzEuMLL9ZnwNjan/wx81zehTgtKE/Bu7t9Yh7oqq5Y6jiSquskVRvd9GwWATZG Bgauhm5JqJrKQsllVky1EcIqNhGyZAbDAWX/+cyob8r2DDqeUh2dYKjQafAkGxu6jHkh OYsu2VrSk888vqezYG9Nh2TkY62b+5G6RyWJMDUnV3/LWeqlUM+MJ1A7S2qhuyccNdqI kp8EWSSzJ15PJbqmumSLquSPTZH2D2s1ash+fKfDOdjzV/GtCdnf7EoHImXiDi6Q00E+ IKkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712075462; x=1712680262; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LYZ/HV8FfMSNOILFIyzwQtDavvt6XCAuN5X6pv4vjAg=; b=MV1CgcAqGyUuVEGyx5I4EBJJNYemTxJTTiaMyqhHKBrwkjs3WCZo5l0VxWjZtN19b3 kFXL34BE8LGyUpFwH7sNgpruXzs2QGMRm2FKZ1V4E44USE7HYRcEl5VKphxd8Wqxrl+t o5Shnyexury/Al7mh6pXzYpMRAIX3XKnztTbLdVfOiAgdtlF3xPMVLkg6uOYUvYGnM5J QN7FOE7YrPDBoc5ce45kb6V8i7/2qwn4m/xV1L76SubqtQXEu6GYV3RAmbts53BJUi60 TyQpcsCBAitpfOZsK4k/0dxZUplON+AnM79Mp3ldgArHFdIiviPcPIAq8beLCZqHqtMq PAvA== X-Gm-Message-State: AOJu0YwgxpBDojm802rLo1Q2YkpDQ+OYiindDnASFiYTjpvzjU9S7vKe wzb2wHmPdrr78ktYNVeUhAMmC9zhIvID4eTHtMIBwqcq0pYBTFgGCOlDWOv8tcHnjkjdGbl1Lyc k X-Google-Smtp-Source: AGHT+IHr93BNHQyxklPU0Wo84C/+hqbb9XuxuMDRJSON3VMQqlHA3oLI11T9jVG5HiwdDrk2UEryDg== X-Received: by 2002:a05:6a00:1403:b0:6ea:d4ed:8d21 with SMTP id l3-20020a056a00140300b006ead4ed8d21mr12525942pfu.18.1712075462609; Tue, 02 Apr 2024 09:31:02 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id y7-20020aa793c7000000b006e6fd17069fsm9954857pff.37.2024.04.02.09.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:31:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 2/4] doc: replace ifconfig and brctl usage in howto Date: Tue, 2 Apr 2024 09:29:34 -0700 Message-ID: <20240402163050.133923-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402163050.133923-1-stephen@networkplumber.org> References: <20240402163050.133923-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The brctl command is deprecated and not supported on lastest distros. Ifconfig command is legacy and no longer maintained; replace it with ip commands in documentation. Signed-off-by: Stephen Hemminger --- doc/guides/howto/lm_bond_virtio_sriov.rst | 58 +++++++++++------------ doc/guides/howto/lm_virtio_vhost_user.rst | 2 +- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/doc/guides/howto/lm_bond_virtio_sriov.rst b/doc/guides/howto/lm_bond_virtio_sriov.rst index 60b4462c2c..751b1de90b 100644 --- a/doc/guides/howto/lm_bond_virtio_sriov.rst +++ b/doc/guides/howto/lm_bond_virtio_sriov.rst @@ -445,21 +445,21 @@ Setup bridge on host_server_1 # ens3f0 is the Niantic NIC # ens6f0 is the Fortville NIC - ifconfig ens3f0 down - ifconfig tap1 down - ifconfig ens6f0 down - ifconfig virbr0 down - - brctl show virbr0 - brctl addif virbr0 ens3f0 - brctl addif virbr0 ens6f0 - brctl addif virbr0 tap1 - brctl show virbr0 - - ifconfig ens3f0 up - ifconfig tap1 up - ifconfig ens6f0 up - ifconfig virbr0 up + ip link set dev ens3f0 down + ip link set dev tap1 down + ip link set dev ens6f0 down + ip link set dev virbr0 down + + bridge link show dev virbr0 + ip link set dev ens3f0 master virbr0 + ip link set dev ens6f0 master virbr0 + ip link set dev tap1 master virbr0 + bridge link show dev virbr0 + + ip link set dev ens3f0 up + ip link set dev tap1 up + ip link set dev ens6f0 up + ip link set dev virbr0 up connect_to_qemu_mon_on_host.sh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -548,21 +548,21 @@ Setup bridge on host_server_2 # ens4f0 is the Niantic NIC # ens5f0 is the Fortville NIC - ifconfig ens4f0 down - ifconfig tap1 down - ifconfig ens5f0 down - ifconfig virbr0 down + ip link set dev ens4f0 down + ip link set dev tap1 down + ip link set dev ens5f0 down + ip link set dev virbr0 down - brctl show virbr0 - brctl addif virbr0 ens4f0 - brctl addif virbr0 ens5f0 - brctl addif virbr0 tap1 - brctl show virbr0 + bridge link show dev virbr0 + ip link set dev ens4f0 master virbr0 + ip link set dev ens5f0 master virbr0 + ip link set dev tap1 master virbr0 + bridge link show dev virbr0 - ifconfig ens4f0 up - ifconfig tap1 up - ifconfig ens5f0 up - ifconfig virbr0 up + ip link set dev ens4f0 up + ip link set dev tap1 up + ip link set dev ens5f0 up + ip link set dev virbr0 up .. _lm_bond_virtio_sriov_vm_scripts: @@ -585,7 +585,7 @@ Set up DPDK in the Virtual Machine /root/dpdk/usertools/dpdk-hugepages.py --setup 2G /root/dpdk/usertools/dpdk-hugepages.py --show - ifconfig -a + ip link show /root/dpdk/usertools/dpdk-devbind.py --status rmmod virtio-pci ixgbevf diff --git a/doc/guides/howto/lm_virtio_vhost_user.rst b/doc/guides/howto/lm_virtio_vhost_user.rst index c5c48f10a9..2f9a93e849 100644 --- a/doc/guides/howto/lm_virtio_vhost_user.rst +++ b/doc/guides/howto/lm_virtio_vhost_user.rst @@ -415,7 +415,7 @@ setup_dpdk_virtio_in_vm.sh /root/dpdk/usertools/dpdk-hugepages.py --setup 2G /root/dpdk/usertools/dpdk-hugepages.py --show - ifconfig -a + ip -br link show /root/dpdk/usertools/dpdk-devbind.py --status rmmod virtio-pci -- 2.43.0