Simple bridges

I have the following in my rc.conf
Code:
cloned_interfaces="bridge0 tap10"
ifconfig_bridge0="addm em0 addm tap10"

If I write include below, the above is not implemented. How do I get both bridges?

Code:
cloned_interfaces="bridge1 tap11"
ifconfig_bridge0="addm wlan0 addm tap11"

Thanks.
 
Entries in rc.conf are variables. You're defining the same variable multiple times.

Code:
#!/bin/sh

foo="bar"

foo="not bar"

echo $foo

Code:
cloned_interfaces="bridge0 bridge1 tap10 tap11"
ifconfig_bridge0="addm em0 addm tap10"
ifconfig_bridge1="addm wlan0 addm tap11"
 
I am sorry. I did not copy paste the file.
The second config was:
Code:
cloned_interfaces="bridge1 tap11"
ifconfig_bridge1="addm wlan0 addm tap11"
But I guess cloned_interfaces was getting overwritten. Would it have worked if I used cloned_interface1 instead?

I'll try what you suggested. Any way to do this without a reboot?
 
Back
Top