CentOS8- card configuration and Detailed
I. INTRODUCTION
CentOS8 biggest change is the updated card this one, the next you configure the look NIC;
Second, placement
NIC configuration file: / etc / sysconfig / Network-scripts / the ifcfg-ens33
[root @ localhost ~] # cd / etc / sysconfig / Network-scripts /
[root @ localhost Network-scripts] # # LS will see a configuration NIC configuration file
[root @ localhost network-scripts] # vim ifcfg-ens33 # into the NIC configuration file
The following profile: bold red is modified; when adding yellow background; black is bold to add a comment.
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPADDR=192.168.10.111
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
DNS1=114.114.114.114
IPV4_FAILURE_FATAL=no
#IPV6INIT=yes
#IPV6_AUTOCONF=yes
#IPV6_DEFROUTE=yes
#IPV6_FAILURE_FATAL=no
#IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=7afc67d5-b767-4d89-97b4-2558f8dc33c3
DEVICE=ens33
ONBOOT=yes
[root @ localhost network-scripts] # nmcli c reload # restart the card
to see here, is not feeling and gaps in the system CentOS7 of it!
Three, nmcli command interpreter
nacli use:
Usage: nmcli [Options] OBJECT
Options:
-o[verview] 概览模式(隐藏默认值)
-t[erse] 简洁输出
-p[retty] 整齐输出
-m[ode] tabular|multiline 输出模式
-c[olors] auto|yes|no 是否在输出中使用颜色
-e[scape] yes|no 在值中转义列分隔符
-a[sk] 询问缺少的参数
-s[how-secrets] 允许显示密码
-w[ait] 为完成的操作设置超时等待时间
-v[ersion] 显示程序版本
-h[elp] 输出此帮助
Object:
g[eneral] 网络管理器(NetworkManager)的常规状态和操作
n[etworking] 整体联网控制
r[adio] 网络管理器无线电开关
c[onnection] 网络管理器的连接
d[evice] 由网络管理器管理的设备
a[gent] 网络管理器的密钥(secret)代理或 polkit 代理
m[onitor] 监视网络管理器更改
General Use c:
[root@localhost network-scripts]# nmcli c –-help #选项查看帮助
COMMAND := { show | up | down | add | modify | clone | edit | delete | monitor | reload | load | import | export }