On Sat, Dec 11, 2010 at 08:59:26PM +0700, Insan Praja SW wrote: > Hi All@, > Has anyone trying to set an interface cost on a bridge(4) devices? > It doesn't seem to work to me. > > What I'm trying to do is to create a link with L2 redundancy. I > can't use trunk due to the nature of multi operator network. So I > create both vlan(s) on both links and higher the cost on backup > links. I can't do it on the backbone switch because this is a > "shared" multipoint backbone. > > When I tried; > #ifconfig bridge0 ifcost vlan4010 1000 > > The machines replies; > ifconfig: bridge0: 1000: invalid argument >
You need to issue at least ifconfig bridge0 stp vlan4010 first. I guess you may want to do a ifconfig bridge0 proto rstp as well. After that the command works. -- :wq Claudio