Debian: remove IP from device when deleted

Version 1.43


For whatever reason, the command: /sbin/ifconfig eth0:1 del was not removing the IP from the eth0:1 device. Added extra code to the removeip script, where if: 1) the OS is debian 2) the IP is not IPv6 3) and device found is not the main device (eg not eth0, but eth0:0 is valid) Then the removeip script will use this instead: /sbin/ifconfig eth0:1 down

Interested to try DirectAdmin? Get a 30-day Free Trial!