2015-03-10 15:51:23 +01:00
|
|
|
Build netmap on Debian 7 Wheezy with ixgbe 10GE NIC (82599):
|
|
|
|
|
|
|
|
Get kernel sources:
|
|
|
|
```bash
|
|
|
|
cd /usr/src
|
|
|
|
apt-get source linux-image-3.2.0-4-amd64
|
|
|
|
```
|
|
|
|
|
|
|
|
Download netmap kernel module code:
|
|
|
|
```bash
|
|
|
|
cd /usr/src
|
|
|
|
git clone https://code.google.com/p/netmap/
|
|
|
|
cd netmap/LINUX/
|
|
|
|
```
|
|
|
|
|
|
|
|
Build netmap with drivers:
|
|
|
|
```
|
|
|
|
./configure --kernel-sources=/usr/src/linux-3.2.65 --drivers=ixgbe
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
|
|
|
Load modules:
|
|
|
|
```
|
|
|
|
insmod ./netmap.ko
|
|
|
|
modprobe mdio
|
|
|
|
modprobe ptp
|
|
|
|
modprobe dca
|
|
|
|
insmod ixgbe/ixgbe.ko
|
|
|
|
```
|
|
|
|
|
2015-03-10 21:14:49 +01:00
|
|
|
Enable interfaces:
|
|
|
|
```bash
|
|
|
|
ifconfig eth0 up
|
|
|
|
ifconfig eth0 promisc
|
|
|
|
```
|
|
|
|
|
2015-03-10 15:51:23 +01:00
|
|
|
Add to /etc/rc.local:
|
|
|
|
```bash
|
|
|
|
rmmod ixgbe
|
|
|
|
insmod /usr/src/netmap/LINUX/netmap.ko
|
|
|
|
modprobe mdio
|
|
|
|
modprobe ptp
|
|
|
|
modprobe dca
|
|
|
|
insmod /usr/src/netmap/LINUX/ixgbe/ixgbe.ko
|
2015-03-10 21:14:49 +01:00
|
|
|
ifconfig eth0 up
|
|
|
|
ifconfig eth0 promisc
|
2015-03-10 15:51:23 +01:00
|
|
|
```
|
2015-05-14 02:15:39 +02:00
|
|
|
|
|
|
|
If you want driver with all modern features, please take a look [here](http://www.stableit.ru/2014/10/netmap-debian-7-wheezy-intel-82599.html)
|