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