目的:安装在VM17中的 RHEL8,配置IP 地址为静态IP
一、查看红帽系统版本
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)

看到RHEL 版本为8.7
二、查看 网关、子网掩码、DNS
说明:我的RHEL 系统在dhcp 时能正常上网, 因此我把静态时网关,掩码,dns配的和 dhcp时一样,确保静态ip 时也能正常上网。
输入nmcli 查看网络
[root@localhost ~]