Re: pinging other side (normal bridge ok, anonymous bridge not ok)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Adding a dummy device to a bridge doesn't do much for you. The dummy
> device never has any incoming packets, and any outgoing packets are
> discarded.

I understand that. But I still want to do it like this. As I mentioned,
I'm trying to make a setup that mirrors a physical setup; i.e. two
physical computers, each with one NIC plugged into a hub which itself
has no IP address.  The closest I can get to this with my (kvm VM)
is: a physical machine with a dummy0 interface plugged into br0
and a VM with a virtual twisted cable with its eth0 (which via the
VM:eth0<->PM:tap0 virtual crossover cable) plugged into br0.

> The veth driver might be more useful for you. If you have the veth
> module buillt (CONFIG_VETH), you can create an interface pair using:
> $ ip link add name veth0 type veth peer name veth1
> This gives you a pair of ethernet devices (veth0 and veth1) set up so
> that a packet sent out on any one is received on the other. With this,
> you can make one of these a bridge port and give the other end the IP
> address.

So you mean without br0 at all? If so then, no, I really want to do 
it with br0.

Simply: why, when this works:

>> brctl addbr br0
>> ifconfig br0 192.168.1.42 up
>> ifconfig dummy0 0.0.0.0
>> brctl addif br0 dummy0
>> brctl addif br0 tap0

does this not work:

>> brctl addbr br0
>> ifconfig dummy0 192.168.1.42 up
>> brctl addif br0 dummy0
>> brctl addif br0 tap0

? Thanks!

Alexis

_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux