Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A friend of mine said that ip is supposed to be the successor of ifconfig and iwconfig — yet I found no Wikipedia article about it and have never seen anyone mention or recommend it online even though it's from the year 2002 according to its man page. That indicates that it's not much used.

The name ip is difficult to Google so I decided to ask here.

share|improve this question

2 Answers 2

up vote 5 down vote accepted

The ip command is part of the iproute2 collection of utilities.

According to the Linux Foundation the ifconfig command should be deprecated, but most distros still include them. iproute2 also contains the tc (traffic control) command. See usage information by using the $ man ip command.

There was a discussion about this on serverfault last year.

share|improve this answer
    
ifconfig, not ipconfig. –  joschi Sep 26 '10 at 8:16
    
@joschi Thanks for catching that. I edited it. –  Chris_O Sep 26 '10 at 18:55

IP is a newer subset of commands that is meant to take the place of ifconfig, some examples:

ip link show    List network interfaces
ip link set dev eth0 name wan   Rename interface eth0 to wan
ip link set dev eth0 up Bring interface eth0 up (or down)
ip addr show    List addresses for interfaces
ip addr add 1.2.3.4/24 brd + dev eth0   Add (or del) ip and mask (255.255.255.0)
ip route show   List routing table
ip route add default via 1.2.3.254  Set default gateway to 1.2.3.254
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.