* [Qemu-devel] Connecting two tap interfaces to one qemu instance
@ 2009-05-28 20:23 Jedrzej Kalinowski
2009-05-28 20:39 ` Brian Jackson
2009-05-28 23:31 ` [Qemu-devel] " Charles Duffy
0 siblings, 2 replies; 6+ messages in thread
From: Jedrzej Kalinowski @ 2009-05-28 20:23 UTC (permalink / raw)
To: qemu-devel
Hello,
I've found a problem when trying to run one qemu instance with two tap
devices connected to a bridge.
I mean a commandline like this:
qemu -net nic -net tap -net nic -net tap ...
After a short time (in seconds, rather than minutes, depends on the
machine I'm runnig qemu) my network gets flooded with packets - mostly
arp requests gathered from all over the network and replicated.
What's interesting there is no problem with running two or more qemu
instances, when giving each one a tap device and connecting all of them
to the same bridge - everything works fine then.
The issue appears on qemu 0.10.5 stable both in FreeBSD and Linux
environment.
Have any of you tried to use two tap devices in one qemu instance? Any
luck?
Any information would be greatly appreciated,
Jedrzej Kalinowski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Connecting two tap interfaces to one qemu instance
2009-05-28 20:23 [Qemu-devel] Connecting two tap interfaces to one qemu instance Jedrzej Kalinowski
@ 2009-05-28 20:39 ` Brian Jackson
2009-05-28 22:13 ` Jedrzej Kalinowski
2009-05-28 23:31 ` [Qemu-devel] " Charles Duffy
1 sibling, 1 reply; 6+ messages in thread
From: Brian Jackson @ 2009-05-28 20:39 UTC (permalink / raw)
To: Jedrzej Kalinowski; +Cc: qemu-devel
Try turning STP on for the bridge maybe.
On May 28, 2009, at 3:23 PM, Jedrzej Kalinowski wrote:
> Hello,
>
> I've found a problem when trying to run one qemu instance with two tap
> devices connected to a bridge.
>
> I mean a commandline like this:
> qemu -net nic -net tap -net nic -net tap ...
>
> After a short time (in seconds, rather than minutes, depends on the
> machine I'm runnig qemu) my network gets flooded with packets - mostly
> arp requests gathered from all over the network and replicated.
>
> What's interesting there is no problem with running two or more qemu
> instances, when giving each one a tap device and connecting all of
> them
> to the same bridge - everything works fine then.
>
> The issue appears on qemu 0.10.5 stable both in FreeBSD and Linux
> environment.
>
> Have any of you tried to use two tap devices in one qemu instance? Any
> luck?
>
>
>
> Any information would be greatly appreciated,
> Jedrzej Kalinowski
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Connecting two tap interfaces to one qemu instance
2009-05-28 20:39 ` Brian Jackson
@ 2009-05-28 22:13 ` Jedrzej Kalinowski
2009-05-29 11:54 ` Paul Brook
0 siblings, 1 reply; 6+ messages in thread
From: Jedrzej Kalinowski @ 2009-05-28 22:13 UTC (permalink / raw)
To: qemu-devel; +Cc: Brian Jackson
Brian Jackson pisze:
> Try turning STP on for the bridge maybe.
>
>
> On May 28, 2009, at 3:23 PM, Jedrzej Kalinowski wrote:
>
>> Hello,
>>
>> I've found a problem when trying to run one qemu instance with two tap
>> devices connected to a bridge.
>>
>> I mean a commandline like this:
>> qemu -net nic -net tap -net nic -net tap ...
>>
>> After a short time (in seconds, rather than minutes, depends on the
>> machine I'm runnig qemu) my network gets flooded with packets - mostly
>> arp requests gathered from all over the network and replicated.
>>
>> What's interesting there is no problem with running two or more qemu
>> instances, when giving each one a tap device and connecting all of them
>> to the same bridge - everything works fine then.
>>
>> The issue appears on qemu 0.10.5 stable both in FreeBSD and Linux
>> environment.
>>
>> Have any of you tried to use two tap devices in one qemu instance? Any
>> luck?
>>
>>
>>
>> Any information would be greatly appreciated,
>> Jedrzej Kalinowski
>>
>>
>
Yes, I tried STP on bridge and it helps.
But it's fighting effects, not cause of the problem
My understanding is that qemu should not work like this. Usual host with
two network devices connected to the same network doesn't create loops
like this.
--
Jedrzej Kalinowski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Connecting two tap interfaces to one qemu instance
2009-05-28 22:13 ` Jedrzej Kalinowski
@ 2009-05-29 11:54 ` Paul Brook
0 siblings, 0 replies; 6+ messages in thread
From: Paul Brook @ 2009-05-29 11:54 UTC (permalink / raw)
To: qemu-devel; +Cc: Brian Jackson, Jedrzej Kalinowski
> Yes, I tried STP on bridge and it helps.
> But it's fighting effects, not cause of the problem
>
> My understanding is that qemu should not work like this. Usual host with
> two network devices connected to the same network doesn't create loops
> like this.
You aren't emulating a host with two devices. You're emulating a switch with
three ports. One connected to the guest, and the other two connected to tap
interfaces. Exactly the same thing will happen if you implement this topology
with real hardware.
Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] Re: Connecting two tap interfaces to one qemu instance
2009-05-28 20:23 [Qemu-devel] Connecting two tap interfaces to one qemu instance Jedrzej Kalinowski
2009-05-28 20:39 ` Brian Jackson
@ 2009-05-28 23:31 ` Charles Duffy
2009-05-30 10:56 ` Jedrzej Kalinowski
1 sibling, 1 reply; 6+ messages in thread
From: Charles Duffy @ 2009-05-28 23:31 UTC (permalink / raw)
To: qemu-devel
Jedrzej Kalinowski wrote:
> Hello,
>
> I've found a problem when trying to run one qemu instance with two tap
> devices connected to a bridge.
>
> I mean a commandline like this:
> qemu -net nic -net tap -net nic -net tap ...
Do this instead:
qemu -net nic,vlan=0 -net tap,vlan=0 -net nic,vlan=1 -net tap,vlan=1 ...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Re: Connecting two tap interfaces to one qemu instance
2009-05-28 23:31 ` [Qemu-devel] " Charles Duffy
@ 2009-05-30 10:56 ` Jedrzej Kalinowski
0 siblings, 0 replies; 6+ messages in thread
From: Jedrzej Kalinowski @ 2009-05-30 10:56 UTC (permalink / raw)
To: qemu-devel; +Cc: Charles Duffy
Charles Duffy wrote:
> Jedrzej Kalinowski wrote:
>> Hello,
>>
>> I've found a problem when trying to run one qemu instance with two tap
>> devices connected to a bridge.
>>
>> I mean a commandline like this:
>> qemu -net nic -net tap -net nic -net tap ...
>
> Do this instead:
>
> qemu -net nic,vlan=0 -net tap,vlan=0 -net nic,vlan=1 -net tap,vlan=1 ...
>
>
>
It helped, thank you!
--
Jędrzej Kalinowski
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-30 10:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 20:23 [Qemu-devel] Connecting two tap interfaces to one qemu instance Jedrzej Kalinowski
2009-05-28 20:39 ` Brian Jackson
2009-05-28 22:13 ` Jedrzej Kalinowski
2009-05-29 11:54 ` Paul Brook
2009-05-28 23:31 ` [Qemu-devel] " Charles Duffy
2009-05-30 10:56 ` Jedrzej Kalinowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).