I started to learn redhat linux 6 , as Iam very much interested in linux os variants . Through my redhat linux 6 blog Iam here to share my knowledge , in this area , Iam not an expert but Iam learning redhat linux 6 slowly..
After Installation I tried to setup the IP address to get access with internet .. ooh I run the command " setup " from command prompt , as usual in rhel 5 the wizard open and I entered the parameters IP address , subnet mask , default gateway etc.. But Iam fed up Itz not saving the IP address details..
I read this as a BUG in RHEL 6
Here Iam Presenting the way to setup your IP Address..
Step 1
Open the following file in your favorite linux text editor
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
And If you want to setup your static IP edit the file like below
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DEVICE=eth0
IPADDR=10.10.10.10
NETMASK=255.255.255.0
NETWORK=10.10.10.0
GATEWAY=10.10.10.253
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you want to obtain IP address automatically using dhcp , edit the file like below
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ONBOOT="yes"
BOOTPROTO="dhcp"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Note : If you are setup the ip address using the "setup " Command ,Change the above settings as below
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ONBOOT="yes"
BOOTPROTO="static"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
After edit this please restart the services
Save & restart networking service,#service network restart OR#/etc/init.d/network restart
No comments:
Post a Comment