自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

實(shí)例講解如何在CentOS安裝NistNet

系統(tǒng) Linux
以實(shí)例講解,在初次CentOS安裝的時(shí)候,如何在CentOS安裝NistNet,先操作系統(tǒng)CentOS安裝,編譯內(nèi)核、CentOS安裝NistNet。

在初次CentOS安裝的時(shí)候,很多人會(huì)有很多關(guān)于一些以往的東西無法使用的情況,這次,我們以在CentOS安裝NistNet為實(shí)例來進(jìn)行講解。希望大家可以從中找到答案。那么就來看下面的步驟吧!

1、操作系統(tǒng)CentOS安裝:

經(jīng)過多次安裝測(cè)試CentOS安裝,采用完整版光盤安裝,因?yàn)榘惭bnistnet需要編譯內(nèi)核

2、CentOS安裝后,下載相關(guān)軟件包

linux-2.6.18.8.tar.gz  
下載地址如:http://www.kernel.org/pub/linux/kernel/v2.6/
nistnet.2.0.12c.tar.gz
下載地址如:http://www-x.antd.nist.gov/cgi-bin/nistnet-distribution

3、編譯內(nèi)核

# 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  //刪除不穩(wěn)定的.o文件和.config文件
# make menuconfig
Device Drivers  --->
| Character devices -->
| Enhanced Real Time Clock Suppot --M   //按M鍵,設(shè)置
# make dep       //連接程序代碼和函數(shù)庫(kù)
# make clean     //刪不必要的模塊
# make bzImage      //生成內(nèi)核文件
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.18-8_new  //注意正確路徑
# make modules         //編譯外掛模塊
# make modules_install     //安裝編譯完成的模塊
# make install
# mkinitrd   /boot/initrd-2.6.18-8_new.img  2.6.18.8
# vi /boot/grub/grub.conf  //添加啟動(dòng)項(xiàng),內(nèi)容如下:
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
//注意default=x (x為以上添加的選項(xiàng),從0開始)
# init 6

4、CentOS安裝NistNet

# tar zxvf nistnet.2.0.12c.tar.gz
# ln –s nistnet-3.0a nistnet
# cd nistnet
# ./ configure
# make

#*********************此處會(huì)出現(xiàn)error需要作以下修改**********************

1)、~/nistnet-3.0a/kernel/knistnet.c
找到916、961、972、1003行,添加參數(shù)NULL,如:
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
找到104、156、198、224、249行,(不知道匯編的具體含義)注釋掉,如:
LOCK_SECTION_START("") à //   LOCK_SECTION_START("")

3)、/lib/modules/2.6.18.8/build/include/asm/semaphore.h
找到105、130、155、179行,(不知道匯編的具體含義)注釋掉,如:
LOCK_SECTION_START("") à //   LOCK_SECTION_START("")

#*********************再重新編譯******************************************

# make
# make install

5、測(cè)試安裝是否成功
# cd ~nistnet/
# ./Load nistnet
# cnistnet –u
查看ping的情況:

[root@localhost nistnet]# cnistnet -a 192.168.2.2 192.168.2.11 --delay 50
addnistnet: 192.168.2.2:0 to 192.168.2.11:0 (prot 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:0 to 192.168.2.11:0 (prot 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安裝NistNet完成

 

至此NistNet已經(jīng)成功在CentOS安裝,接下來就是實(shí)用問題,關(guān)于nistnet的具體使用,此處不做過多說明,參見http://snad.ncsl.nist.gov/nistnet/usage.html

【編輯推薦】

  1. 初學(xué)者如何對(duì)linux CentOS安裝
  2. 教你一種簡(jiǎn)單的CentOS安裝方法
  3. CentOS安裝的瑣碎問題集
  4. 簡(jiǎn)單介紹CentOS安裝
  5. CentOS安裝配置安裝相關(guān)系統(tǒng)
責(zé)任編輯:小霞
相關(guān)推薦

2010-04-06 13:23:56

CentOS系統(tǒng)

2014-12-01 11:27:54

CentOS 7Docker

2017-08-15 11:58:15

LinuxCentOSApache Hado

2010-04-01 16:04:26

CentOS系統(tǒng)

2011-04-06 09:16:05

2017-05-03 14:00:00

LinuxCentOSElastic Sta

2010-01-13 16:55:10

CentOS PHP安

2015-04-23 10:20:52

Linux內(nèi)核4.0UbuntuCentOS

2010-03-29 17:08:28

CentOS系統(tǒng)

2020-03-02 14:06:54

CentOS 8FFmpegLinux

2011-03-14 16:42:54

DB2 UDB監(jiān)控死鎖

2010-04-01 15:05:05

CentOS系統(tǒng)

2010-04-08 11:01:34

安裝無線網(wǎng)橋

2010-04-08 11:10:41

無線網(wǎng)橋安裝配置

2013-12-04 14:45:22

2013-04-07 15:14:41

2010-04-06 10:00:52

CentOS系統(tǒng)

2015-09-10 11:38:37

iTOPCentOS開源

2017-04-11 13:20:06

CentOSRHELFedora

2015-12-11 13:16:10

CentOS 7Redis服務(wù)器
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)