Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-01-11 09:57:53 +0000
committerAnton Hvornum <anton@hvornum.se>2022-01-12 15:26:53 +0100
commitb9f845e2fae31922b41e6fa63170bdd05a685b4d (patch)
treed04760d8a3cf1870a752313cc8025081413cf6b9
parent697d750a64dbece971f8a33234a11a769dfdeda9 (diff)
Change default DHCP timeout to 60 seconds instead of 30 to avoid issues with STP (Spanning Tree Protocol). STP defaults to 15 + 15 seconds on a lot of popular devices for listening and learning states. Which if not disabled (which you should on access switches, sure..) most netboots will fail intermittently due to the port access on switches performing port learning while the machine is trying to get DHCP leases.
Added comment referencing to why the 60 seconds. More information can be found here: https://www.ciscopress.com/articles/article.asp?p=2832407&seqNum=6 and https://techhub.hpe.com/eginfolib/networking/docs/switches/5980/5200-3921_l2-lan_cg/content/499036677.htm
-rw-r--r--hooks/archiso_pxe_common4
1 files changed, 3 insertions, 1 deletions
diff --git a/hooks/archiso_pxe_common b/hooks/archiso_pxe_common
index 6cadc34..3c4126b 100644
--- a/hooks/archiso_pxe_common
+++ b/hooks/archiso_pxe_common
@@ -32,7 +32,9 @@ run_hook() {
fi
# setup network and save some values
- if ! ipconfig -t 20 "ip=${ip}"; then
+ # Timeout is set to 60 by default to avoid issues with STP default values
+ # (15 second listening, 15 seconds learning and 20 seconds for max age)
+ if ! ipconfig -t 60 "ip=${ip}"; then
echo "ERROR; Failed to configure network"
echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished"