Hi, I tried changing the DHCP_MAX_TIMEOUT value to 64 in dhcp.h.
As a result, I did have the requested DHCP attempts 1,2,4,8,16 and 32, but after the last attempt I did wait 1min for thr DHCP to break, which is bad user experience when DHCP is not configured. Any idea what parameter should be changed in On Mon, Aug 20, 2012 at 9:36 AM, Ján ONDREJ (SAL) <[email protected]>wrote: > Portfast is not always useable. Sometimes for trunk ports with native vlan > portfast is not enough. Sometimes I can't set portfast due to users, > which can make a cycle in network. Sometimes I has no access to providers > switch and can't set it. > > I too prefer a way to set a timeout for DHCP. Can you consider to add > "dhcp --timeout=XX" option? > > I agree, that default timeout is OK, but ability to set it by user > can be useful. > > SAL > > On Mon, Aug 20, 2012 at 01:21:06AM +0000, [email protected] wrote: > > Itay, > > > > Sounds like "portfast" is interfering... > > > > > http://www.cisco.com/en/US/tech/tk389/tk621/technologies_tech_note09186a008009482f.shtml > > > > Best, > > > > Matt > > > > On , Itay Gazit <[email protected]> wrote: > > >Thanks Michael, > > > > >I have another timeout question, we found a CISCO switch where the > > >spanning tree does not forward packets for almost 1min. > > > > >I would like to change the DHCP timeout to try 0.5,1,2,4,8,16,32, > > >and few seconds after quit. > > > > > > > > >Thanks, > > > > >Itay > > > > >On Fri, Aug 3, 2012 at 12:05 AM, Michael Brown > > >[email protected]> wrote: > > > > > > >On Wednesday 01 Aug 2012 12:24:48 Itay Gazit wrote: > > > > > > > > > > >> Does anyone know how can I enlarge the timeout for the image fetch. > > > > > > >> > > > > > > >> I have some network issues and I would like to change it from > > >{0.5, 1, 2, > > > > > > >> 4, 8} to {0.5, 1, 2, 4, 8, 16, 32}? > > > > > > > > > > > > > > > > >Changing DEFAULT_MAX_TIMEOUT in include/ipxe/retry.h would do that. If > you > > > > > > >want to limit the change to a single protocol, then modifying the timer > > > > > > >object's max_timeout immediately after timer_init() will work; see > > >net/arp.c. > > > > > > > > > > > > >Michael > > > > > > > > > > > > > > > > > > > _______________________________________________ > > ipxe-devel mailing list > > [email protected] > > https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel > > _______________________________________________ > ipxe-devel mailing list > [email protected] > https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel >
_______________________________________________ ipxe-devel mailing list [email protected] https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

