r/aix • u/daygamer77 • Jun 05 '24
[Help] Figuring out which network device on VIOS
Hi,
So i added a virtual adapter to for the new VLAN on our HMC. That virtual adapter, I attach it to both our VIOS on the HMC and its reflecting on each of the VIOS profile.
Now, inside the VIOS, i need to add additional route on that adapter. I have 4 network adapters on the VIOS,
Out of the 4, How do i find the exact adapter which i added on the VIOS on the HMC?
5
Upvotes
1
u/Mustaphuh Jun 08 '24
I am assuming you added the adapter to the profile but haven't made a reboot yet? If that's the case, you will definitely have to reboot the VIOS for the new added virtual adapter to come up on VIOS.
i need to add additional route on that adapter. << Do you mean add it to the Shared Ethernet Adapter?
How do i find the exact adapter which i added on the VIOS on the HMC?
Going back to your HMC Profile, take a look at the adapter ID of the adapter you just created, then you might run something like:
VIRTENT=$(lsdev -Cc adapter | grep "Virtual I/O Ethernet Adapter" | awk '{print $1}')
for i in $VIRTENT
do
done
This will show you each virtual adapter and its corresponding virtual slot number on the profile. e.g. Adapter ID 6 will have a C6.
1
u/Tsamaunk Jun 05 '24
Each adapter should have a unique "hardware" ID number. Use that. It's been a few years, but I think the command is <lshwres>
1
u/CalligrapherNo870 Feb 18 '25
You can add the adapter using DLPAR after it will show the hw addr in lscfg