[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1064005: marked as done (netcfg: "get_netmask string 255.255.255.255" not working)



Your message dated Tue, 28 May 2024 21:17:09 +0000
with message-id <E1sC4Bx-00CrLp-12@fasolo.debian.org>
and subject line Bug#1064005: fixed in netcfg 1.187+deb12u1
has caused the Debian Bug report #1064005,
regarding netcfg: "get_netmask string 255.255.255.255" not working
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1064005: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064005
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: netcfg
Version: 1.187
Severity: normal

Dear Maintainer,

Setting a netmask of 255.255.255.255 (in my case using preseed, but I guess the same happens if using the UI)
fails the installer with Unreachable gateway (even if the gateway is set).
I agree it can be seen as an odd setup, but it's valid and works when configured manually in busybox and Linux.
My usecase is creating routed Debian VMs, where the host have a static route to the guest's IP (or v6 /128).
With a smaller subnet (like /23), we would have to use proxy ARP which is usually not recommended.

You can see more information in:
https://phabricator.wikimedia.org/phame/post/view/312/ganeti_on_modern_network_design/

My current workaround is to use a smaller netmask then run the following in early_command:
IFACE=$(ip -4 route list 0/0 | sed -r 's/.*dev ([^ ]*) .*/\1/' | head -1)
IP="$(ip address show dev $IFACE | egrep '^[[:space:]]+inet ' | cut -d ' ' -f 6 | cut -d '/' -f 1)"
ip addr del $IP dev $IFACE
ip addr add $IP/32 dev $IFACE
ip route add 10.192.24.1 dev $IFACE scope link
ip route add default via 10.192.24.1

Right after "netcfg"
It would of course be cleaner if netcfg were to handle a /32 "out of the box".

Similarly, DHCP can allocate such IPs, see for example :
https://blog.fhrnet.eu/2020/03/07/dhcp-server-on-a-32-subnet/
I haven't tested DHCP in Debian Installer with such setup though.

Please let me know if I can be of any help.

Thanks

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-18-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: netcfg
Source-Version: 1.187+deb12u1
Done: Colin Watson <cjwatson@debian.org>

We believe that the bug you reported is fixed in the latest version of
netcfg, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1064005@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated netcfg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 21 May 2024 17:32:45 +0100
Source: netcfg
Architecture: source
Version: 1.187+deb12u1
Distribution: bookworm
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1064005
Changes:
 netcfg (1.187+deb12u1) bookworm; urgency=medium
 .
   * Handle routing for single-address netmasks (closes: #1064005).
Checksums-Sha1:
 7e3dbc53ae323a06de302abfe913e6250999ca55 1929 netcfg_1.187+deb12u1.dsc
 b4d9351abcc72e6623d08f7ce1a5ad6cc4e6e2d1 403188 netcfg_1.187+deb12u1.tar.xz
Checksums-Sha256:
 b15307ed1ec700e3c41c6f2a41a468a7e6aad4ba86f36716b9b24f5b3e166c4d 1929 netcfg_1.187+deb12u1.dsc
 a3bdde6687b8489b97e7d0ebb08edee3466f3a3b048a90c9d7125863502039ef 403188 netcfg_1.187+deb12u1.tar.xz
Files:
 bcd770b14c476c7c87fd7eeee3d6d04d 1929 debian-installer optional netcfg_1.187+deb12u1.dsc
 bd15007249be40c9041d1d0178ecb755 403188 debian-installer optional netcfg_1.187+deb12u1.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmZMzRoACgkQOTWH2X2G
UAscLRAAo/M1CE6pPU6mUJwspR5FS1IRVIpQN9Qg2yWS/sYINx8VI0+AxEWVgQ30
9qTsNIl4ZVaSKLMDghkTTF8jN9SOMtnlvNpZn5P7x/oRLeBYhDe5guParHv4ozQz
vs0HeCuYKdVa8v6riBnhvA1JAvwCk6AXomunys+ZoIxNeqLsW3A0GauoAQRRwsWg
JrdupiBucfdQw0hY11ZdX7flHhwGDulZEnagtnlzJhpbix3rfnncbRUKCMi78C8N
6vLQRbMaUKIjnKcwfjwb7x+ffxHWzqr3nIqi4U7ZKLUFJ0uVAQnKX0PTraypHNrj
sMQ+oFsdyjZhEVkgfwgFWC4qsNy0mzPzX+1LjQDgwatxwLcQPoVvTaMweQJpQ5M4
aSquoIY0FGBtxS0WkQ+fJlTuRVlyNy4Bxvik6DyAwTpO0vpX7xSfPfcSE9WSH6Ko
vl2/mAuVOM+bttzYIgX9jICnOcgB9IzmnD943m0nOrGnoWj8J0RQ0qotrF7nY01l
uaTUFMWwqElsfaZIMzuS1xyUKmZkW8fMj4/0pcEQhiikF5q0TALNcYpJ16uSV0MY
ISAwMy6AEQF2so5FTRhHsGE6drBj17OwdZF+/wuXuH85Z0HeKCGWS2r7phZPzWNq
8rCdcHEiv34upT8Yn6hoMBdShMrcdFVoanAPR6bD9n8zck/RY9Y=
=EKTY
-----END PGP SIGNATURE-----

Attachment: pgpcnz_dd_Z99.pgp
Description: PGP signature


--- End Message ---

Reply to: