I. INTRODUCTION
Centos8 system updates, new versions of people seem to feel comfortable, then someone will configure the card CentOS8 system to make the system online, will meet the configured network card does not take effect, and the time to think of a kind of configuration CentOS7 ah, CentOS8 biggest change is the updated card this one, the next you configure the look NIC;
Second, the configuration
NIC configuration file: / etc / sysconfig / network-scripts / ifcfg-ens33
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root @ localhost Network-scripts] # LS # 'll see a card configuration profiles
[root @ localhost Network-scripts] # vim the 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 = 114114114114 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 card
See here, is not feeling the gap between the system and CentOS7 of it!
Three, nmcli command interpreter
nacli use:
Usage: nmcli [Options] OBJECT
Options:
-o [verview] Overview mode (hidden default)
-t [erse] simple output
-p [retty] Output neat
-m [ode] tabular | multiline output mode
-c [olors] auto | yes | no whether to use color in output
-e [scape] yes | no escape values in column dividers
-a [sk] asks missing parameters
-s [how-secrets] Password allows the display
-w [ait] is set to complete the operation timeout for
-v [ersion] to display the program version
-h[elp] 输出此帮助
对象:
g[eneral] 网络管理器(NetworkManager)的常规状态和操作
n[etworking] 整体联网控制
r[adio] 网络管理器无线电开关
c[onnection] 网络管理器的连接
d[evice] 由网络管理器管理的设备
a[gent] 网络管理器的密钥(secret)代理或 polkit 代理
m[onitor] 监视网络管理器更改
一般使用c:
[root@localhost network-scripts]# nmcli c –-help #选项查看帮助
COMMAND := { show | up | down | add | modify | clone | edit | delete | monitor | reload | load | import | export }
如有哪里不全,就请多包涵;感谢你的支持。