NOTE : I have changed the values of the output. UP BROADCAST RUNNING MULTICAST MTU:123 Metric:123 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:123 it has an inet address, I even don't want one having inet6). So is there a way I could get the MAC address for the first available interface that is Active.(i.e. ![]() Also on OS X the interface names are different.Īlso the interface eth0 may be present but is unused. Typically, eth0 is for Ethernet connection, and wlp2s0 for Wireless connection.Currently all the solution mentioned for getting the MAC address always use eth0.īut what if instead of eth0 my interfaces start with eth1. Inet6 1:2:00:33:333/64 scope global mngtmpaddr noprefixroute dynamic Valid_lft 548176sec preferred_lft 61403sec Inet6 AB:AD:AK:AI/64 scope global temporary dynamic Valid_lft 61791sec preferred_lft 61791sec 15 essential Bash commands for everyday use 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |