• CentOS 7 设置静态IP


    http://blog.csdn.net/johnnycode/article/details/40624403

    http://serverfault.com/questions/660210/cant-start-centos-7-network-service

    http://ephrain.pixnet.net/blog/post/61648414-%5Blinux%5D-%E8%A7%A3%E6%B1%BA-centos7-%E4%B8%8A-network-service-%E7%84%A1%E6%B3%95%E5%95%9F%E5%8B%95%E7%9A%84

    使用clone 的VirtualBox镜像,启动后修改静态IP报错.

    经查,需要修正正确的MAC地址,HWADDR一行, 而后reboot:

    vi /etc/sysconfig/network-scripts/ifcfg-enxxx

    YPE=Ethernet

    BOOTPROTO=static #

    DEFROUTE=yes

    PEERDNS=yes

    PEERROUTES=yes

    IPV4_FAILURE_FATAL=no

    IPV6INIT=yes

    IPV6_AUTOCONF=yes

    IPV6_DEFROUTE=yes

    IPV6_PEERDNS=yes

    IPV6_PEERROUTES=yes

    IPV6_FAILURE_FATAL=no

    IPV6_ADDR_GEN_MODE=stable-privacy

    NAME=enp0s3

    UUID=40ffdbf2-eb4c-44da-922b-86ccc40bbecd

    DEVICE=enp0s3

    ONBOOT=yes #

    HWADDR=08:00:27:3e:59:ab #

    IPADDR=192.168.5.XXX

    GATEWAY=192.168.5.1

    NETMASK=255.255.255.0

    DNS=192.168.5.1

  • 相关阅读:
    POJ 3114 Tarjan+Dijkstra
    278. First Bad Version
    209. Minimum Size Subarray Sum
    154. Find Minimum in Rotated Sorted Array II
    153. Find Minimum in Rotated Sorted Array
    710. Random Pick with Blacklist
    767. Reorganize String
    524. Longest Word in Dictionary through Deleting
    349. Intersection of Two Arrays
    350. Intersection of Two Arrays II
  • 原文地址:https://www.cnblogs.com/wucg/p/6284987.html
Copyright © 2020-2023  润新知