Update Nov 17, 2016 – some alternatives to the old Linux networking commands are preferred in modern Linux systems (Ubuntu 16.04, RHEL 7.x, CentOS 7.x).
- ip address show
- # will show secondary ip addresses in addition to primary for each interface
- # alternative to old “ifconfig -a” (fails to show secondary ip’s)
- ip route show
- # will show route table entries
- # alternative to old “netstat -nr”
- ip route get 220.127.116.11
- # will show “best” route-table entry next-hop, interface, and source ip for given destination ip (example: 18.104.22.168)
- # not sure of an “old” command that accomplishes this new feature
Original content follows (from July 2014) …
The popularity of virtual machines has created a huge need to reduce the resource footprint of individual guest systems to maximize the combined performance of vm’s on a single hardware host. Part of this effort to reduce guest requirements has led to the trend of “minimal” Linux server package sets on a default system install. In addition to increased resources available to server applications and better performance for users, the reduced package set limits the attack vectors available (less potentially vulnerable packages and services available to be exploited).
The recently released Red Hat Enterprise Linux 7 (RHEL 7) release continues this trend with a default “minimal” server install option. Some key missing features are the “ifconfig” and “netstat” network tools. To quickly add these tools to your system, use the “yum install net-tools” command. I also like to use the “nslookup” tool which is also missing in the minimal install. Use “yum install bind-utils” to add nslookup to your system.