====== Linux IP configuration ======
===== Linux Kernel AnyIP =====
The AnyIP feature of the Linux kernel allows you to bind a complete [[:admin:network:ipv4|IPv4]] or [[:admin:network:ipv6|IPv6]] subnet to your system. ([[https://blog.widodh.nl/2016/04/anyip-bind-a-whole-subnet-to-your-linux-machine/|source]])
==== IPv4 ====
ip -4 route add local 192.168.0.0/24 dev lo
In this case the Linux kernel will now respond to ARP requests for any IPv4 address in the ''192.168.0.0/24'' subnet.
==== IPv6 ====
ip -6 route add local 2001:db8:100::/64 dev lo
In this case the kernel will respond for Neighbor Solicitation Messages on any IPv6 address in the ''2001:db8:100::/64'' subnet.