Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-11-2013, 06:02 AM   #1
Registered: Feb 2011
Posts: 120
Blog Entries: 2

Rep: Reputation: 0
check static ip

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

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

Old 08-11-2013, 09:16 AM   #2
Randicus Draco Albus
Senior Member
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,672
Blog Entries: 8

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
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.
Old 08-11-2013, 12:35 PM   #3
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
According to your profile you are on RHEL/Fedora.
Check your network config files:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
If there is a line saying
you are on DHCP, If there is are lines saying
you are on static IP.
Old 08-11-2013, 01:27 PM   #4
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
script to check if DHCP is available or assign static IP? totalimpact Linux - Networking 10 09-03-2012 02:36 PM
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 09:04 AM
Script check ICMP and auto change route static buff2l0 Linux - Networking 3 12-09-2009 03:05 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 12:13 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration