Project

General

Profile

« Previous | Next » 

Revision b0533f16

Added by Chris Buechler almost 10 years ago

Setting an interface's IP to 0.0.0.0 with mask 0.0.0.0 overwrites the
default route with that interface's link route. Later in dhclient, that
gets deleted and leaves the system with no default route. Using a /32 mask
here works in every scenario I can find, and stops the default route
deletion issues. Ticket #3941

View differences:

sbin/dhclient-script
322 322

  
323 323
PREINIT)
324 324
	delete_old_alias
325
	$IFCONFIG $interface inet 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
325
	$IFCONFIG $interface inet 0.0.0.0 netmask 255.255.255.255 broadcast 255.255.255.255 up
326 326
	/bin/rm -f /tmp/${interface}_router
327 327
	;;
328 328

  

Also available in: Unified diff