LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-10-2007, 11:29 PM   #1
Peter John
LQ Newbie
 
Registered: Jan 2007
Posts: 29

Rep: Reputation: 15
How to install an RPM on Linux


Pardone me, for this very basic question.
I am totally new to linux. I was trying to bring up the tun0 interface, seems the kernel has no package.

modprobe tun.
lsmod | grep tun
returns device found
ifconfig tun0 10.0.0.1 255.255.255.0 says
Device not found ---

Kindly Help. How do i install an tun RPM?

Peter
 
Old 01-11-2007, 01:33 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
RPM comes from Redhat Package Manager, and a .rpm package is a package that is installed using the program rpm. If your kernel didn't have support for your card (whatever 'tun' is), you couldn't just install some 'tun rpm', but needed to either install a kernel version that supported it or configure and compile one yourself. In this case, however, the kernel does have what you probably ask for:

Quote:
modprobe tun.
lsmod | grep tun
'modprobe' is a command that can install/'attach' modules to your running kernel. In this case you tried to install a module called 'tun' to your running kernel, and if the latter 'lsmod' command produced output, it succeeded, so no problem there if you know this 'tun' is the right module.

What kind of device is this you are trying to get working? An ethernet card, maybe? In that case try 'eth' instead of 'tun', i.e. if you already have a regular ethernet card called eth0, try
Code:
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
I'm not sure if I have ever seen a device called 'tun0' or any other number, but it could just be me..anyway, if you can, tell a bit more about this device you're trying to get working, it might help.
 
Old 01-11-2007, 02:21 AM   #3
Peter John
LQ Newbie
 
Registered: Jan 2007
Posts: 29

Original Poster
Rep: Reputation: 15
TUN/TAP provides packet reception and transmission for user space programs.
It can be viewed as a simple Point-to-Point or Ethernet device, which
instead of receiving packets from a physical media, receives them from
user space program and instead of sending packets via physical media
writes them to the user space program.

When a program opens /dev/net/tun, driver creates and registers corresponding
net device tunX or tapX. After a program closed above devices, driver will
automatically delete tunXX or tapXX device and all routes corresponding to it.

http://www.kernel.org/pub/linux/kern...ing/tuntap.txt
Peter
 
Old 01-11-2007, 03:01 AM   #4
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
Your documentation seems pretty old. Are you sure this software will still work on newer systems (assuming you are using a newer system)? For how to install rpm's: the best solution is to use the packet management system that came with your distribution (given there is any). They are usually quite easy to use. If you are using a Debian based system like Ubuntu you need .deb packages. Avoid using packages that are not build for your exact distribution (like SUSE 10.2 or whatever you have). Otherwise it is best to install from source but get some good documentation before.
 
Old 01-11-2007, 03:22 AM   #5
Peter John
LQ Newbie
 
Registered: Jan 2007
Posts: 29

Original Poster
Rep: Reputation: 15
I have installed an new RPM.. i still face the same problem

[root@localhost root]# modprobe tun
[root@localhost root]# lsmod | grep tun
tun 5696 0 (unused)
[root@localhost root]# ifconfig tun0 10.0.0.1 netmask 255.255.255.0 up
SIOCSIFADDR: No such device
tun0: unknown interface: No such device
SIOCSIFNETMASK: No such device
tun0: unknown interface: No such device
[root@localhost root]# uname -r
2.4.20-8
[root@localhost root]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Linux RPM package under Debian? yilang Debian 4 08-06-2005 11:19 PM
how to install new rpm on my linux machine vinaymudgil007 Linux - Newbie 2 12-01-2004 07:51 AM
install Gnome 2.2.2 on RH Linux 9 using rpm aokawa Red Hat 3 09-12-2003 05:57 AM
linux-2.4.20-9.src.rpm seems to install, but where?? Pcghost Linux - Software 6 04-10-2003 10:27 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration