The ifconfig command dumps a lot of information at you, especially if you have a lot of interfaces, and you don't know where they come from. I've read through the "Ifconfig Command - Explained in Detail" tutorial page, which gives a great rundown on most of the information in ifconfig. But it doesn't contain all the information I want (and the article could also be outdated after its release in 2006).
Using ip addr show eth0:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:e2:80:18 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0 valid_lft forever preferred_lft forever
I find it tough to parse some of the output.
- Under
eth0:<…>describes… the interface capabilities? Uncertain where I can find the full set of options, uncertain what they're called, no idea what to google. What're the other options?state UP– I know there's alsostate DOWNandstate RUNNING. These are all software constructs, right? Nothing is physically changing when I runip link set dev eth0 down, right? So how does the kernel act differently when this state changes? Does this state change?group default– interface groups. What is the unique problem they solve?
- Under
inet- What does
scope globalmean? – How can a private IP have a global scope? What am I missing?
- What does
What is the grammar of this command's output?