Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-01-2005, 02:37 AM   #1
Moy Easwaran
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 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:
tun gateway on host:

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?

Old 05-15-2005, 12:20 PM   #2
Moy Easwaran
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:
qemu -user-net -redir tcp:2022::22 ...


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 05:49 PM
need help: /dev/net/tun boxyou Linux - Networking 1 04-29-2005 02:11 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Problem with tun spoody_goon Linux - Newbie 0 10-11-2003 01:58 PM
tun.o shollebeck Linux - Software 6 06-25-2001 05:38 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:40 PM.

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