| … | |
… | |
| 359 | # Bridging (802.1d) |
359 | # Bridging (802.1d) |
| 360 | # For bridging support emerge net-misc/bridge-utils |
360 | # For bridging support emerge net-misc/bridge-utils |
| 361 | |
361 | |
| 362 | # To add ports to bridge br0 |
362 | # To add ports to bridge br0 |
| 363 | #bridge_br0="eth0 eth1" |
363 | #bridge_br0="eth0 eth1" |
|
|
364 | # or dynamically add them when the interface comes up |
|
|
365 | #bridge_add_eth0="br0" |
|
|
366 | #bridge_add_eth1="br0" |
| 364 | |
367 | |
| 365 | # You need to configure the ports to null values so dhcp does not get started |
368 | # You need to configure the ports to null values so dhcp does not get started |
| 366 | #config_eth0=( "null" ) |
369 | #config_eth0=( "null" ) |
| 367 | #config_eth1=( "null" ) |
370 | #config_eth1=( "null" ) |
| 368 | |
371 | |
| 369 | # Finally give the bridge an address - dhcp or a static IP |
372 | # Finally give the bridge an address - dhcp or a static IP |
| 370 | #config_br0=( "dhcp" ) |
373 | #config_br0=( "dhcp" ) # may not work when adding ports dynamically |
| 371 | #config_br0=( "192.168.0.1/24" ) |
374 | #config_br0=( "192.168.0.1/24" ) |
| 372 | |
375 | |
| 373 | # If any of the ports require extra configuration - for example wireless or |
376 | # If any of the ports require extra configuration - for example wireless or |
| 374 | # ppp devices - we need to write a depend function for the bridge so they get |
377 | # ppp devices - we need to write a depend function for the bridge so they get |
| 375 | # configured correctly. |
378 | # configured correctly. |