> Rocky Linux >

RockyLinux 修改网卡配置

RockyLinux网卡配置
 
进入网卡文件目录:
 
[root@]#cd /etc/sysconfig/network
network network-scripts/
[root@]#cd /etc/sysconfig/network-scripts/
[root@]#Is
ifcfg-en3
 
编辑你的网卡:
vim ifcfg-en3
TYPE=Ethemnet
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
NAME=en3
UUID=d817fe58-d3d8-44c6-ba94-af034babd1a4
DEVICE=en3
ONBOOT=yes
IPADDR=10.0.0.0
GATEWAY=10.0.0.2
NETMASK=255.255.255.255
DNS1=114.114.114.114
DNS2=8.8.8.8
 
如下命令使更改生效:
emcli c reload enpos3
emcli d reapply enpos3

 
(责任编辑:IT)