Config CentOS Network
If you installed CentOS with CentOS Minimal Installation, by default CentOS minimal install does not come with pre-configured network, here's how to config CentOS network and make it work
Check network
ip link show
Configure eth0
# Edit the set up for the ethernet and config centos network vi /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=no => ONBOOT=yes # Config for static ip instead of dhcp BOOTPROTO=dhcp => BOOTPROTO=static IPADDR=192.168.1.87 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=8.8.8.8 DNS2=8.8.4.4
Restart Network Interface
# Start network service network start # Restart network service network restart
Comments
Post a Comment