系统相关
首页 > 系统相关> > centos 设置静态ip

centos 设置静态ip

作者:互联网

vim /etc/sysconfig/network-scripts/ifcfg-ens18

 

TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eth0"
UUID="6787a2d6-fb4c-4027-a0a3-999b5839344c"
DEVICE="eth0"
ONBOOT="yes"
IPADDR="10.0.1.241"
PREFIX="24"
GATEWAY="10.0.1.1"
IPV6_PRIVACY="no"
service network restart

 

标签:10.0,centos,no,静态,ip,DEFROUTE,IPV6,yes,eth0
来源: https://www.cnblogs.com/qianchilang/p/11669517.html