Virtual interfaces in the Virtual NIC mode are activated or deactivated in conjunction with the network service of the operating system in the same manner as normal physical NICs. Therefore, you need to define settings for IP addresses or subnet masks in the interface setting file (/etc/sysconfig/network-scripts/ifcfg-shaX).
Confirmation method
For RHEL8
Check that the IP addresses, subnet masks, or prefixes are defined in the interface setting file (/etc/sysconfig/network-scripts/ifcfg-shaX) for the virtual interface.
# cat /etc/sysconfig/network-scripts/ifcfg-sha0 DEVICE=sha0 IPADDR=192.168.1.1 PREFIX=24 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet |
For RHEL9
Verify that the following parameters are set for shaX with the "nmcli connection show" command. If the parameters are different, fix the settings seeing "3.2.2.1 Setup common to modes."
connection.type: "802-3-ethernet"
connection.id: "shaX"
connection.interface-name: "shaX"
connection.autoconnect: "yes"
ipv4.method: "manual"
ipv4.addresses: "192.168.1.1/24" |