Hello,
I have servers with multiple NICs connected to different internet lines.
In the past on CentOS 6 and 7 I could easily setup the NICs by using the following commands for each NIC(I did not use NetworkManager)
ip route add 123.123.123.123/28 dev eno1 table 1
ip route add default via 123.123.123.123 table 1
ip rule add from 123.123.123.123/28 table 1 priority 100
(while using a different table number and priority for each NIC)
and to make the above manual commands persistent, convert to the corresponding files in
/etc/sysconfig/network-scripts/route-eno1
123.123.123.123/28 dev eno1 table 1
default via 123.123.123.123 table 1
/etc/sysconfig/network-scripts/rule-eno1
from 123.123.123.123/28 table 1 priority 100
However I am not really that familiar with network commands, and can't seem to figure out how to get it to work in CentOS/RHEL 8.
What are the corresponding commands in CentOS/RHEL 8 to make the above settings persistent?
The manual "ip route" and "ip rule" commands work fine.
Related links:
https://access.redhat.com/documentat...in_ifcfg_files
https://access.redhat.com/documentat...ing-networking
Thank you.