LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Virtual Interfaces?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Virtual Interfaces?
From: Roberto Nibali <ratz@xxxxxx>
Date: Wed, 17 Dec 2003 18:46:10 +0100
ntadmin@xxxxxxxxxxxx wrote:
We are nearing 255 virtual interfaces on the external side of our LVS
system.  Can somebody tell me if this is going to be a hard limit or if we
can go beyond 255 on one network card?

No problem (proof of concept below):

# ip addr show dev lo | grep 'inet ' | wc -l
      1
# for ((i = 1; i < 255; i++)); do for ((j = 1; j < 4; j++)); do ip addr add 127.0.$j.$i/32 dev lo brd + label lo:$i-$j 1>/dev/null 2>&1; done; done
# ip addr show dev lo | grep 'inet ' | wc -l
    763
# for ((i = 1; i < 255; i++)); do for ((j = 1; j < 4; j++)); do ip addr del 127.0.$j.$i/32 dev lo brd + label lo:$i-$j 1>/dev/null 2>&1; done; done
# ip addr show dev lo | grep 'inet ' | wc -l
      1

Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc

<Prev in Thread] Current Thread [Next in Thread>