zoukankan      html  css  js  c++  java
  • 服务器ip迁移纪要

    21楼机房之前已配25网段静态ip,机架上14台服务器接22楼机房交换机,同样25网段。

    实际有两种情况,

    a25网段ip没有被他人占用,这种情况无需更改ip

    b、该IP已被外部使用,ip冲突,无法通过原有ip 利用cockpit修改

    解决方案一:

    1、查看cockpit服务是否启动,若启动则停止cockpit服务

    service cockpit stop

    2、修改/etc/network/interfaces文件,配置dhcp分配ip

    增加以下字段

    auto enp1s0  (需注意实际网卡名称)

    iface enp1s0 inet dhcp

    3、修改完毕,重启网络服务

    service networking restart

    4、重启cockpit服务

    service cockpit start

    4、检查新的ip能否pingwww.baidu.com、局域网内其他ip

    5、第4步成功的话,即可通过访问网页访问ip:9090进行静态ip配置。若不成功再定位其他原因。

    解决方案二:

    1、卸载cockpit服务

    2、配置/etc/network/interfaces文件,分配一个动态ip

    3、通过/etc/network/interfaces文件,设置步骤2中的动态ip为静态ip

    增加以下字段

    auto enp1s0

    iface enp1s0 inet static

    address xxx

    netmask xxx

    dns-nameserver xxx

    4、重启网络服务即可

  • 相关阅读:
    英文综述如何写6
    英文综述如何写5
    英文综述如何写4
    英文综述如何写3
    英文综述如何写2
    英文综述如何写
    Python开发【第三篇】:Python基本数据类型
    Python开发【第二篇】:初识Python
    Python开发【第一篇】:目录
    第二十单元 计划任务crond服务
  • 原文地址:https://www.cnblogs.com/zhonghaijing/p/9864841.html
Copyright © 2011-2022 走看看