输入nmtui去点击第三个set hostname设置主机名:
使用tab,上下键,enter键。
进入第一个网络配置:
ssh root@red.net0.example.com
[root@red ~]# systemctl status network
Unit network.service could not be found.
[root@red ~]# systemctl status NetworkManager
network在8中没有了!
hostnamectl可以设置当前主机名,不要使用hostname,因为是临时的,重启后就没了。
nmcli在练习环境下不可以tab补齐。
bash-completion可以安装后使用tab补齐。
network commond line interface
激活一个网卡链接:
手动配置:
可以分开配置 ,单独配置每一个,如果嫌长的话