centos 7 设置固定IP

前端之家收集整理的这篇文章主要介绍了centos 7 设置固定IP前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

[root@shl0125 ~]# cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)


[root@shl0125 ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s25

TYPE=Ethernet

BOOTPROTO=static

IPADDR=192.168.11.201

NETMASK=255.255.252.0

GATEWAY=192.168.8.1

DNS1=192.168.10.6

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=enp0s25

UUID=1f521b31-1b8d-4288-8e3a-574ca1b39673

DEVICE=enp0s25

ONBOOT=yes

原文链接:https://www.f2er.com/centos/377377.html

猜你在找的CentOS相关文章