ipxe / ipxe

iPXE network bootloader
https://ipxe.org
Other
1.4k stars 624 forks source link

After the network configuration fails, ipxe cannot ping through any ip address, even 127.0.0.1 #1203

Closed IAseven closed 2 months ago

IAseven commented 2 months ago

I have two physical servers of the same model and bios version on two networks. After I configure the network after ipxe is started, one server works properly while the other server cannot ping any ip address. Even if ping 127.0.0.1 is used, a timeout message is displayed. The ip and network configuration is correct when I confirm, and the network configuration is normal when I start centos7 on the machine in the network environment in question, but the network configuration is wrong only in the ipxe environment. Here is my script for configuring the network in ipxe:

#!ipxe
echo set
ifopen net0 \
&& vcreate --tag 1045 net0 \
&& set net0-1045/ip 10.230.45.118 \
&& set net0-1045/gateway 10.230.45.254 \
&& set net0-1045/netmask 255.255.255.0 \
&& sleep 1
echo ***********************************
echo vcreate --tag 1045 net0
echo set net0-1045/ip 10.230.45.118
echo set net0-1045/gateway 10.230.45.254
echo set net0-1045/netmask 255.255.255.0
echo ***********************************

echo show xxxx
show net0-1045/ip
show net0-1045/gateway
show net0-1045/netmask

ping --count 3 10.230.45.118 || shell

The following is a screenshot of the NIC of my physical machine: 图片

ipxe ping Error message

1714290268860 1714290313735

I would like to know how to use debug=xxx in make to troubleshoot this problem.

Thank you very much for your opinion