Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install NistNet under CentOS

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install NistNet under CentOS. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. Operating system CentOS installation:

After many times of installation and testing, the CentOS installation is installed on the full CD, because the kernel needs to be compiled to install nistnet.

2. Download the relevant software packages after CentOS is installed

Linux-2.6.18.8.tar.gz

Download address: http://www.kernel.org/pub/linux/kernel/v2.6/

Nistnet.2.0.12c.tar.gz

Download address: http://www-x.antd.nist.gov/cgi-bin/nistnet-distribution

3. Compile the kernel

# tar zxvf linux-2.6.18.8.tar.gz

# cd / usr/src/

# ln-s / root/ linux-2.6.18.8/ linux

# cd linux

# make mrproper / / Delete unstable .o files and .config files

# make menuconfig

Device Drivers->

| | Character devices-- > |

| | Enhanced Real Time Clock Suppot-- M / / Press M key to set |

# make dep / / Link program code and function library

# make clean / / Delete unnecessary modules

# make bzImage / / generate kernel files

# cp arch/i386/boot/bzImage / boot/vmlinuz-2.6.18-8_new / / Note the correct path

# make modules / / compile plug-in module

# make modules_install / / install the compiled module

# make install

# mkinitrd / boot/initrd-2.6.18-8_new.img 2.6.18.8

# vi / boot/grub/grub.conf / / add launch items as follows:

Title Centos (2.6.18-8_new)

Root (hd0,0)

Kernel / vmlinuz-2.6.18-8_new ro root=/dev/VolGroup00/LogVol00 rhgb quiet

Initrd / initrd-2.6.18-8_new.img

/ / pay attention to default=x (x is the option added above, starting with 0)

# init 6

4. CentOS install NistNet

# tar zxvf nistnet.2.0.12c.tar.gz

# ln-s nistnet-3.0a nistnet

# cd nistnet

#. / configure

# make

# * error will appear here and need to be modified as follows * *

1), ~ / nistnet-3.0a/kernel/knistnet.c

Find lines 916,961,972 and 1003, and add the parameter NULL, such as:

Return ippt- > func (skb, dev, ippt); à return ippt- > func (skb, dev, ippt,NULL)

2), / lib/modules/2.6.18.8/build/include/asm/rwsem.h

Find lines 104, 156, 198, 224, 249 and comment them out (I don't know the exact meaning of the assembly), such as:

LOCK_SECTION_START (") à / / LOCK_SECTION_START (")

3), / lib/modules/2.6.18.8/build/include/asm/semaphore.h

Find lines 105, 130, 155, 179 and comment them out (I don't know the exact meaning of the assembly), such as:

LOCK_SECTION_START (") à / / LOCK_SECTION_START (")

# * recompile * *

# make

# make install

5. Test whether the installation is successful

# cd ~ nistnet/

#. / Load nistnet

# cnistnet-u

Check the situation of ping:

[root@localhost nistnet] # cnistnet-a 192.168.2.2 192.168.2.11-- delay 50

Addnistnet: 192.168.2.2 cos 0 to 192.168.2.11 cos 0 (cos 0)

Delay 50.000000 (sigma 0.000000 corr 0.000000)

Bandwidth 0, drop 0.000000 (corr 0.000000)

Dup 0.000000 (corr 0.000000)

Drdmin 0, drdmax 0, drdcongest 0

[root@localhost nistnet] #

[root@localhost nistnet] # cnistnet-a 192.168.2.2 192.168.2.11-- drop 50

Addnistnet: 192.168.2.2 cos 0 to 192.168.2.11 cos 0 (cos 0)

Delay 0.000000 (sigma 0.000000 corr 0.000000)

Bandwidth 0, drop 50.000000 (corr 0.000000)

Dup 0.000000 (corr 0.000000)

Drdmin 0, drdmax 0, drdcongest 0

[root@localhost nistnet] #

6. CentOS installation NistNet completed

On how to install NistNet under CentOS to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report