Linux网络配置
作者:互联网
一、编辑网卡
vi /etc/sysconfig/network-scripts/ifcfg-eth0
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=enp0s3
UUID=dd86101d-9d18-4001-ab6b-cc50c28aad18
DEVICE=enp0s3
ONBOOT=yes
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=114.114.114.114
DNS2=8.8.8.8
二、重启网络
service network restart
标签:Linux,no,8.8,配置,DEFROUTE,网络,192.168,IPV6,yes 来源: https://www.cnblogs.com/jock766/p/13844217.html