RHEL: How to add a range of alias IP Addresses
Updated -
- With NetworkManager running:
$ for i in {12..24}; do nmcli connection modify eno1 +ipv4.addresses "192.51.100.$i/24"; done
That will add the alias IP Addresses to /etc/sysconfig/network-scripts/ifcfg-eno1
. Which will be persistent during a reboot.
- With NetworkManager not running and initscripts installed see:
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.