ifconfig and ip commands
ifconfig is part of the legacy net-tools package
- deprecated on most modern Linux distributions
- can still be safely used to report network interface configurations
- net-tools is replaced by iproute2 package
ip command has options for managing routes as well as the local interface configuration
ip addr shows current network address configuration
ip addr show dev eth0 reports a single interface only
ip link shows the status of interfaces
ip -s link reports interface statistics
ip link set eth0 up|down enables or disables an interface
ip addr add|delete can be used to modify IP address configuration
- only apply to the running configuration, are not persistent