LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-20-2011, 04:07 AM   #1
blakey
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
brownie_cookie
Member
 
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
Code:
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
jv2112
Member
 
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)

or

-- ifconfig eth0 ( whatever connection you use)

The bold text is the IP address.

Quote:

# 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 192.168.1.4/24 brd 192.168.1.255 scope global eth0
inet6 fe80::1e6f:65ff:fe4c:7125/64 scope link
valid_lft forever preferred_lft forever



Quote:


joe@Tux-Box:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 1c:6f:65:4c:71:25
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1e6f:65ff:fe4c:7125/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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.
 
  


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
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


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