Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id DC3E5223646 for <~alpine/users@lists.alpinelinux.org>; Wed, 11 Oct 2023 07:52:38 +0000 (UTC) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-1dd1714b9b6so4518457fac.0 for <~alpine/users@lists.alpinelinux.org>; Wed, 11 Oct 2023 00:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697010755; x=1697615555; darn=lists.alpinelinux.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=rAePsvRo6QIP1v0h9ZsRMV+sF5t+jmSwytoI8pCFdq0=; b=l1bhy/mcFNmyPGpnKS9I2TiZYuTBbrEUC/zGXsWH5p+u7GCc7EKUT3zDziXyEhrSGO FWjqli3h+Db9A4xS9ChYqsdGcanqh7hbNKw3TU8HvMnjh8sKP0M6pmzFYabzjjfYDS/9 lcb/TAf+8K3rRbMEd4BcCOm96sJOUCVirpbZ8wqMwbwVmyHHStCF/SUiBdD+7GXLW05Q pQHktcHGti672MABBiyepBKBhlrhiGEkU928inyWDwPzHWBxmQ8PAY1jtUvL1f67wmZj p8VrQCICL8hHU6QrjAMjtFLenhyD7L5Lv9Ymn0HEn+mVuONGJqBlJzKlEONiXaDY4Nxg ye/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697010755; x=1697615555; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rAePsvRo6QIP1v0h9ZsRMV+sF5t+jmSwytoI8pCFdq0=; b=nbpBd3W8MOK/jVp6h3HiZ1XZIYu6DfFeO5AQK6buw6kybJFZX5aA8QW2lkGSPajQJw ZvzkkN2PUze4UjpgUky/eig9VnxU1o47dGy7piK3kitgRBOgJM0BGYEoUjwA2T5j4fWW CG7SI8375NsnLqc2bOgXCrGRqoQauMzF+c2niysaVoWxHeMVAa18dFxcOe3CCOJQ1ZGi NAsDfd0EFan2yZzyqRmFAPDSqM+8NfAsbAKf4pfdzJ2TfuPQ5kELNJeYuZXi1bmv1RJq j6rHrOOZ6Jmk+2+skgwTT5DQVou6+As8wLkmUZzd9PRlveB2iWL/vfYZRgk1+MB10rix s3aw== X-Gm-Message-State: AOJu0YzAq+wn6QfV19zIb7zkD8Cpj1hekjfriVAxsa/48jAQr/vvH+Ws io9DQvjFORUKPMQAfocdmeVPHUHpQuwLXHoZyEYoCRuV2z4= X-Google-Smtp-Source: AGHT+IE5BP1JasUmmpEesw1gLijvPZ7p2UX/IoBCJzX2LUnDD9eKizLipPoASZHJjCLirSnXA0lpE/kDwJxdluO6CRw= X-Received: by 2002:a05:6870:f105:b0:1d6:5133:2f37 with SMTP id k5-20020a056870f10500b001d651332f37mr23625173oac.48.1697010754868; Wed, 11 Oct 2023 00:52:34 -0700 (PDT) MIME-Version: 1.0 From: Guning Lin Date: Wed, 11 Oct 2023 15:52:23 +0800 Message-ID: Subject: using ip command to config bond interface To: ~alpine/users@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="00000000000039598106076c1b38" --00000000000039598106076c1b38 Content-Type: text/plain; charset="UTF-8" Hi: I want to use ip command to config bond interface at once, but it didn't work, Can you help me? Here are context: 1. I have two native interfaces eth0 and eth1 2. I've tried this command blow to add a bond interface bond0 ip link add bond0 type bond mode active-backup miimon 200 downdelay 100 > updelay 100 ip link add bond0 type bond mode 2 miimon 200 downdelay 100 updelay 100 ip link add bond0 type bond mod=2 miimon=200 downdelay=100 updelay=100 3. all of them return code 0 but when I see the mode using `cat /proc/net/bonding/bond0`, it shows: localhost:~# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v6.1.27-2-lts > Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 0 Up Delay (ms): 0 Down Delay (ms): 0 Peer Notification Delay (ms): 0 ..... There must be something wrong with my command, so it result in the default params I've ried some way to find the `ip` command manaual, but got nothing useful. Thanks! --00000000000039598106076c1b38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi:
I want to use ip command to config bond interface at once, bu= t it didn't work, Can you help me? Here are context:
=
1. I h= ave two native interfaces eth0 and eth1
2. I've tried this = command blow to add a bond interface bond0
ip link add bond0 type bond mode active-backup miimon 200 dow= ndelay 100 updelay 100
ip link add bond0 type bond mode 2 miimon 200 downdelay 100 upd= elay 100
ip= link add bond0 type bond mod=3D2 miimon=3D200 downdelay=3D100 updelay=3D10= 0
3. all of them return code 0 but when I s= ee the mode using=C2=A0 `cat /proc/net/bonding/bond0`, it shows:
localhost:~# cat /proc/net/bonding/bond= 0
Etherne= t Channel Bonding Driver: v6.1.27-2-lts

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling = Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0
.....
<= /blockquote>

There must be something wrong with my command, so it= result in the default params
I've ried some way to find th= e `ip` command manaual, but got nothing useful.=C2=A0

<= /blockquote>Thanks!
--00000000000039598106076c1b38--