4

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.

2 Answers 2

5

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.

2
  • ifconfig, not ipconfig.
    – joschi
    Sep 26, 2010 at 8:16
  • @joschi Thanks for catching that. I edited it.
    – Chris_O
    Sep 26, 2010 at 18:55
1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .