Re: Donner une adresse IP a localhost
>> Est-ce que vous vouriez me dire comme donner une IP a localhost ? Je pensait que ca le faisait tout seul... 'faut croire que non et moi, je suis pomme...
>
>Il faut avoir "127.0.0.1 localhost" dans /etc/hosts
Merci a tous pour vos reponses ! Voila les messages d'erreurs :
Voici le message d'erreur initial :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nc@amaroli:~$ lpr fichier
Get_local_host: 'localhost' IP address not available!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Avec mon fichier /etc/hosts :
~~~~~~~~~~/etc/hosts~~~~~~~~~~~~~~
127.0.0.1 amaroli
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Et mon /etc/network/interfaces:
~~~~/etc/network/interfaces~~~~~
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ping de localhost :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nc@amaroli:~$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote localhost 64 chars, ret=-1
--- localhost ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ping de amaroli (c'est mon hostname):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nc@amaroli:~$ ping amaroli
PING amaroli (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote amaroli 64 chars, ret=-1
--- amaroli ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Apres avoir modifier mon /etc/hosts en rajoutant la ligne "127.0.0.1 localhost" comme ceci :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#host2:
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Le message d'erreur a disparu au boot mais quand j'essai d'imprimer, j'ai ca :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nc@amaroli:~$ lpr fichier
Status Information:
sending job 'nc@amaroli+273' to lp@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - Network is unreachable
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Vous y comprenez quelques chose vous ? Parce moi je nage... :(
Comment faut-il modifier /etc/hosts ? Qu'est ce qu'y cloche ?
J'ai l'impression que tout ceci est la base de tous mes soucis (imprimante qui n'imprime pas et scanner accessible qu'en root)
J'ai besoin de votre aide...
Merci infiniment,
Coolman
--
__ ________
/ \ / / ____/ | ~Coolman~
/ /\ \/ / /___ | ~www.lebabillard.org~
/_/ \__/______/ | ~DEBIAN GNU/LINUX USER~
-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)
--
To UNSUBSCRIBE, email to debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: