ifconfig
Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed.
From man page
If no arguments are given, ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even those that are down. Otherwise, it configures an interface.
From man page
- ens5: Network adapter.
- inet 10.0.0.235: Network adapter's IP.
- netmask 255.255.255.0: Network adapter's subnet mask.
- inet6: IPv6 protocol IP address.
- (Ethernet): Tells us that this is an Ethernet adapter.
- RX packets, RX errors, TX packets, TX errors: Packet statistics.
If you want to restart a network adapter because it is not configuring correctly, you can set it down with
ifconfig ens5 down
and then set it up withifconfig ens5 up
.