Skip to content

Instantly share code, notes, and snippets.

View keshara's full-sized avatar

keshara dorakumbura keshara

  • sri lanka
View GitHub Profile
@keshara
keshara / CentOS Static IP
Last active April 24, 2021 02:08
Static IP Configuration on CentOS 6.5
The reason I wanted to share this post is configuring static IP on CentOS seems to trouble many centos users. Probably, when you configure static IP, network may not work as you expected, sometimes no internet access, sometimes no IP address on eth0 etc..
First, "watch-out whether it is a CentOS Desktop version or Server version".? because they are runs at different run-levels, where;
- Desktop ver runs on run-level 5
- Server ver runs on run-level 3
Second, watch-out the configuration on
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0