使用nmcli命令配置rhel8.0系统的网络,要求IP地址为192.168.10.XX/24,网关为192.168.10.254,DNS为202.103.224.68。并且使用 ifconfig命令查看网卡的IP地址。使用远程连接工具CRT进行连接。(其中,XX为自己学号的后两位)

ifconfig 或  ip -a  #查看网络

nmcli      ​c   #查看链接

nmcil     ​connection delete ens160   #删除ens160网卡链接

nmcil     ​connection     ​add    ​con-name    ​ens160    ​ifn-ame     ​ens160    ​type    ​ethernet    ​#增加网络链接

nmcil     ​c    ​

nmcil     ​connection    ​modify    ​ens160    ​ipv4.addresses    ​192.168.100.30/24    ​ipv4.gateway    ​192.168.100.245    ​ipv4.dns    ​202.103.224.68    ​ipv4.methon    ​manual    ​#配置网络

nmcil  connection    ​reload    ​ens160    ​#加载网络链接

nmcil     ​connection    ​up ens160      ​#激活网络链接    ​

ifconfig    ​#查看是否激活成功

posted @ 2022-12-24 23:15  卢彰岸  阅读(194)  评论(0)    收藏  举报