topic title: ifconfig vs ip
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#1
Being a long time user of ifconfig. I thought this was a neat site for using a different command than ifconfig to detect network status.
The command /bin/ip has been around for some time now. But people continue using the older command /sbin/ifconfig. Let's be clear: ifconfig will not go away, but its newer version, ip, is more powerful and worth knowing.

The man page of ip may look intimidating at first, but once you get familiar with the command syntax, it is an easy read. This page will not introduce the new features of ip. It rather features a side-by-side comparison if ifconfig and ip to get a quick overview of the command syntax.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.tty1.net/blog/2010-04-21-ifconfig-ip-comparison_en.html"
linktext was:"http://www.tty1.net/blog/2010-04-21-ifc ... on_en.html"
====================================


It is worth bookmarking in my estimation. I have already done so in my Speed Dial in Iceape. Posting this thread so I can come back to it with my other browsers and gear.

Code: Select all

:~$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether ,filtered> brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether <filtered> brd ff:ff:ff:ff:ff:ff
    inet 192.<filter> brd 192.<filter> scope global wlan0
    inet6 fe80::<filter> scope link 
       valid_lft forever preferred_lft forever
harry@biker:~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether <filtered> brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether <filtered> brd ff:ff:ff:ff:ff:ff
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#2
I never knew about that command. A neat thing I noticed on my computer is I don't have to go into root to issue the"ip addr show" command. I do get a bunch of mumbo jumbo that I don't understand though.

Code: Select all

: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether macdaddymac brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether macdaddymac brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1 brd 192.168.1.255 scope global wlan0
4: nr0: <NOARP> mtu 236 qdisc noop state DOWN 
    link/generic 00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00
5: nr1: <NOARP> mtu 236 qdisc noop state DOWN 
    link/generic 00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00
6: nr2: <NOARP> mtu 236 qdisc noop state DOWN 
    link/generic 00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00
7: nr3: <NOARP> mtu 236 qdisc noop state DOWN 
    link/generic 00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00
8: rose0: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
9: rose1: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
10: rose2: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
11: rose3: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
12: rose4: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
13: rose5: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
14: rose6: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
15: rose7: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
16: rose8: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
17: rose9: <NOARP> mtu 249 qdisc noop state DOWN 
    link/rose 00:00:00:00:00 brd 00:00:00:00:00
I don't know what any of the stuff from number 4 and on means or why it repeats itself a bunch of times.

Anyhoot, good find. __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Well, I would not pay attention to anything past line 3 except for noticing that the" generic roses" are all down. __{{emoticon}}__