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 即可