Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1611
  • Last Modified:

Nistnet error> util_binaddnistnet: No such device

Hey All,
I have set up a computer to act as an emulator using nistnet but I am having difficulty getting the nistnet tool to work.
Everytime I try to add a configuration like:

cnistnet -a 193.1.132.110 192.168.0.1

it gives the error:

util_binaddnistnet: No such device

after echoing back the configuration I specified.
Can someone please tell me what this means and how to solve it.
Thanks,
Stef
0
stefarg
Asked:
stefarg
  • 6
  • 6
1 Solution
 
Alf666Commented:
Did you compile and load the nistnet module ?
(insmod nistnet).

0
 
stefargAuthor Commented:
I followed the instructions at http://snad.ncsl.nist.gov/nistnet/install.html
although now come to think of it the Load.Nistnet command complained about the rtc module not being loaded even though I loaded it in make menuconfig and make dep.
Could you explain a bit more about the insmod nistnet process.
I am not very well up on linux.
Thanks,
Stef
0
 
stefargAuthor Commented:
where do I call insmod nistnet from i.e. from the directory where I installed nistnet or from /usr/local/bin/ where the executable is?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
Alf666Commented:
just type insmod nistnet from anywhere.
Or use the Load.Nistnet command.

If you get any error message, please send it here.
Obviously, the kernel module is not loaded. Hence the error messages.
0
 
stefargAuthor Commented:
yeah, I got an error:

/lib/modules/2.4.10-4GB/misc/nistnet.o was compiled for kernel version 2.4.9 while this kernel is version 2.4.10-4GB

What can I do about this? is there some way I can install the correct kernel?
Thanks again,
Stef
0
 
Alf666Commented:
The kernel you have is correct. What is wrong is the kernel sources you have in /usr/src. The kernel sources you have on your box is 2.4.9. The kernel installed (and in use) is 2.4.10.

Where did you get your 2.4.10 kernel ? Upgrade ? If yes, upgrade the kernel sources. Which distrib is that ?

Once you have the 2.4.10 kernel sources (please, don't get one from www.kernel.org. Get the package for your distrib), you have to get the actual config. On RedHat, there is a config directory under /usr/src/linux. Copy it to /usr/src/linux/.config. Then, cd to that directory, make a "make oldconfig", and a "make dep". This will prepare your kernel for your module compilation.

You will just have to recompile and re-install the nistnet module. It should load ok then.

0
 
stefargAuthor Commented:
hey Alf666,
Well sorta, the kernel that was in use was 2.4.10, so I found 2.4.9 sources on the suse cds and compiled and installed that.  Then I reinstalled nistnet and hey presto, A Network Emulator ready to go!
Thanks for your help,
Stef
0
 
Alf666Commented:
You're welcome. But I honestly think this deserves an "A" grade :-)
(if you wish, you can ask an admin to review the grade. You can post a request in the Support area - see the link at the top of the page - and have them re-open this question - happens all the time- ).
0
 
stefargAuthor Commented:
Hey Alf666,
I had awarded the grade before you explained about how to resolve the kernel problem and I was offering maximum points because this was urgent.
Till 4am last night I was scouring the internet to find out how to resolve the issue by compiling and installing the correct kernel, which was part of the solution I needed.  I had resolved the problem before you posted up the comments about the kernel.  Therefore while you pointed me in the right direction I did not feel that the answer you gave was complete (especially considering the points offered).
However, I think that this page will be useful to others who have problems with nistnet in the future.  This problem is on many other forums with no solution.  Therefore, I am willing to change the grade as it is probably an A grade solution for others in the future.  For my needs (urgency and incomplete answer by the time I resolved the issue) it was not an A grade, as I had to find out a large portion of the solution myself.
Just wanted to explain my reasoning for giving a B grade originally.
Thanks Stef
0
 
Alf666Commented:
No problem. Totally understanding :-)
But you're right. It should show as an A grade for future reference (honestly. Not looking for points here).
0
 
Alf666Commented:
Oh. And, for future references, on SuSE, you will find the current kernel config in /proc/config.gz. So :

cd /usr/src/linux
zcat /proc/config.gz > .config
make oldconfig
make dep

I love this SuSE trick. Very usefull. Even if it takes a few K of kernel mem.
0
 
stefargAuthor Commented:
That's cool :)
Thanks for all your help,
I posted a change of grade request in the support area,
Stef
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now