http://blogs.dootdoot.com/mike

My recent testing with ZFS has been going well. Well enough that I picked up an additional network card:

Yes, it is a $400 network card. If this was for home, this would be overkill, but with the Intel 82576 Gigabit Ethernet Controller allowing 4 GbE ports in a PCIe x4 2.0 slot, it was exactly what I needed at the office. Plus, the 82576 controller has excellent Solaris/OpenIndiana compatibility.

Being new to OpenIndiana, installing the card was different, but easy enough. This was especially true since OpenIndiana already had the driver preloaded. All I had to do was find the device name, and bring up the interface.

Finding the device was pretty straight forward with scanpci:

root@storage:~# scanpci

pci bus 0x000a cardnum 0x00 function 0x00: vendor 0x8086 device 0x10e8
Intel Corporation 82576 Gigabit Network Connection

pci bus 0x000a cardnum 0x00 function 0x01: vendor 0x8086 device 0x10e8
Intel Corporation 82576 Gigabit Network Connection

pci bus 0x000b cardnum 0x00 function 0x00: vendor 0x8086 device 0x10e8
Intel Corporation 82576 Gigabit Network Connection

pci bus 0x000b cardnum 0x00 function 0x01: vendor 0x8086 device 0x10e8
Intel Corporation 82576 Gigabit Network Connection

All I really needed to find was the device number, 0x10e8. Once I found the card in the list I then used the device number to scan the driver aliases to find the driver name:

root@storage:~# grep 10e8 /etc/driver_aliases
igb "pciex8086,10e8"

Now that I had the driver alias, I can actually work the with the card…

root@storage:~# ifconfig igb0 plumb
root@storage:~# ifconfig igb0 netmask 255.255.255.0 192.168.1.2
root@storage:~# ifconfig igbl0 up
root@storage:~# ifconfig igbl0
root@storage:~# ping 192.168.1.1
root@storage:~# ifconfig igb0 down
root@storage:~# ifconfig igb0 unplumb

Once that works, you can make the network card permanent using:

root@storage:~# echo "192.168.1.2" > /etc/hostname.igb0
root@storage:~# svcadm restart network/physical:default

That’s it, now repeat for igb1, igb2, and igb3. Or, if you’re like me, prepare yourself to go re-setup your link aggregation. :)

Comments

Leave a Reply