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.
![Validate my Atom 1.0 feed [Valid Atom 1.0]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwsk0jkCpg60orkOvHQLaU5Kfnb72Q4Fv59o0rzOSTRknWzbGrBmh31ZjGOZdIt4C_wLVtBkWfFwG5eMfJQQ1E7MlTWYYZhWtFG6ndJemCWSu5DypAo_UP6u1Y20xCR_N-ksYP5OzvrUkE/s400/valid-atom.png)
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