LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifconfig eth0 results (https://www.linuxquestions.org/questions/linux-newbie-8/ifconfig-eth0-results-876063/)

blakey 04-20-2011 03:07 AM

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.

brownie_cookie 04-20-2011 03:27 AM

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

jv2112 04-20-2011 04:34 AM

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






All times are GMT -5. The time now is 10:26 PM.