1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 17:32:59 +01:00
fastnetmon-rewritten/docs/NETMAP_INSTALL.md

54 lines
1.1 KiB
Markdown
Raw Normal View History

2015-03-10 15:51:23 +01:00
Build netmap on Debian 7 Wheezy with ixgbe 10GE NIC (82599):
2015-07-23 07:26:55 +02:00
If you want _stable_ driver with all modern features, please use this reference instead [here](http://www.stableit.ru/2014/10/netmap-debian-7-wheezy-intel-82599.html)
2015-03-10 15:51:23 +01:00
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
```
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
ifconfig eth0 up
ifconfig eth0 promisc
2015-03-10 15:51:23 +01:00
```
2015-05-14 02:15:39 +02:00
2015-11-20 13:06:44 +01:00
You could use this script for automatic install netmap with all required drivers: https://gist.github.com/pavel-odintsov/6353bfd3bfd7dba2d99a