From owner-freebsd-xen@freebsd.org Fri Jan 10 10:58:36 2020 Return-Path: Delivered-To: freebsd-xen@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 9ABDD1E38BD for ; Fri, 10 Jan 2020 10:58:36 +0000 (UTC) (envelope-from SRS0=+A+2=27=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47vKj73sMQz4T5W for ; Fri, 10 Jan 2020 10:58:35 +0000 (UTC) (envelope-from SRS0=+A+2=27=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 609CB28417; Fri, 10 Jan 2020 11:58:32 +0100 (CET) Received: from illbsd.quip.test (ip-62-24-92-232.net.upcbroadband.cz [62.24.92.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 8449F28416; Fri, 10 Jan 2020 11:58:30 +0100 (CET) Subject: Re: bridge0 settings for VMs To: Stefan Parvu , freebsd-xen@freebsd.org References: <6470B729-33DA-430B-9286-A645EEE4BE2D@kronometrix.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <0d0c17b1-4da1-ba98-fe7c-09184166fe15@quip.cz> Date: Fri, 10 Jan 2020 11:58:31 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: <6470B729-33DA-430B-9286-A645EEE4BE2D@kronometrix.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 47vKj73sMQz4T5W X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=@elsa.codelab.cz has no SPF policy when checking 94.124.105.4) smtp.mailfrom=SRS0=@elsa.codelab.cz X-Spamd-Result: default: False [4.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.87)[ip: (0.36), ipnet: 94.124.104.0/21(0.18), asn: 42000(3.71), country: CZ(0.09)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[quip.cz]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.93)[0.931,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.105.124.94.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(1.00)[0.998,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[000.fbsd@quip.cz,SRS0=@elsa.codelab.cz]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ]; TAGGED_FROM(0.00)[A,2=27=quip.cz=000.fbsd]; FROM_NEQ_ENVFROM(0.00)[000.fbsd@quip.cz,SRS0=@elsa.codelab.cz] X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2020 10:58:36 -0000 Stefan Parvu wrote on 2020/01/10 10:31: > Hi, > > Under the documentation [1] there are pointers about how one would define an interface for all domUs. > Now the documentation says: > > # sysrc cloned_interfaces="bridge0" > # sysrc ifconfig_bridge0="addm em0 SYNCDHCP" > # sysrc ifconfig_em0=“up” > > where em0 is the main interface. > > Now I have server which has a functional em1 interface running and configured. I want to define a bridge0 interface for all domains, but not to use DHCP, because I dont have a DHCP server on that network. > > Any ideas how shall I configure the bridge0 interface using ifconfig_bridge0=“..." Just remove SYNCDHCP For example: cloned_interfaces="bridge0 tap0" ifconfig_bridge0="addm bge0 up addm tap0 up" It will create bridge0 with bge0 and tap0 as a members. bridge0: flags=8843 metric 0 mtu 1500 ether 02:71:2c:00:ca:00 nd6 options=9 groups: bridge 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 member: tap0 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: bge0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 55 Kind regards Miroslav Lachman