centos 7 配置网卡ip地址
配置ip地址:
ip addr add 1.2.3.4/24 dev eth3
ip route add default via 192.168.2.1 dev enp2s0
# vi resolv.conf
nameserver 114.114.114.114
配置ip地址:
ip addr add 1.2.3.4/24 dev eth3
ip route add default via 192.168.2.1 dev enp2s0
# vi resolv.conf
nameserver 114.114.114.114