LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-11-2013, 05:02 AM   #1
Arjun
Member
 
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.

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
 
Old 08-11-2013, 08: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,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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, 11:35 AM   #3
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
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.
 
Old 08-11-2013, 12:27 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

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


Reply



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 01:36 PM
setting static IP on linux PCs with no static IP address from internet provider? solvetek Linux - Networking 1 10-22-2011 08:04 AM
Script check ICMP and auto change route static buff2l0 Linux - Networking 3 12-09-2009 02:05 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 PM.

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