#! /bin/sh
exec 2> /dev/null

/sbin/ip addr del "$2"/24 dev "$1"

# or alternatively:
# /sbin/ifconfig "$1":254 down


syntax highlighted by Code2HTML, v. 0.9.1