diff options
author | Ted Lemon <source@isc.org> | 2001-08-09 09:53:27 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-08-09 09:53:27 +0000 |
commit | 9a89acfba41fe559a93168b6774a60daa5282195 (patch) | |
tree | b3c5e9b0fd9d0d432435632b14e5016356d09fda | |
parent | 6394ebcfd3a0890f0d952d4cadf6be83637a7ea0 (diff) | |
download | isc-dhcp-9a89acfba41fe559a93168b6774a60daa5282195.tar.gz |
Do an ifconfig 0 when initializing the interface on Linux 2.2and later.
-rwxr-xr-x | client/scripts/linux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/scripts/linux b/client/scripts/linux index 71d00ab3..6598b90e 100755 --- a/client/scripts/linux +++ b/client/scripts/linux @@ -90,7 +90,7 @@ if [ x$reason = xPREINIT ]; then # Add route to make broadcast work. Do not omit netmask. route add default dev $interface netmask 0.0.0.0 else - ifconfig $interface up + ifconfig $interface 0 up fi # We need to give the kernel some time to get the interface up. @@ -122,7 +122,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]; then # IP address changed. Bringing down the interface will delete all routes, # and clear the ARP cache. - ifconfig $interface inet down + ifconfig $interface inet 0 down fi if [ x$old_ip_address = x ] || [ x$old_ip_address != x$new_ip_address ] || \ @@ -157,7 +157,7 @@ if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ] || [ x$reason = xRELEASE ] \ fi if [ x$old_ip_address != x ]; then # Shut down interface, which will delete routes and clear arp cache. - ifconfig $interface inet down + ifconfig $interface inet 0 down fi if [ x$alias_ip_address != x ]; then ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg @@ -190,7 +190,7 @@ if [ x$reason = xTIMEOUT ]; then make_resolv_conf exit_with_hooks 0 fi - ifconfig $interface inet down + ifconfig $interface inet 0 down exit_with_hooks 1 fi |