Deutsch   English   Français   Italiano  
<6170f955$0$1347$426a74cc@news.free.fr>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!agneau.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed2-b.proxad.net!nnrp1-2.free.fr!not-for-mail
Subject: Re: arp -n ?
Newsgroups: fr.comp.os.linux.configuration
References: <slrnsl465s.163kj.lulu042@valentino.Rock-n-Roll.org>
 <sit7lu$bqd$1@shakotay.alphanet.ch>
 <slrnsn0lgj.fsn3.lulu042@valentino.Rock-n-Roll.org>
 <skpq5a$u7f$1@shakotay.alphanet.ch>
From: Sergio <serge.laposte@delbono.net.invalid>
Organization: Vive Aldi !
Date: Thu, 21 Oct 2021 07:23:33 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <skpq5a$u7f$1@shakotay.alphanet.ch>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: fr
Content-Transfer-Encoding: 8bit
Lines: 37
Message-ID: <6170f955$0$1347$426a74cc@news.free.fr>
NNTP-Posting-Date: 21 Oct 2021 07:23:33 CEST
NNTP-Posting-Host: 86.238.192.233
X-Trace: 1634793813 news-2.free.fr 1347 86.238.192.233:36904
X-Complaints-To: abuse@proxad.net
Bytes: 2209

Le 20/10/2021 à 21:20, Marc SCHAEFER a écrit :

> Dans ce cas /etc/hosts peut être utilisé pour pouvoir faire
> 
>     ping toto
> 
> plutôt que
> 
>     ping 192.168.1.42

ping est à éviter pour simplement récupérer une IP (ou le contraire). On lui préférera host (ou nslookup sous W***)

> 
>> Tout ce que je veux, c'est n'avoir pas à saisir l'adresse IP de
>> destination lorsque je sauvegarde depuis origine quelque soit le réseau
>> sur lequel mes PC sont montés.
> 
> Ca ne semble pas facile à faire, dans ce cas.

host toto te donnera l'ip du PC.

Par exemple :
$ host tv
tv.home has address 192.168.1.11

donne l'IP de ma box télé.

Et même :
$ host HAUWEI-Serge
HAUWEI-Serge.home has address 192.168.1.13
HAUWEI-Serge.home has IPv6 address 2a01:cb04:bd2:c100:109a:ca08:2305:49a

Donne l'IP de mon smartphone (connecté en wifi)

-- 
Serge http://cahierdesergio.free.fr/
Soutenez le libre: http://www.framasoft.org