LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   check static ip (https://www.linuxquestions.org/questions/linux-newbie-8/check-static-ip-4175472966/)

Arjun 08-11-2013 05:02 AM

check static ip
 
I am trying to make my ip address static, so i have used this method.

http://www.backtrack-linux.org/forum...l=1#post114225

Now, i want to check if my ip address have become static or not. So, how can i do that ?

Thanks

Randicus Draco Albus 08-11-2013 08:16 AM

Check the interfaces file in /etc. It will show if you are using DHCP or a static address. I cannot say with certainty exactly where the file will be with Fedora and RedHat, but with Debian-based systems it is /etc/network/interfaces.

dt64 08-11-2013 11:35 AM

According to your profile you are on RHEL/Fedora.
Check your network config files:
Code:

cat /etc/sysconfig/network-scripts/ifcfg-eth0
If there is a line saying
Code:

BOOTPROTO="dhcp"
you are on DHCP, If there is are lines saying
Code:

BOOTPROTO=static
IPADDR=XX.XX.XX.XX

you are on static IP.

btmiller 08-11-2013 12:27 PM

And if you want to verify that the configuration file has been applied correctly, run "ifconfig eth0" and vberify that the IP address shown is the correct static IP.


All times are GMT -5. The time now is 02:41 AM.