Thursday, April 16, 2009

Tip: D-Link DGE-528 on FreeBSD

Here's how to enable 1000baseTX full-duplex on a D-Link DGE-528 network card:
  1. % su
  2. # pciconf -lv
  3. # ifconfig
  4. # ifconfig -m re0
  5. # ifconfig re0 media 1000baseTX mediaopt full-duplex
  6. # vim /etc/rc.conf
  7. ifconfig_re0="inet netmask media 1000baseTX mediaopt full-duplex"
Start by becoming the superuser.

Steps 2, 3 and 4 help you determine where the card is (in my case re0) and collect more info on it.

On step 5 use ifconfig to apply the new setting and test the card out. If everything is ok add the ifconfig setting to /etc/rc.conf (steps 6 and 7) so that the next time you boot the next settings are applied.

man 4 re
man 8 ifconfig

No comments: