All pastes #808595 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-12-07 19:19 UTC
rendered paste body
cemoi@cemoi-gusty:~$ sudo apt-get install dhcp
[sudo] password for cemoi:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  fakeroot debhelper module-assistant intltool-debian xserver-xorg-dev
  g++-4.1 po-debconf g++ libstdc++6-4.1-dev gettext dpkg-dev html2text patch
  dh-make dpatch build-essential
Veuillez utiliser « apt-get autoremove » pour les supprimer.
Les NOUVEAUX paquets suivants seront installés :
  dhcp
0 mis à jour, 1 nouvellement installés, 0 à enlever et 1 non mis à jour.
Il est nécessaire de prendre 112ko dans les archives.
Après dépaquetage, 307ko d'espace disque supplémentaires seront utilisés.
Réception de : 1 http://fr.archive.ubuntu.com gutsy-updates/universe dhcp 2.0pl5dfsg1-20ubuntu1.2 [112kB]
112ko réceptionnés en 1s (69,0ko/s) 
Sélection du paquet dhcp précédemment désélectionné.
(Lecture de la base de données... 197386 fichiers et répertoires déjà installés.)
Dépaquetage de dhcp (à partir de .../dhcp_2.0pl5dfsg1-20ubuntu1.2_i386.deb) ...
Paramétrage de dhcp (2.0pl5dfsg1-20ubuntu1.2) ...
Generating /etc/default/dhcp...

Please note that if you are installing the DHCP server for the first
time you need to configure it first. Please stop (/etc/init.d/dhcp
stop) the DHCP server daemon, edit /etc/dhcpd.conf to suit your needs
and particular configuration, and restart the DHCP server daemon
(/etc/init.d/dhcp start).

You also need to edit /etc/default/dhcp to specify the interfaces dhcpd
should listen to. By default it listens to eth0.

NOTE: dhcpd's messages are being sent to syslog. Look there for
diagnostics messages.

Starting DHCP server: dhcpd failed to start - check syslog for diagnostics.

cemoi@cemoi-gusty:~$ sudo gedit /etc/dhcpd.conf
[sudo] password for cemoi:
cemoi@cemoi-gusty:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                         There is already a pid file /var/run/dhclient.eth0.pid with pid 11820
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:0e:a6:43:f4:33
Sending on   LPF/eth0/00:0e:a6:43:f4:33
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
RTNETLINK answers: No such process
There is already a pid file /var/run/dhclient.eth0.pid with pid 134519120
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:0e:a6:43:f4:33
Sending on   LPF/eth0/00:0e:a6:43:f4:33
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.10 -- renewal in 128356 seconds.
Set 'tap0' persistent and owned by uid 1000
                                                                        [ OK ]