Sodamhan.com

TL;DR

ifdata

Display information about a network interface. More information: https://joeyh.name/code/moreutils/.

  • Display the whole configuration of the specified interface:

ifdata -p eth0

  • Indicate the existence of the specified interface via the exit code:

ifdata -e eth0

  • Display the IPv4 adress and the netmask of the specified interface:

ifdata -pa -pn eth0

  • Display the Network adress, the broadcast adress, and the MTU of the specified interface:

ifdata -pN -pb -pm eth0

  • Display help:

ifdata

This document was created using the contents of the tldr project.