Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.imp.ch!news.alphanet.ch!alphanet.ch!.POSTED.localhost!not-for-mail From: Marc SCHAEFER Newsgroups: fr.comp.os.linux.configuration Subject: Re: arp -n ? Date: Wed, 20 Oct 2021 19:23:33 -0000 (UTC) Organization: Posted through ALPHANET (https://news.alphanet.ch/) Message-ID: References: <6152cdf7$0$3688$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 20 Oct 2021 19:23:33 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-host="localhost:127.0.0.1"; logging-data="30959"; mail-complaints-to="usenet@alphanet.ch" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64)) Cancel-Lock: sha256:2X38Jty8ndmZ50bRlRFHv1+AHmjZkBt/cgCWu00a0VY= Bytes: 1724 Lines: 16 Lulu wrote: > C'est juste pour la beauté du geste : « je n'ai même pas à saisir l'IP > du PC "destination" » On pourrait imaginer une solution sale et simple: # pinguer en broadcast de subnet les 2 # possibilités de sous-réseau: normal et téléphone for i in 192.168.1.255 192.168.42.255 do ping -c 1 $i done # consulter maintenant la table ARP, en supposant que # le serveur de backup répond aux pings broadcast # et qu'on connaît son adresse MAC # (à activer dans /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts)