LinuxQuestions.org
Help answer threads with 0 replies.
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 06-04-2012, 03:15 PM   #1
barsaiyan
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
ifconfig command not showing inet address


HI All,
I am new to linux. I am using Oracle Enterprise linux 5.5. In order to get the IP Address I am using command /sbin/ifconfig but i am not getting the expected output.
Mainly I am not getting the inet address in the output. The output which I am getting is posted below:



[oracle@oel ~]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:F4:40:94
inet6 addr: fe80::20c:29ff:fef4:4094/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16799 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2026680 (1.9 MiB) TX bytes:7319 (7.1 KiB)
Interrupt:67 Base address:0x2024

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3286 errors:0 dropped:0 overruns:0 frame:0
TX packets:3286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5013076 (4.7 MiB) TX bytes:5013076 (4.7 MiB)


I am not sure what am I doing wrong. I am stuck just because I am not able to see the ip address of the machine.Can anyone please help me with this.

Regards,
Vikas
 
Old 06-04-2012, 03:27 PM   #2
mannmaniyar
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
Hi,

Can you post the output of file /etc/sysconfig/network-scripts/ifcfg-eth0
 
  


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
ipv6 address which add by ifconfig command lost after eth down anqing Linux - Kernel 0 02-21-2011 07:53 AM
eth0 inet address not assigned at startup?? abolishtheun Slackware 2 04-30-2009 07:38 AM
rtl8139 not showing in ifconfig C-Sniper Slackware 3 07-19-2007 03:31 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Java code to get inet address in linux qiye Programming 1 09-15-2004 01:23 PM

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

All times are GMT -5. The time now is 08:22 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