Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initramfs missing default route when using a /32 IP address #1581

Open
i1052 opened this issue Feb 27, 2025 · 0 comments
Open

Initramfs missing default route when using a /32 IP address #1581

i1052 opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@i1052
Copy link

i1052 commented Feb 27, 2025

[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:

 IP-Config: e2 hardware address 12:7d:2a:aa:aa:aa mtu 1500 DHCP RARP
 IP-Config: e2 guessed broadcast address 154.11.22.33
 IP-Config: failed to set routes on e2
 IP-Config: e2 complete (dhcp from 193.250.250.250):
 address: 154.11.22.33
 broadcast: 154.11.22.33
 netmask: 255.255.255.255
 gateway: 193.250.250.250
 dns0: 1.1.1.1
 dns1: 1.0.0.1
 rootserver: 193.250.250.250 
 rootpath: filename
 Creating /etc/resolv.conf
 Begin: Trying wget https://github.com/netbootxyz/debian-squash/releases/dowmload
 /1.5-rolling-202502190007-0d0f700e/filesystem.squashfs -O /live/medium/live/filesystem.squashfs
 
 r1: (6) Could not resolve host: github.com
 BusyBox v1.35.0 (Debian 1:1.35.0-4+b3) built-in shell (ash)
 Enter 'help' for a list of built-in commands.
 (initramfs) No supported filesystem images found at /live.

If manually add the route using:

ip route add default dev e2

It will bring the network back.

To Reproduce
Steps to reproduce the behavior:

  1. boot netboot.xyz with DHCP or manually IP config.
  2. choose VyOS in Install Linux (or others like debian, same behavior)
  3. booting into initramfs then stuck at downloading live filesystem.

Expected behavior
IP-Config e2 set routes need to using ip route add default dev e2 instead of ip route add default via 193.250.250.250 when 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 .

@i1052 i1052 added the bug label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant