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:
parent
5f60cab156
commit
82c08cf159
1 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
#! /bin/sh
|
||||
|
||||
###################################
|
||||
|
@ -62,14 +63,14 @@ echo "138.231.136.7 debian.ens-cachan.fr ftp.crihan.fr" >> /etc/hosts
|
|||
killall dnsmasq 2> /dev/null
|
||||
/usr/sbin/dnsmasq
|
||||
|
||||
# dhcp
|
||||
echo "start 192.168.0.10" > /tmp/udhcpd.
|
||||
# dhcp filaire
|
||||
echo "start 192.168.0.10" > /tmp/udhcpd.conf
|
||||
echo "end 192.168.0.254" >> /tmp/udhcpd.conf
|
||||
echo "interface vlan1" >> /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 "opt router 192.168.0.1" >> /tmp/udhcpd.conf
|
||||
echo "opt netmask 255.255.255.0" >> /tmp/udhcpd.conf
|
||||
killall udhcpd 2> /dev/null
|
||||
/usr/sbin/udhcpd /tmp/udhcpd.conf
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue