mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 15:15:56 +03:00
[GH-ISSUE #1581] Initramfs missing default route when using a /32 IP address #517
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#517
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @i1052 on GitHub (Feb 27, 2025).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1581
[bug]: This bug persists when IP address is x.x.x.x/32 and the gateway address isn't in same subnet. Some VPS providers offer you a /32 IP address and it works fine in ubuntu/debian etc.
Describe the bug
If the initramfs going to downloading the live filesystem from github.com , it will stuck in resolving domain because no network connection. The log shows:
If manually add the route using:
It will bring the network back.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
IP-Config e2 set routes need to using
ip route add default dev e2instead ofip route add default via 193.250.250.250when the interface IP is /32.Additional context
The netmask of those IPs is /32 because the tweaked configuration is as if they're not sitting in any network: they only need their gateway. The gateway's IP route has to be explicitly added directly on the interface.
The bug can be relate to #1485 .
@btlogy commented on GitHub (Feb 3, 2026):
I've bumped into this issue on Debian 12.13 with initramfs-tools 0.142+deb12u3 hosted on Scaleway.
But I had to workaround it with 2
ip routecommands instead: