[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[résolu] Re: problème dhcp



Bonjour,

Voilà j'ai résolu mon problème grâce à un script placé dans /etc/dhcp3/dhclient-enter-hooks.d

#!/bin/bash
if [ $reason = "BOUND" ]
then
	if [ $interface = "adsl" ]
	then
		if [ -n $new_ip_address ]
		then
			echo "Adresse IP pour interface adsl : "$new_ip_address
			. /usr/local/sbin/firewall.sh "$@"
		fi
	fi
fi

Gaëtan



Reply to: