Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-20-2011, 04:07 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 16

Rep: Reputation: 0
ifconfig eth0 results

Have been looking how to find out my IP address i opened a terminal and typed: ifconfig eth0. Could someone tell me how i can interpret the output please.
Old 04-20-2011, 04:27 AM   #2
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
eth0      Link encap:Ethernet  HWaddr MAC_address
          inet addr:IPV4_address  Bcast:broadcast_address  Mask: subnetmask
          inet6 addr: IPV6_address Scope:Link
that's all i know about it, the RX and TX stuff, don't know anything about it, but i think for you it's not important?!
Old 04-20-2011, 05:34 AM   #3
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Below are two options for what you are looking for.

hope this helps.

-- ip addr show eth0 ( whatever connection you use)


-- ifconfig eth0 ( whatever connection you use)

The bold text is the IP address.


# ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 1c:6f:65:4c:71:25 brd ff:ff:ff:ff:ff:ff
inet brd scope global eth0
inet6 fe80::1e6f:65ff:fe4c:7125/64 scope link
valid_lft forever preferred_lft forever


joe@Tux-Box:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 1c:6f:65:4c:71:25
inet addr: Bcast: Mask:
inet6 addr: fe80::1e6f:65ff:fe4c:7125/64 Scope:Link
RX packets:369271 errors:0 dropped:0 overruns:0 frame:0
TX packets:714695 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37700499 (35.9 MiB) TX bytes:989648617 (943.8 MiB)
Interrupt:43 Base address:0xe000

Last edited by jv2112; 04-20-2011 at 05:35 AM.


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
no eth0 in ifconfig -a Four Linux - Networking 3 08-24-2008 07:59 PM
ifconfig eth0 up does not 'revive' eth0 Micro420 Linux - General 2 04-22-2006 01:55 PM
ifconfig eth0 drdarkman Linux - Networking 2 01-30-2005 12:16 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 03:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 09:21 PM > Forums > Linux Forums > Linux - Newbie

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

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