Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

what's the difference between "ip a" and "ifconfig" under SUSE 11

Writer Sebastian Wright

I found the output of the two commands are different and it seems that "ip a" will list more interface's infomation that ipconfig, so the simple question is why? from my understanding, "ip a" is just kind of alias for ifconfig.

3 Answers

ip from iproute2 is intended to be a replacement for the older ifconfig, route and arp net-tools programs, providing a more consistent interface. It also supports various new features not supported by net-tools such as policy routing, multiple IPv4 addresses per interface (without the need for :aliases), or CIDR instead of subnet masks. (As far as I know, net-tools haven't been maintained since 2001.)

They're very similar commands. The exact sets of information they list is not precisely the same. ifconfig, for example, lists packet counts. ip a, for example, lists IPv4 addresses not associated with aliases.

1

ifconfig is just to configure an interface, while ip can additionally set routes, tunnels, monitor an interface and more. Compare man ifconfig with man ip.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy