• Fedora Static Configure


    Background

    Currenlty! I am work on fedora system, but the static-ip has required, but the fedora have some stranger things with the ip-configure! I'll put all my configure below which you probably different with yours~ but it's should very very similar ~~

    open your configure file as below command show.

    vim /etc/networks
    
    

    and then put the below configure (YOU NEED TO MODIFY IN YOUR !)

    
    HWADDR=F8:BC:12:A0:31:64
    TYPE=Ethernet
    BOOTPROTO=static
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_FAILURE_FATAL=no
    IPV6_ADDR_GEN_MODE=stable-privacy
    NAME=enp2s0
    UUID=8b11d98c-29bb-35b7-9b84-849761182048
    ONBOOT=yes
    PEERDNS=yes
    PEERROUTES=yes
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    DEVICE=enp2s0
    BOOTPROTO=static
    NM_CONTROLLED=yes
    IPADDR=192.168.90.75
    NETMASK=255.255.255.0
    GATEWAY=192.168.90.1
    DNS=192.168.0.188
    
    

    after that, you can restart your network manager by the below command~

    service network restart
    

    That's all !

  • 相关阅读:
    tcp和udp的区别
    链路聚合配置
    TCP/IP协议
    ip数据报格式
    私有IP地址和公网IP地址
    ipconfig
    ipconfig
    命令更改ip地址2
    命令更改ip地址一
    路由器静态ip设置
  • 原文地址:https://www.cnblogs.com/landpack/p/5876145.html
Copyright © 2020-2023  润新知