Chinaunix首页 | 论坛 | 博客
  • 博客访问: 734895
  • 博文数量: 235
  • 博客积分: 4309
  • 博客等级: 中校
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-17 11:25
个人简介

If you don\\\\\\\\\\\\\\\'t wanna do it, you find an EXCUSE; if you do, you\\\\\\\\\\\\\\\'ll find a WAY :-)

文章分类

全部博文(235)

文章存档

2014年(3)

2013年(2)

2012年(31)

2011年(199)

分类: LINUX

2011-01-20 11:15:02

FreeBSD: Atheros AR8131 / AR8132 Gigabit Fast Ethernet Driver Configuration

by VIVEK GITE on JULY 22, 2010 · 

Ihave installed FreeBSD 8.x on my Laptop with Windows 7 in dual boot mode. But I'm unable to connect to the LAN or Internet using Atheros AR8132 card. How do I configure this card under FreeBSD?

The alc device driver comes with FreeBSD 8.x and above provides support for Atheros AR8131 PCI Express Gigabit Ethernet controllers and Atheros AR8132 PCI Express Fast Ethernet LAN cards. To configure the card edit /boot/loader.conf, enter:

  1. # vi /boot/loader.conf
Append the following entry to load driver:

  1. if_alc_load="YES"

Save and close the file. You can now reboot the system or type the following command to load it for the current session:

  1. # kldload alc
Run ifconfig to verify that you can see alc0 interface. If not than you need to compile this driver into the kernel, place the following lines in your kernel configuration file:

  1. device miibus
  2. device alc

See how to compile more info.

Network Configuration

Now, you can use your GUI tools or ifconfig command to assign IP address:

  1. # ifconfig
  2. # ifconfig alc0 inet YOUR-IP-HERE netmask YOUR-NETMASK-HERE
  3. # ifconfig alc0 inet 192.168.1.2 netmask 255.255.255.0
  4. # route add default 192.168.1.1
  5. # ifconfig
  6. # ping 192.168.1.1

You need to add config to /etc/rc.conf:

  1. ifconfig_alc0="inet 192.168.1.2 netmask 255.255.255.0"
  2. defaultrouter="192.168.1.1"
Finally, edit /etc/resolv.conf and add your DNS name servers:
  1. # vi /etc/resolv.conf
Edit as follows:
  1. nameserver 192.168.1.1
  2. nameserver 202.54.1.2
Save and close the file. Reboot to make sure that everything is working for you.

阅读(874) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~