LinuxQuestions.org
Review your favorite Linux distribution.
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, 06: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, 09:16 AM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
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
dt64
Member
 
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:
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, 01:27 PM   #4
btmiller
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.
 
  


Reply


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


All times are GMT -5. The time now is 04:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration