[CentOS-devel] /etc/sysconfig/network-scripts/network-functions max limit is 255
Donatas Abraitis
donatas.abraitis at gmail.comFri Jul 22 14:50:53 UTC 2016
- Previous message: [CentOS-devel] glibc build fails on disk >2TB
- Next message: [CentOS-devel] Testing Vagrant images on ci.centos.org?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi folks,
what do you think of introducing new variable which could define max value
for index iterating over PREFIX/NETMASK pair?
Problem:
Now it's hardcoded value of 255 in
/etc/sysconfig/network-scripts/network-functions:
expand_config ()
{
local i=0 val
for idx in '' {0..255} ; do
ipaddr[$i]=$(eval echo '$'IPADDR$idx)
if [ -z "${ipaddr[$i]}" ]; then
[ "$idx" ] && [ $idx -ge 2 ] && break
continue
fi
prefix[$i]=$(eval echo '$'PREFIX$idx)
netmask[$i]=$(eval echo '$'NETMASK$idx)
broadcast[$i]=$(eval echo '$'BROADCAST$idx)
arpcheck[$i]=$(eval echo '$'ARPCHECK$idx)
We are running plenty of addresses (over 500) under loopback interface and
announcing them as /32 for upstream hosts. With IPv6 everything is OK,
because it has already native secondary option.
I suggest to add additional variable like MAXALIAS to define this '255'
inside ifcfg-lo.
Any thoughts?
Thank you!
--
Donatas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20160722/4adca21c/attachment-0002.html>
- Previous message: [CentOS-devel] glibc build fails on disk >2TB
- Next message: [CentOS-devel] Testing Vagrant images on ci.centos.org?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS-devel mailing list