At 18:52 10/09/00, you wrote:
>Bonsoir !
>
>Voil� : j'ai fait un peit tour sur L�a (si je peux m'exprimer ainsi ;-) pour
>configurer un r�seau local (2 PC), mais je n'y arrive pas...
>
>.....
>
>J'ai donc essay� autrement, avec dhcpd, mais du coup, je n'ai pas de
>"/etc/dhcpd.conf", donc la commande
>dhcpd -d eth0 ne fonctionne pas.
>
>Par o� commencer ?????
Le fichier dhcpd.conf de /etc/rc.d : [Voir signification des param�tres
dans man dhcpd]
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
subnet 192.168.126.0 netmask 255.255.255.0 {
range 192.168.126.50 192.168.126.60;
option subnet-mask 255.255.255.0;
default-lease-time 6000;
max-lease-time 72000;
option domain-name "locale.loc";
option domain-name-servers 192.168.126.1,62.161.120.41;
option routers 192.168.126.1;
}-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
et le fichier dhcpd du rep /etc/rc.d/init.d (de lancement du daemon)
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
# See how we were called.
case "$1" in
start)
# Start daemons.
# # Note that this work around assumes only using eth0!!!
# echo -n "Adding local broadcast host route: "
# /sbin/route add -host 255.255.255.255 dev eth0
echo -n "Starting dhcpd: "
----> A modifier pour affecter de serveur dhcpd � la bonne carte r�seau
(eth0, eth1 ou autre)
daemon /usr/sbin/dhcpd eth1
<-----
echo
touch /var/lock/subsys/dhcpd
;;
stop)
# Stop daemons.
echo -n "Shutting down dhcpd: "
killproc dhcpd
echo
rm -f /var/lock/subsys/dhcpd
# echo -n "Killing host route we defined at startup: "
# /sbin/route del 255.255.255.255
echo
;;
restart)
$0 stop
$0 start
;;
status)
status dhcpd
;;
*)
echo "Usage: dhcpd {start|stop|restart|status}"
exit 1
esac
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*