LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifconfig command not showing inet address (https://www.linuxquestions.org/questions/linux-newbie-8/ifconfig-command-not-showing-inet-address-948508/)

barsaiyan 06-04-2012 03:15 PM

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

mannmaniyar 06-04-2012 03:27 PM

Hi,

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


All times are GMT -5. The time now is 03:10 AM.