From owner-freebsd-questions@freebsd.org Sun Jul 21 21:16:55 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAC99BF491 for ; Sun, 21 Jul 2019 21:16:55 +0000 (UTC) (envelope-from kamisouckova@gmail.com) Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D2416D21D for ; Sun, 21 Jul 2019 21:16:55 +0000 (UTC) (envelope-from kamisouckova@gmail.com) Received: by mail-vs1-xe42.google.com with SMTP id y16so24818832vsc.3 for ; Sun, 21 Jul 2019 14:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P0h8T4J9Fv8FH4sZ1lDaqbSivswqg6/z4dnxyKhJpTM=; b=LMzSnDwprkv1A93H3da6DxwDX0zsx2EZ8QT43BpgYMOyOFWiX9vuTlsKQ5h6uki2jj Rf7gXLGU9kf3FCYxl/Q8r4ZOtOwDoM8O9bIHu2DRtpp+FkkBE8crgtMF8/8/rKLj+FnQ cnj9MqFEkZH75k03sTUchb/rf5k5ZXT3vZ9rFtAJ7EHpS1DAeBpXUXkBbkIo/k+BP9mm 8d7L0DnFRSs6wCfld+zjn6Vo8YpXCNqJ2xHoutxR6gz8olDamCf4C/dM8wg1SG8bRHzI w4VVmFn36YIbDtcvWShr85CaJamU5pi7U8FVHSfN6j8ENvNWg/BNxVdHvNHbkhRSsBRh bBLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P0h8T4J9Fv8FH4sZ1lDaqbSivswqg6/z4dnxyKhJpTM=; b=tx++voB9Qagq2LlcQsEQGUvCzQLH1TO89lvAcPOK0CLO3S2yMEsnqgsj8E7050Y8uf DvOrRp7lbwsmQfblZcC/mCeX7oVPikjLoMYAQaWW82OIqWXCe5EoLPG4s9wIareJvday mlV3a2ALrfYyTAHnYG5JXHYHCxYP3XR0ZZGgB/rq+VzezXKKg95vd1kWKx8tTW3OVPff IGsShmTBXHWB7Rb+lHtm+wnoKrna9H8k14cCidodRI3xiecCylqBeehTwYPrGVYgihNs 2exzjlR2BGxBb5bJiSNf6AP9HdKXchVZf/ixQOBXXACwR6273ds7eUDN7mc2uGmTA4Qk Oi3Q== X-Gm-Message-State: APjAAAXN7GNf1BK057IE+dEqn6NhxCPUiaj6/2AV0EpjTFUXsA2UlWfT Q+4IpoNysFn6UhVFR3TXQ4zEKV+jcfBBdrP8F31PboOo X-Google-Smtp-Source: APXvYqx7kikNJpIQeqRw6eSoGX4oAz8GCFeQLSGcO9Ue9TWWuNshU68B4502YTQ8H2lqytgvpx4MPWOo64XYOLpB4lk= X-Received: by 2002:a67:b70f:: with SMTP id h15mr34857714vsf.161.1563743814475; Sun, 21 Jul 2019 14:16:54 -0700 (PDT) MIME-Version: 1.0 References: <240458a3-789a-7368-1848-e7dc66bb2eb7@gmx.ch> In-Reply-To: <240458a3-789a-7368-1848-e7dc66bb2eb7@gmx.ch> From: =?UTF-8?B?S2FtaWxhIFNvdcSNa292w6E=?= Date: Sun, 21 Jul 2019 23:16:43 +0200 Message-ID: Subject: Re: Assign an IP address to a bridge fail To: Pierre Dupond <76nemo76@gmx.ch> Cc: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 0D2416D21D X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=LMzSnDwp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kamisouckova@gmail.com designates 2607:f8b0:4864:20::e42 as permitted sender) smtp.mailfrom=kamisouckova@gmail.com X-Spamd-Result: default: False [-1.97 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[5]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.33)[-0.326,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmx.ch]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; HTTP_TO_IP(1.00)[]; IP_SCORE(-0.64)[ip: (2.40), ipnet: 2607:f8b0::/32(-3.11), asn: 15169(-2.42), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2019 21:16:55 -0000 On Sun, 21 Jul 2019, 20:30 Pierre Dupond, <76nemo76@gmx.ch> wrote: > Hi all, > > I am facing a strange problem. Just after installing a fresh > > Freebsd 12 on an Pc Engines APU machine, I build a bridge with the 4 > > network cards. > > > If I try to setup the address of the bridge in the "/etc/rc.conf" file, > I can not ping (outside the address > > given to the bridge). But if I comment the line for setting the address > in the file > > "/etc/rc.conf" and I set the address manually with the command > > "ifconfig bridge0 inet 172.16.0.11 netmask 255.255.254.0" the ping works. > > Do I have made an obvious mistake in the "rc.conf" file? What could be > the reason of this problem? > > Any ideas would be greatly appreciated. > > > best regards, > > > ----------------------------------Content of the rc.conf > file---------------------------------------------------------- > root@oche:~ # cat /tmp/rc.conf > cat: /tmp/rc.conf: No such file or directory > root@oche:~ # cat /etc/rc.conf > cloned_interfaces="bridge0" > ifconfig_bridge0="addm igb0 addm igb1 addm igb2 addm igb3 up" > ifconfig_igb0="up" > ifconfig_igb1="up" > ifconfig_igb2="up" > ifconfig_igb3="up" > ifconfig_bridge0="inet 172.16.0.11 netmask 255.255.254.0" > defaultrouter="172.16.0.10" > # > #Reste de la config > #------------------ > # > clear_tmp_enable="YES" > hostname="oche.local.sourire.ch" > sshd_enable="YES" > ntpdate_enable="YES" > ntpd_enable="YES" > powerd_enable="YES" > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable > dumpdev="AUTO" > > -----------------------------------------------Info about the bridge and > ping commands > > bridge0: flags=8843 metric 0 mtu > 1500 > ether 02:91:bc:80:6d:00 > inet 172.16.0.11 netmask 0xfffffe00 broadcast 172.16.1.255 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > groups: bridge > nd6 options=9 > root@oche:~ # ping 172.16.0.11 > PING 172.16.0.11 (172.16.0.11): 56 data bytes > 64 bytes from 172.16.0.11: icmp_seq=0 ttl=64 time=0.221 ms > 64 bytes from 172.16.0.11: icmp_seq=1 ttl=64 time=0.202 ms > 64 bytes from 172.16.0.11: icmp_seq=2 ttl=64 time=0.203 ms > ^C > --- 172.16.0.11 ping statistics --- > 3 packets transmitted, 3 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 0.202/0.209/0.221/0.009 ms > root@oche:~ # ping 172.16.0.10 > PING 172.16.0.10 (172.16.0.10): 56 data bytes > ping: sendto: Host is down > ping: sendto: Host is down > ping: sendto: Host is down > ping: sendto: Host is down > ^C > --- 172.16.0.10 ping statistics --- > 4 packets transmitted, 0 packets received, 100.0% packet loss > You're redefining ifconfig_bridge0 in your rc.conf (you have it there twice). Also, there were some issues with bridge config in rc.conf, but I don't recall the details. In any case, not having ifconfig_bridge0 twice is a good start. Best, Kamila (sent from my phone) >