If an static ip address is used it should look something like:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27
USERCTL=no
When DHCP is used it should look like:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
After the ifcfg-eth0 file is changed the network must be restarted this can be done with the following command:
service network restart
Did this post help you in any way can you please leave a comment? This will motivate me writing more posts.
Hi,
ReplyDeleteThis helped a bit. But could you also explain how to set up the dhcp server in linux so that eth0 gets a Class C address
I read some of your other post the main common thing I appreciate in your blogs is to the point description its not making a short story long.Its really good when we have shortage of time and need a thing that actually works.good Work.Keep it up!
ReplyDeleteThanks a lot! It worked on my Oracle Linux in my VM.
ReplyDelete