Error “SIOCSIFADDR: Cannot allocate memory” when adding many IPv6 addresses

While adding many many IPv6 addresses, you might run into this error

SIOCSIFADDR: Cannot allocate memory

The error isn’t very descriptive but fortunately this can be resolved very easily by increasing the IPv6 routing tables maximum size:

nano /proc/sys/net/ipv6/route/max_size

 

    • wr
    • June 21st, 2013 8:01am

    vim cannot change the file properly, so just:
    echo “32768” > /proc/sys/net/ipv6/route/max_size

  1. No trackbacks yet.