首页 > 其他分享 >使用nmcli命令配置rhel8.0系统的网络,要求IP地址为192.168.10.XX/24,网关为192.168.10.254,DNS为202.103.224.68。并且使用 ifconfig命令

使用nmcli命令配置rhel8.0系统的网络,要求IP地址为192.168.10.XX/24,网关为192.168.10.254,DNS为202.103.224.68。并且使用 ifconfig命令

时间:2022-12-24 23:22:15浏览次数:41  
标签:nmcil ens160 connection 192.168 ifconfig XX ipv4 IP地址

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    ​#查看是否激活成功

标签:nmcil,ens160,connection,192.168,ifconfig,XX,ipv4,IP地址
From: https://www.cnblogs.com/luzhangan/p/17003541.html

相关文章