lixaingyang

1.vi /etc/sysconfig/network-scripts/ifcfg-enp7s0f0    ##在后面添加ip和域名解析
IPADDR="192.168.130.34"
PREFIX="24"
GATEWAY="192.168.130.1"
DNS1="192.168.120.254"
DNS2="233.5.5.5"
2.systemctl restart network               ##重启网卡服务
3.ip a看到双ip地址,主要为了xshell不断(确保配置不错误再断开连接)
4.vi /etc/sysconfig/network-scripts/ifcfg-enp7s0f0
     BOOTPROTO=none
5.systemctl restart network

6.hostnamectl set-hostname 6hao.com        ##更改主机名称

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2021-10-09
  • 2021-05-09
  • 2021-07-21
  • 2021-04-24
  • 2021-07-21
  • 2021-07-20
  • 2021-06-26
猜你喜欢
  • 2021-11-29
  • 2021-07-14
  • 2021-12-17
  • 2021-05-24
  • 2021-11-19
  • 2021-06-12
相关资源
相似解决方案