![]() ![]() The network interfaces are enumerated using numbers. Inet6 fe80::7495:f97d:6134:dc22/64 scope link noprefixrouteģ: virbr0: mtu 1500 qdisc noqueue state UP group default qlen 1000 Valid_lft 78871sec preferred_lft 78871sec Running the above command will give you details like MAC address, DHCP lifetime, IP address, name of interface, speed, and much more.įor demonstration purposes, let's see what the output looks like on my computer: $ ip addrġ: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 To show all network interfaces, use the following command: ip addr The ip command gives us the details that we require. To know that, we have to use the ip command. If like me, you got more than one IP address in the output of hostname command, you might be wondering "Which IP address belongs to which network interface?" ![]() If you are using it in a script, it's better to use the ip command mentioned next. The hostname command may not be available in all Linux distributions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |