How many ip address can i add to a interface on centos 7

Issues related to configuring your network
Post Reply
songfeiyu1
Posts: 1
Joined: 2018/05/09 01:55:23

How many ip address can i add to a interface on centos 7

Post by songfeiyu1 » 2018/05/09 02:01:41

Everybody,
i am facing an issue, i want to add 4*/24 ip address to a interface on my centos 7, but it seems there is only 256 ip address can take effect ,others are not working, is there a limite for it, or how can i make all my ip address online?

tomkep
Posts: 15
Joined: 2018/04/25 13:30:50

Re: How many ip address can i add to a interface on centos 7

Post by tomkep » 2018/05/09 20:24:03

I am not sure how many IP addresses you are trying to add but isn't the /24 class a limiting factor here (as you seem to be using that)? It can only accommodate 256 addresses and it is the network limitation, not a kernel or tool limitation.

And if this is not the case you can always try to add dummy interface and attach more addresses there. Please note this may require some additional adjustments (like routing setup or proxy arp).

Post Reply