CentOS 6.9 配置静态IP

ifconfig
先查看一下要改的网卡对应的MAC,即HWADDR

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

HWADDR=08:00:27:3D:B0:DB
NAME=eth1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.56.251
PREFIX=24
GATEWAY=192.168.56.1
DNS1=192.168.56.1

service network restart 即可

posted @ 2018-10-10 16:39  LAUHank  阅读(1264)  评论(0编辑  收藏  举报