ip addr show
ip addr show
if test "${ip_method}" = "dhcp"; then
dhclient ${iface}
elif test "${ip_method}" = "ip"; then
ip addr show dev ${iface} | grep "inet " | (while read a b c; do ip addr del $b dev ${iface}; done)
ip addr add ${ip} dev ${iface}
fi
ip addr show dev ${iface} | grep "inet " | (while read a b c; do ip addr del $b dev ${iface}; done)
ip link set ${iface} down
ip link set ${iface} up