summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-11 03:37:20 (GMT)
committerChris Buechler <cmb@pfsense.org>2014-11-11 03:37:20 (GMT)
commitb0533f16c414c605d4ef1506907fdd11448f0008 (patch)
tree80810797d5b19f04a87455384d36f46ccbef069d
parent7cdfe39e4e35bd8d333ed21ce993cab60eefc016 (diff)
downloadunivnautes-b0533f16c414c605d4ef1506907fdd11448f0008.zip
univnautes-b0533f16c414c605d4ef1506907fdd11448f0008.tar.gz
univnautes-b0533f16c414c605d4ef1506907fdd11448f0008.tar.bz2
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
-rwxr-xr-xsbin/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 01ad272..30de3da 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -322,7 +322,7 @@ MEDIUM)
PREINIT)
delete_old_alias
- $IFCONFIG $interface inet 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
+ $IFCONFIG $interface inet 0.0.0.0 netmask 255.255.255.255 broadcast 255.255.255.255 up
/bin/rm -f /tmp/${interface}_router
;;