Questions about setting bridge

Adam Vande More amvandemore at gmail.com
Fri Sep 10 06:51:41 UTC 2010


>
> I want to setup a bridge in a ring topology since a break at any point
> along the ring would
> still leave all stations connected. My machine has two nics. In
> /etc/rc.conf, I have:
>
> ifconfig_em0="inet 192.168.1.0  netmask 255.255.255.0"
> cloned_interfaces="bridge0"
> ifconfig_em0="up"
> ifconfig_em1="up"
> ifconfig_bridge0="addm em0 addm em1 up"
> ifconfig_bridge0_alias0="192.168.1.0 netmask 255.255.255.0 up"
>
> I tried to boot my clients using tftpd, but it seems doesn't work if I
> unpluged
> em0. If I run "ifconfig em1 inet 192.168.1.0 netmask 255.255.255.0" then
> my clients can boot via tftpd. But it's not a bridge, right?
> I mean should I configure the same ip for em0, em1, and bridge0?
>

192.168.1.0/24 is not a valid address.  Your addressable hosts are
192.168.1.1 - 192.168.1.254.

I think you want to lagg:

http://www.freebsd.org/doc/handbook/network-aggregation.html

-- 
Adam Vande More


More information about the freebsd-questions mailing list