#### 1、查看网卡信息
```
ip addr
```
#### 2、修改网卡配置
```
vi /etc/sysconfig/network-scripts/ifcfg-ens192
```
```properties
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=192.168.1.27
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=9.9.9.9
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=ens192
UUID=4542d08d-dc6f-4abb-a4f8-e6dc622b4535
DEVICE=ens192
ONBOOT=yes
```
#### 3、重启网络配置
```
systemctl restart network
```
```
/etc/init.d/network restart
```
问题:netstat:command not found
解决:yum install net-tools -y
标签:网卡,network,CentOS,IP,DEFROUTE,yesIPV6,####,设置,FATAL From: https://www.cnblogs.com/lovleo/p/17262354.html