admin:linux:ip

Linux IP configuration

The AnyIP feature of the Linux kernel allows you to bind a complete IPv4 or IPv6 subnet to your system. (source)

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.

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.

  • Last modified: 2024-07-05 14:31