I want to switch the connection from my 10 gbps ethernet port to either 1 gbps or 2.5 gbps ethernet port present in my motherboard. But dont know how to find the mac addresses of these (1 gbps / 2.5 gbps) ethernet ports in Truenas scale OS. On windows, normally ipconfig /all shows this information; what is the equivalent in truenas scale? I already tried ip addr (worked but didnt list these ports) and ifconfig (didnt work). Thank you
Additional info: All the relevant queires only suggest that: The config
command displays only the current system configuration network settings. However, am interested in the ones (ethernet ports) which are physically present on motherboard but not in use at the moment. As I want to switch to one of them (1 gbps / 2.5 gbps) and remove the 10 gbps pcie card (which is currently being used). As I want to use that pcie slot for graphic card. Thank you.
If you have a router at home, log in into it, and check your DHCP status window.* **
Only connect the server and the PC from which you logged in to the router.
Turn on the server and only connect one Ethernet port at the time, and check the appearing IP/MAC in the list.
(it is possible that only the IP shows up in the list, but then you can “Edit” the entry, where most likely the MAC address will also be available.)
- This is however not a 100% accurate method, since each router provider implements it on their own (often really annoying and unpractical ) ways.
** If you have a more complex home network and the DHCP is not run on your router, you must check the same in your DHCO server.
Thank you, that’s an innovative way. … …unfortunately, cant access the router as am using this NAS in institute to store my data. … …maybe, I just remove the OS nvme drive and plug in the ubuntu usb boot drive and find out mac addresses of ethernet ports on the motherboard?. … …or do you think, installing virtual machine (eg ubuntu) will recognize all the hardware (ethernet ports) on the motherboard of server? Thank you
If you ssh into the truenas box or somehow else get access to a shell (command line)
Try these commands :
ip a
ifconfig
@Bingo600 Thank you. The “ip a” command displays same ports as “ip addr”; these commands display only the current system configuration network settings and do not list the “unused ethernet ports” on the motherboard. ifconfig is deprecated in the current version of trueNAS, and doesnt work. thank you again
if its a smaller network you could use a windows terminal and arp -a which lists all ips in the network and the mac address.
ifconfig -a
should give you all the interfaces, even the ones not in use.
HTH,
Patrick
It works just fine, but you may not have the application’s location in your $PATH. Either add the path in you shell or run it with the absolute path: /usr/sbin/ifconfig -a
ifconfig will show all MAC addresses, even the ones of interfaces that are unconfigured and not currently connected to anything.
if he’s using the truenas_admin its the old song… sudo ifconfig works
/usr/sbin/ifconfig ...
Unix 101 - nothing TrueNAS specific, really.
Thank you all. ifconfig with direct path (/usr/sbin/ifconfig) worked and listed many ip’s and mac addresses but they were only either the one in use (10 gbps ethernet port) or the docker port or br-port ip’s and the tailscale veth ip’s. But couldnt find the unused ones (1 gbps or 2.5 gbps). I used these ipconfig commands in TrueNAS shell through webinterface. Thank you again for your kind help.
Did you try with the -a
flag?
Hi everyone,
I wanted to update you on the issue I was facing regarding identifying the MAC addresses of unused Ethernet ports on my motherboard. I managed to solve the problem by creating a Mint Linux USB boot drive and plugging it into my NAS server. After booting from the USB drive, I used the ifconfig -a
command, which allowed me to identify the unused Ethernet ports effectively.
In contrast, when I was using the TrueNAS shell, I encountered a lot of MAC addresses, including several virtual ones, which made it quite confusing. Unlike Windows, the output in TrueNAS doesn’t provide detailed information (like speeds such as 1 Gb/s or 2.5 Gb/s associated with Intel or Realtek brands), which is why I struggled to determine which MAC address corresponded to the unused port on the motherboard.
Thank you for all your suggestions!
Best,