16.5. Creating a New Bridge DeviceEven though bridge devices are virtual, the discussion about how a device is enabled, disabled, registered, and unregistered in Chapter 8 still applies. You are encouraged to use that chapter as a reference when reading this section. The creation and registration of a bridge device follows the model described in Chapter 8. The only difference is that because it is a virtual device, a bridge needs extra initializations in its private area (i.e., the net_bridge data structure at the bottom of Figure 16-6). This last task is taken care of by new_bridge_dev, which:
Note that the initialization of spanning tree parameters is done regardless of whether the STP is enabled for the bridge. Bridge devices can be assigned any name. Common ones are brN and stpN, when the Spanning Tree Protocol is disabled and enabled, respectively. For example, if you define two bridges that don't use STP, you would conventionally call them br1 and br2. However, your dog's name would be accepted, too. As with any other network device, bridges are assigned a directory in /sys/class/net/. See the section "Tuning via /sys Filesystem" in Chapter 17. |
Tuesday, October 27, 2009
Section 16.5. Creating a New Bridge Device
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment