From nobody Sat May 6 20:42:02 2023 X-Original-To: questions@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 4QDKH72jpwz496T8 for ; Sat, 6 May 2023 20:42:11 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (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 (2048 bits) client-digest SHA256) (Client CN "discoveriesinwood.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDKH56nb2z40y3 for ; Sat, 6 May 2023 20:42:09 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org; dmarc=none Received: from [192.168.151.122] (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.16.1/8.16.1) with ESMTP id 346Kg2ag009398 for ; Sat, 6 May 2023 14:42:02 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <29781401-994b-a01e-bc83-63d10fcd5b45@dreamchaser.org> Date: Sat, 6 May 2023 13:42:02 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 Subject: Re: no traffic from guest to host. guest can't get a dhcp response. ping says no route to host. Content-Language: en-US To: questions@freebsd.org References: <85ca379a-830d-897a-c2ed-240c9aca687a@Gmail.com> From: Gary Aitken Reply-To: freebsd@dreamchaser.org In-Reply-To: <85ca379a-830d-897a-c2ed-240c9aca687a@Gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (nightmare.dreamchaser.org [192.168.151.101]); Sat, 06 May 2023 14:42:02 -0600 (MDT) X-Spamd-Result: default: False [0.41 / 15.00]; NEURAL_SPAM_LONG(0.92)[0.918]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_MEDIUM(-0.12)[-0.121]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_SHORT(-0.09)[-0.090]; R_DKIM_NA(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4QDKH56nb2z40y3 X-Spamd-Bar: / X-ThisMailContainsUnwantedMimeParts: N On 5/6/23 05:43, Steven Friedrich wrote: > On my host: > > re0: flags=8943 > metric 0 mtu 1500 > options=8209b > > ether 10:62:e5:02:ef:45 > inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255 media: > Ethernet autoselect (1000baseT ) status: active nd6 > options=29 lo0: > flags=8049 metric 0 mtu 16384 > options=680003 inet6 > ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet > 127.0.0.1 netmask 0xff000000 groups: lo nd6 > options=21 bridge0: > flags=8843 metric 0 mtu 1500 > ether 58:9c:fc:00:1b:70 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: > re0 flags=143 ifmaxaddr 0 port 1 > priority 128 path cost 55 groups: bridge nd6 > options=9 vm-public: > flags=8843 metric 0 mtu 1500 > ether 52:5a:45:37:95:e7 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 vm-switch viid-4c918@ nd6 options=9 > > > on my guest: > > ifconfig vtnet0: flags=8822 metric 0 mtu 1500 options=80028 VLAN_MTU,JUMBO_MTU,LINKSTATE>X,MULTICAST > metric 0 mtu 15 > ether 58:9c:fc:0f:ef:34 media: Ethernet autoselect > (10Gbase-T ) status: active nd6 > options=29 lo0: flags=8049 metric 0 mtu 16384 > options=680003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 groups: lo > nd6 options=21 > no traffic from guest to host. guest can't get a dhcp response. ping > says no route to host. > > I tried dhclient bridge0 on the host and it assigned an ip adx to > bridge0, but had no relief in the guest. > > i am not able to get guest access to the host. what can i do? I don't know anything about the vtnet driver for virtual hosts, nor whether or not what you're running should automatically assign the vtnet0 device an IP address. Is there a dhcpd (dhcp server) running on the host system? That's where the client will get its IP address from. See man 8 dhcpd and man 5 dhcpd.conf There's no route (and ping doesn't work) because there is no address assigned to the vtnet0 interface on the guest system. netstat -rn should show your existing routes Gary