Monday, February 10, 2020

dhcp perf tools


1. How to install
    kea-admin contains perfdhcp binary

$ sudo apt install kea-admin

$ sudo perfdhcp -p 60 -r 100 -d 5 -R 50 192.168.1.1

2. User manual
https://users.isc.org/~tomasz/perfdhcp/dhcp-perf-guide.html#perfdhcp-commandline-examples
- adding delayed-ack 32 that allows packets to queue before send
- max-ack-delay that increase time to fsync
- ping-check false
- dont-use-fsync to true

3. Build your own
    build/install from source

$ sudo apt -y install automake libtool pkg-config build-essential ccache

$ sudo apt -y install libboost-dev libboost-system-dev liblog4cplus-dev libssl-dev

$ git clone https://gitlab.isc.org/isc-projects/kea.git

$ cd kea

$ autoreconf --install

$ ./configure [your additional options here]

$ make -j4

$ sudo make install

$ echo "/usr/local/lib/hooks" > /etc/ld.so.conf.d/kea.conf

$ ldconfig

No comments:

Post a Comment