在 mars.domain250.example.com 上执行以下任务。
1、配置网络设置
题目:
将 mars 配置为具有以下网络配置:
主机名:mars.domain250.example.com
IP 地址:172.25.250.100
子网掩码:255.255.255.0
网关:172.25.250.254
2、配置
2.1先查看网卡信息
nmcli connection show
2.2配置网络
nmcli connection modify Wired\ connection\ 1 ipv4.addresses 172.25.250.100/24 ipv4.gateway 172.25.250.254 autoconnect yes
2.3启用网络
nmcli connection up Wired\ connection\ 1
2.4修改主机名
hostnamectl set-hostname mars.domain250.example.com
3、结果