centos环境配置

/etc/sysconfig/network-scripts/ifcfg-enp0s3

 

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=9e5ba0be-6ad1-4a1c-ae15-d5239b129ef5
DEVICE=enp0s3

IPADDR=192.168.0.10
GATEWAY=192.168.0.1
NETWORK=255.255.255.0
ONBOOT=yes

 

cat /etc/resolv.conf

nameserver 8.8.8.8

cat /etc/hosts
140.82.113.4 github.com

 

 

posted @ 2022-10-01 10:54  stupidstan2019  阅读(24)  评论(0编辑  收藏  举报