From owner-freebsd-net@freebsd.org Wed May 30 21:53:44 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE5BCF7221E for ; Wed, 30 May 2018 21:53:43 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-ot0-x243.google.com (mail-ot0-x243.google.com [IPv6:2607:f8b0:4003:c0f::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B6877D126 for ; Wed, 30 May 2018 21:53:43 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: by mail-ot0-x243.google.com with SMTP id y10-v6so22961528otg.10 for ; Wed, 30 May 2018 14:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=coLoaJHRY54CgvXH6ojbMcZViA9ZUpkUNzip/0wuWCI=; b=d2tbmitD4a5zjuJK4xFBGtqH2yGLI+hddGjwdx9ipImYhdOuNcVVNseXLRrsturhKY 4ib3vDHkjzJ4Uphhk695rakjcggNXb7pdATOpv0C0HDj29Y9umVfCTvFNony+azU5W3i WS1X1XUDu1JOxgtvE5c4aNhHip2nimqcjzvN5buxYq+J8ihm6bC1nPjAeLrwXxlOL5kE hcn2Qu7GX5UbeQ2u/ZQaxiwmqewZIQN83oGBi+UfkkXJbU4umj5xSnFzaCAMpZ+GlG9G lrPPjr1yw9sPcsHlw+/eob0uz1GCabPLxuDNFWIxZH+vqNxV35u+MJuPbFY0mPeQpM9F p9iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=coLoaJHRY54CgvXH6ojbMcZViA9ZUpkUNzip/0wuWCI=; b=TOrL8qFNiTX2u/uzQbnNBdMoUq3Als6Ap7ybCjhFj4Q/ANZ2BepOfYpAT98U+rXPjQ y+SPQ7k+l+KuZA+7k2AgBMX8Qnm5fjS4mUcfQ9bm7LY0k/Kpah8zbUavufcck5J9N88E brw7l/hqbfxCxEB+G0EkQRaHCpGZNU8+90pFYn8UZL1LwL69Be6LzTmGwkfyXU689DWO nUbJbYG25n0pDkjEx3Q35ODZVmHsxotwOj5f76gQRAsEDfZHajdGFfODnx91k4dsAePl EWZwQeuFt4OpxEDWjnKqVK9LldCBzuMcBZIcMmipdVfVrq4lP6JD1+KGMTg6zzqLdm9m WwOg== X-Gm-Message-State: ALKqPwckzxw82RseiJryo8uBAEYmfnV+29kx0U/umDUTV02ERZAJPOZy GGsmedxLbyWxGY+H7FSr+JvKYdYOHmvv/uszWVk= X-Google-Smtp-Source: ADUXVKJcl3KiVI7fc/Cmof+K0H7Z96bxNU3xLY6y0qn7OHfHRuQ6lan753u1H5K7oQKobv6mv56X6IN/XCTwauqM6rU= X-Received: by 2002:a9d:155a:: with SMTP id z26-v6mr3077462otz.355.1527717222418; Wed, 30 May 2018 14:53:42 -0700 (PDT) MIME-Version: 1.0 Sender: kmacybsd@gmail.com Received: by 2002:a9d:3f0:0:0:0:0:0 with HTTP; Wed, 30 May 2018 14:53:42 -0700 (PDT) In-Reply-To: <201805302148.w4ULmsq4073733@pdx.rh.CN85.dnsmgr.net> References: <876034evol.wl-herbert@gojira.at> <201805302148.w4ULmsq4073733@pdx.rh.CN85.dnsmgr.net> From: "K. Macy" Date: Wed, 30 May 2018 14:53:42 -0700 X-Google-Sender-Auth: E-olo0gY97gp-MEOKqMkACxMmWI Message-ID: Subject: Re: 'no route to host" for cloned lo1 iface 12.0-CURRENT r334376+56a973815425(master) amd64 To: "Rodney W. Grimes" Cc: "Herbert J. Skuhra" , freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2018 21:53:44 -0000 Could you please try 334117 vs 334118 and see if 334118 introduces this regression? -M On Wed, May 30, 2018 at 2:48 PM, Rodney W. Grimes wrote: >> On Wed, 30 May 2018 17:46:06 +0200, "Rodney W. Grimes" wrote: >> > >> > > On Wed, May 30, 2018 at 07:44:52AM -0700, Rodney W. Grimes wrote: >> > > > > On Wed, May 30, 2018 at 03:59:12PM +0200, Andreas Nilsson wrote: >> > > > > > On Wed, May 30, 2018 at 3:40 PM, Dave Cottlehuber wrote: >> > > > > > >> > > > > > > I have 10.241.0.0-15/16 bound to lo1 for jails, and I just realised it >> > > > > > > doesn't work anymore. Boxes at $DAYJOB use the same config and work just >> > > > > > > fine on 11.1R/amd64, otherwise I'd be fired.... this used to work ~ 1 month >> > > > > > > ago, both on my desktop, and my laptop, and now doesn't. >> > > > > > > >> > > > > > > Have I mis-configured something blindingly obvious here before I embark >> > > > > > > on a lengthy bisect? >> > > > > > > >> > > > > > > # grep -v \# /etc/rc.conf , elided >> > > > > > > hostname=akai >> > > > > > > kld_list="${kld_list} if_iwm if_axge if_ure if_ue" >> > > > > > > ifconfig_ue0=DHCP >> > > > > > > ifconfig_ue0_ipv6="inet6 accept_rtadv" >> > > > > > > wlans_iwm0="wlan0" >> > > > > > > ifconfig_wlan0="WPA DHCP" >> > > > > > > ifconfig_wlan0_ipv6="inet6 accept_rtadv" >> > > > > > > create_args_wlan0="country AT regdomain ETSI" >> > > > > > > cloned_interfaces="${cloned_interfaces} lo1" >> > > > > > > ifconfig_lo1_aliases="inet 10.241.0.0-15/16" >> > > > > > > ip6addrctl_policy="ipv4_prefer" >> > > > > > > >> > > > > > > # netstat -4rn >> > > > > > > Internet: >> > > > > > > Destination Gateway Flags Netif Expire >> > > > > > > default 172.16.2.1 UGS ue0 >> > > > > > > 10.241.0.0 link#4 UH lo1 >> > > > > > > 10.241.0.1 link#4 UH lo1 >> > > > > > > 10.241.0.2 link#4 UH lo1 >> > > > > > > 10.241.0.3 link#4 UH lo1 >> > > > > > > 10.241.0.4 link#4 UH lo1 >> > > > > > > 10.241.0.5 link#4 UH lo1 >> > > > > > > 10.241.0.6 link#4 UH lo1 >> > > > > > > 10.241.0.7 link#4 UH lo1 >> > > > > > > 10.241.0.8 link#4 UH lo1 >> > > > > > > 10.241.0.9 link#4 UH lo1 >> > > > > > > 10.241.0.10 link#4 UH lo1 >> > > > > > > 10.241.0.11 link#4 UH lo1 >> > > > > > > 10.241.0.12 link#4 UH lo1 >> > > > > > > 10.241.0.13 link#4 UH lo1 >> > > > > > > 10.241.0.14 link#4 UH lo1 >> > > > > > > 10.241.0.15 link#4 UH lo1 >> > > > > > > 127.0.0.1 link#1 UH lo0 >> > > > > > > 172.16.2.0/24 link#2 U ue0 >> > > > > > > 172.16.2.92 link#3 UHS lo0 >> > > > > > > 172.16.2.93 link#2 UHS lo0 >> > > > > > > >> > > > > > > # ifconfig >> > > > > > > lo0: flags=8049 metric 0 mtu 16384 >> > > > > > > options=680003 >> > > > > > > inet6 ::1 prefixlen 128 >> > > > > > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 >> > > > > > > inet 127.0.0.1 netmask 0xff000000 >> > > > > > > nd6 options=21 >> > > > > > > groups: lo >> > > > > > > ue0: flags=8843 metric 0 mtu 1500 >> > > > > > > options=8000b >> > > > > > > ether 74:da:38:d8:fe:a7 >> > > > > > > inet6 fe80::76da:38ff:fed8:fea7%ue0 prefixlen 64 scopeid 0x2 >> > > > > > > inet 172.16.2.93 netmask 0xffffff00 broadcast 172.16.2.255 >> > > > > > > nd6 options=23 >> > > > > > > media: Ethernet autoselect (1000baseT ) >> > > > > > > status: active >> > > > > > > wlan0: flags=8943 metric >> > > > > > > 0 mtu 1500 >> > > > > > > ether 00:28:f8:d0:91:52 >> > > > > > > inet6 fe80::228:f8ff:fed0:9152%wlan0 prefixlen 64 scopeid 0x3 >> > > > > > > inet 172.16.2.92 netmask 0xffffff00 broadcast 172.16.2.255 >> > > > > > > nd6 options=23 >> > > > > > > media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g >> > > > > > > status: associated >> > > > > > > ssid skunkwerks channel 6 (2437 MHz 11g) bssid 80:2a:a8:5a:bd:3f >> > > > > > > regdomain ETSI country AT authmode WPA2/802.11i privacy ON >> > > > > > > deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 scanvalid 60 >> > > > > > > protmode CTS wme roaming MANUAL >> > > > > > > groups: wlan >> > > > > > > lo1: flags=8049 metric 0 mtu 16384 >> > > > > > > options=680003 >> > > > > > > inet 10.241.0.0 netmask 0xffff0000 >> > > > > > > inet 10.241.0.1 netmask 0xffffffff >> > > > > > > inet 10.241.0.2 netmask 0xffffffff >> > > > > > > inet 10.241.0.3 netmask 0xffffffff >> > > > > > > inet 10.241.0.4 netmask 0xffffffff >> > > > > > > inet 10.241.0.5 netmask 0xffffffff >> > > > > > > inet 10.241.0.6 netmask 0xffffffff >> > > > > > > inet 10.241.0.7 netmask 0xffffffff >> > > > > > > inet 10.241.0.8 netmask 0xffffffff >> > > > > > > inet 10.241.0.9 netmask 0xffffffff >> > > > > > > inet 10.241.0.10 netmask 0xffffffff >> > > > > > > inet 10.241.0.11 netmask 0xffffffff >> > > > > > > inet 10.241.0.12 netmask 0xffffffff >> > > > > > > inet 10.241.0.13 netmask 0xffffffff >> > > > > > > inet 10.241.0.14 netmask 0xffffffff >> > > > > > > inet 10.241.0.15 netmask 0xffffffff >> > > > > > > nd6 options=29 >> > > > > > > groups: lo >> > > > > > > bridge0: flags=8843 metric 0 mtu >> > > > > > > 1500 >> > > > > > > description: vm-public >> > > > > > > ether 02:63:d4:40:fe:00 >> > > > > > > nd6 options=1 >> > > > > > > groups: bridge >> > > > > > > id 00:00:00:00:00:00 priority 0 hellotime 2 fwddelay 15 >> > > > > > > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 >> > > > > > > root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0 >> > > > > > > member: wlan0 flags=143 >> > > > > > > ifmaxaddr 0 port 3 priority 128 path cost 370370 >> > > > > > >> > >> > > > > > >> > > > > > could you specify what exactly isn't working? How does the bridge fit into >> > > > > > this setup? >> > > > > > >> > > > > > Best regards >> > > > > > Andreas >> > > > > >> > > > > Hi, >> > > > > >> > > > > I think the problem is "No route to host". >> > > > >> > > > What command is trying to execute when this error is returned >> > > > would help a great deal in trying to understand why it failed. >> > > >> > > I've just added the lines >> > > >> > > cloned_interfaces="lo1" >> > > ifconfig_lo1_aliases="inet 10.241.0.0-15/16" >> > > >> > > to my rc.conf and rebooted. >> > > >> > > % ping 10.241.0.0 >> > > PING 10.241.0.0 (10.241.0.0): 56 data bytes >> > > ping: sendto: No route to host >> > > >> > > Changed lines to >> > > >> > > cloned_interfaces="lo1" >> > > ifconfig_lo1="inet 10.241.0.0 netmask 0xffff0000" >> > That is technically an invalid ifconfig. >> > Your not suppose to use the "0"th host of a network. >> > >> > > ifconfig_lo1_aliases="inet 10.241.0.1-15 netmask 0xffffffff" >> > > >> > > and rebooted. >> > > >> > > % ping 10.241.0.0 >> > > PING 10.241.0.0 (10.241.0.0): 56 data bytes >> > > 64 bytes from 10.241.0.0: icmp_seq=0 ttl=64 time=0.085 ms >> > >> > Sending a packet to the "0"th IP on a network has special >> > meaning, I just can not recall or find right now what that >> > special meaning is and where it is documented. Is it >> > "this host" on that network? >> > >> > Either way it is invalid to configure a "host" at an address >> > that the host part of a ip address is all 0's, as that is >> > reserved to mean "the network". >> > >> > Not that 10.241.1.0 IS a valid address, because of the subnet mask >> > being /16 the host part contains 1.0, a valid non zero host part. >> >> Thanks. I wouldn't use such a network configuration myself. Just >> wondering why one example works and the other doesn't although output >> of e.g. ifconfig and netstat looks the same. And why Daves' configuration >> worked before and nolonger does. > > Those are very good questions, and we should research into > the answers for them. I suspect that this may of come about > from the changes in the way the routing code works that use > to reject the use of a "0" host address and no longer does. > > -- > Rod Grimes rgrimes@freebsd.org > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"