Deutsch   English   Français   Italiano  
<skpqbl$u7f$2@shakotay.alphanet.ch>

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

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 <schaefer@alphanet.ch>
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: <skpqbl$u7f$2@shakotay.alphanet.ch>
References: <slrnsl465s.163kj.lulu042@valentino.Rock-n-Roll.org> <6152cdf7$0$3688$426a74cc@news.free.fr> <slrnsn0m25.fsn3.lulu042@valentino.Rock-n-Roll.org>
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 <lulu042@fry.fr.invalid> 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)