ネットワークカード設定 - RedHat
/etc/sysconfig/network-scripts/ifcfg-eth0
スタティック
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.150
NETMASK=255.255.255.0
ONBOOT=yes
DHCP
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.0.1
ネットワーク設定変更の反映
RHEL/CentOS
systemctl reload NetworkManager
RHEL6/CentOS6
service network restart
設定確認
RHEL/CentOS
ip link show
ip address show
RHEL6/CentOS6
ifconfig
参考
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/6/html/deployment_guide/s1-networkscripts-static-routes