nmtui文本圖型界面
全稱: NetworkManageTextUser Iterface

image
推薦做為首選配置方式
nmtui
nmcli純文本界面
全稱: NetworkManageCommandLine Interface
查看網(wǎng)絡:
nmcli d
常用參數(shù):
g[eneral] NetworkManager's general status and operations
n[etworking] overall networking control
r[adio] NetworkManager radio switches
c[onnection] NetworkManager's connections
d[evice] devices managed by NetworkManager
a[gent] NetworkManager secret agent or polkit agent
m[onitor] monitor NetworkManager changes
配置文件
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=enp3s0
ONBOOT=yes
IPADDR=192.168.1.10
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
其它
啟停網(wǎng)絡
ifdown enp0s3
ifup enp0s3
ip取代ifconfig
ip addr
ip與ifconfig的對應關系:

image