if_bridge and ip alias problem

Andrew Thompson thompsa at freebsd.org
Sat Feb 3 20:03:40 UTC 2007


On Fri, Feb 02, 2007 at 11:03:26PM +0100, Bartosz Giza wrote:
> Hi,
> 
> recently i have set up bridge based on if_bridge implementation.
> I have IP address assigned to bridge0 iface and no addresses assigned
> to members of bridge0.
> Basicly i am configuring bridge0 in rc.conf:
> 
> cloned_interfaces="bridge0"
> autobridge_interfaces="bridge0"
> autobridge_bridge0="rl0 rl1 em0"
> ifconfig_bridge0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_bridge0_alias0="inet 10.1.1.2  netmask 255.255.255.255"
> ifconfig_rl0="up"
> ifconfig_rl1="up"
> ifconfig_em0="up"
> 
> The problem is with my first alias(10.1.1.2) after system reboot this
> alias is not visible over network. I can ping this ip on bridge box
> but no other host can ping this address.
> When i delete this alias from iface with:
> ifconfig bridge0 delete 10.1.1.2
> and again add on running system
> ifconfig bridge0 add 10.1.1.2/32

Do you see if the address is arped correctly from the other host? you
can use tcpdump to view this or just add it statically to see if this
resolves the problem. When you re-add the alias it will send out a
gratuitous arp which suggests this is the problem.


cheers,
Andrew


More information about the freebsd-net mailing list