LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-01-2005, 03:37 AM   #1
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
qemu tun problems


I've installed qemu, and if I tell it to use -user-net, things work fine. I can ping www.yahoo.com and get a response.

I'm trying to get it to talk to my tun device so that I can see my local network, and I can't get this to work. I've turned on ip forwarding (/proc/sys/net/ipv4/ip_forward) and NAT on the host, and the network looks like this:
host: 192.168.1.101
guest: 192.168.1.201
tun gateway on host: 192.168.1.200

When I ping the gateway from the guest, the host's /var/log/messages records the packets as martians. When I ping the host directly from the guest, or viceversa, I get "icmp_seq=* Destination Host Unreachable".

Any ideas?

Thanks.
 
Old 05-15-2005, 01:20 PM   #2
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Original Poster
Rep: Reputation: 19
Never figured out tun/tap networking, but at some point I realized that all I really needed was ssh access from my local network to the qemu host, so the following works:
Code:
qemu -user-net -redir tcp:2022::22 ...
 
  


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
problems with windows programs in linux (QEMU, WINE, or linux alternative) bulldogzerofive Linux - Software 2 08-18-2005 06:49 PM
need help: /dev/net/tun boxyou Linux - Networking 1 04-29-2005 03:11 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-05-2005 12:25 AM
Problem with tun spoody_goon Linux - Newbie 0 10-11-2003 02:58 PM
tun.o shollebeck Linux - Software 6 06-25-2001 06:38 PM


All times are GMT -5. The time now is 02:01 PM.

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