查看网络

ip addr

设置主机名

hostnamectl  status

hostnamectl set-hostname  ht02

 

在root用户权限下:

查看当前启动模式

systemctl get-default

更改模式命令:

systemctl set-default graphical.target          由命令行模式更改为图形界面模式

systemctl set-default multi-user.target         由图形界面模式更改为命令行模式

查看网卡uuid

[root@ht19c01 ~]# nmcli con show
NAME UUID TYPE DEVICE
enp0s3 afba38c6-9942-4f91-824e-fafc57161704 ethernet enp0s3
enp0s8 5f1f99a7-77d9-49f7-a01a-ecc04eb28f33 ethernet enp0s8
Wired connection 1 81c7321e-49a7-4fe2-840b-c3ccba591586 ethernet enp0s9
virbr0 40d406c5-68aa-46a8-b20d-8172f4bad606 bridge virbr0

或者为网卡生成新的uuid

uuidgen enp0s9

重启网络服务

systemctl start network.service

 

相关文章:

  • 2021-11-09
  • 2021-04-23
  • 2022-02-21
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2021-09-15
  • 2021-09-29
  • 2021-08-07
  • 2021-06-17
  • 2021-08-28
  • 2021-12-20
相关资源
相似解决方案