nmtui文本图型界面
全称: NetworkManageTextUser Iterface
image推荐做为首选配置方式
nmtui
nmcli纯文本界面
全称: NetworkManageCommandLine Interface
查看网络:
nmcli d
常用参数:
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
其它
启停网络
ifdown enp0s3
ifup enp0s3
ip取代ifconfig
ip addr
ip与ifconfig的对应关系:
网友评论