Skip to contentSkip to conversation

understanding TUN/TAP

DISCUSSION Stas Sergeev 1 participant 1 message Jan 14, 2004

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 1 line · Grigory Batalov

So after "ifup tap0" I have:

Looks about all-right.

Quoted 1 line

But not from host to dosemu:

Most likely because the TCP/IP stack on a dosemu side is not loaded by the time you are pinging it. Try pinging linux->dosemu at the same time you are pinging dosemu->linux, because when you are pinging dosemu->linux, the TCP/IP is loaded, but then it gets unloaded.

Quoted 2 lines

If I start bridging between tap0 and eth0 then I even can't ping host from dosemu:

That's right. As soon as you start bridging on some interface, this interface became unavailable for TCP/IP. Therefore it is suggested to not even assign an IP address to the interface that is used for the bridging. Although it is possible to make the linux box available for the same subnet again after the bridging was started, it is rather tricky and lets hope you don't need that.

Quoted 2 lines

So my question is: where am I wrong and what also should be tuned?

For the case of a bridging, after you created br0 interface, you have to bring it up with ifconfig to activate the bridge (or create ifcfg-br0 config).