LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-02-2006, 08:50 PM   #1
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Rep: Reputation: 30
Using Tap Interface


I currently am unable to get the Tun driver to work for tap interfaces with Qemu, even as root.

/etc/qemu-ifup:
Code:
#!/bin/sh
a=tunl0
IP=192.168.1.199
echo $1
sudo /sbin/ifconfig $a down
sudo /sbin/ifconfig $1 down
if [ -e /sys/class/net/br0 ]; then
        echo "Bridge Already Exists"
        echo "Deleting..."
        sudo /sbin/ifconfig br0 down
        sudo /sbin/ifconfig $a down
        sudo /sbin/brctl delbr br0
        sudo /sbin/route del -host $IP gw 192.168.1.1
fi
echo "Adding Bridge..."
sudo /sbin/brctl addbr br0
sudo /sbin/ifconfig $1 0.0.0.0 promisc up
sudo /sbin/ifconfig $a 0.0.0.0 promisc up
sudo /sbin/ifconfig br0 $IP broadcast 192.168.1.255 up
sudo /sbin/brctl stp br0 off
sudo /sbin/brctl setfd br0 1
sudo /sbin/brctl sethello br0 1
sudo /sbin/brctl sethello br0 1
echo "Adding Interface..."
sudo /sbin/brctl addif br0 $1
echo "Adding Route..."
sudo /sbin/route add -host $IP gw 192.168.1.1
Everything apparently works, until Qemu starts. Windows 2000 is unable to connect through the tap.

What am I doing incorrectly?
 
Old 02-05-2006, 04:12 PM   #2
Kenji Miyamoto
Member
 
Registered: Dec 2004
Distribution: Mandrake 10.1; Fedora Core 3; FreeBSD 5.3; Slackware 10.1 (2.6.10);
Posts: 234

Original Poster
Rep: Reputation: 30
Has anyone even gotten the interface to work with Qemu?
 
  


Reply



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
help using tap device sunnos9 Linux - Networking 0 05-01-2005 12:18 AM
Why does my toucpad not regocnize the tap? Adriaan Steenka Linux - Laptop and Netbook 3 10-11-2004 08:37 AM
glidepoint mouse will not tap box_l Mandriva 3 09-13-2004 08:11 AM
Tap Drive imsajjadali Linux - General 9 02-07-2004 06:12 AM
Tap Drive imsajjadali Linux - Distributions 2 01-26-2004 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration