le dhcp fonctionne nickel donc on n'abandonne pas cette solution pour la

prochainne fois. Je la laisse ici. J'y metterai aussi les scripts pour le
miroir Fedora et Debian si jamais on en a encore besoin.

darcs-hash:20041112100235-4ec08-aada5c1c9416495d4bef90008279aadae8fadb43.gz
This commit is contained in:
chove 2004-11-12 11:02:35 +01:00
parent 5f60cab156
commit 82c08cf159

View file

@ -1,3 +1,4 @@
#! /bin/sh #! /bin/sh
################################### ###################################
@ -62,17 +63,17 @@ echo "138.231.136.7 debian.ens-cachan.fr ftp.crihan.fr" >> /etc/hosts
killall dnsmasq 2> /dev/null killall dnsmasq 2> /dev/null
/usr/sbin/dnsmasq /usr/sbin/dnsmasq
# dhcp # dhcp filaire
echo "start 192.168.0.10" > /tmp/udhcpd. echo "start 192.168.0.10" > /tmp/udhcpd.conf
echo "end 192.168.0.254" >> /tmp/udhcpd.conf echo "end 192.168.0.254" >> /tmp/udhcpd.conf
echo "interface vlan1" >> /tmp/udhcpd.conf echo "interface vlan1" >> /tmp/udhcpd.conf
echo "opt dns 192.168.0.1 138.231.136.6" >> /tmp/udhcpd.conf echo "opt dns 192.168.0.1 138.231.136.6" >> /tmp/udhcpd.conf
echo "option subnet 255.255.255.0" >> /tmp/udhcpd.conf
echo "option dns 138.231.136.10" >> /tmp/udhcpd.conf echo "option dns 138.231.136.10" >> /tmp/udhcpd.conf
echo "opt router 192.168.0.1" >> /tmp/udhcpd.conf echo "opt router 192.168.0.1" >> /tmp/udhcpd.conf
echo "opt netmask 255.255.255.0" >> /tmp/udhcpd.conf
killall udhcpd 2> /dev/null killall udhcpd 2> /dev/null
/usr/sbin/udhcpd /tmp/udhcpd.conf /usr/sbin/udhcpd /tmp/udhcpd.conf
EOF EOF
# envoi du fichier et execution # envoi du fichier et execution