7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

仮想IPを付けたいそんな時

Posted at

仮想IPを付ける

ip addr add <付けたいIP>/<プレフィックス長> brd <ブロードキャストアドレス> dev eth0

send_arp する

send_arp <付けたいIP> <そのIPのMACアドレス> <伝えたい相手IP> ff:ff:ff:ff:ff:ff <デバイス名:eth0>

ff:ff:ff:ff:ff:ff は 255.255.255.255 みたいな感じで MAC アドレスのブロードキャストアドレス.
伝えたい相手 IP を持つ機器の MAC アドレスが何であっても send_arp を受けてくれるらしい.
send_arp は一定時間空けて複数回打つとよいらしい.

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?