Znyx Networks bh5700 manual Rapid Spanning Tree

Models: bh5700

1 359
Download 359 pages 3.51 Kb
Page 96
Image 96

Using the S50layer2 Script

The S50layer2 script can be used and example, or edited to customize your Layer2 setup. For example, to reconfigure the IP address on your Layer 2 switch,

Open the S50Layer2 file in the Linux vi editor.

Change the IP address value listed under the Linux ifconfig(1M) command line.

Save your changes by running OpenArchitect zsync.

Reboot the switch.

Rapid Spanning Tree

The Rapid Spanning Tree Protocol (RSTP) configures a simply connected active topology from the arbitrarily connected components of a Bridged Local Area Network. RSTP participants use a simple dialog carried in packets called Bridge Protocol Data Units (BPDUs) for finding the shortest path between two networks and for eliminating loops from the topology. If nodes attached to ports fail or are added or deleted, the topology dynamically changes to accommodate the new configuration. If your network topology is such that there is no real redundancy or chance for loops, you do not need to turn on Spanning Tree.

zl2d is a shell script used to create Linux bridges consisting of the name of the previously created zhp device or devices preceded with a "b" (for example, if you are creating a Bridge device from zhp0, the resulting device would be bzhp0). zl2d then starts a background task that monitors the port information of the Linux bridge at a specified interval and updates the Spanning Tree state fields in the hardware when necessary.

brctl(8) is called by zl2d for configuring certain RSTP parameters. For an explanation of these parameters, see the IEEE 802.1d specification, or reference the brctl(8) man page in Appendix A. The following demonstrates a simple example of setting up a Layer 2 switch and starting RSTP.

To Enable Rapid Spanning Tree:

Create a VLAN containing the ports that will be a part of the Linux bridge running Rapid Spanning Tree. This example will use ports 0-3 (untagged):

zconfig zhp0: vlan1=zre0..3 zconfig zre0..3=untag1

Create a bridge device from the zhp device,

zl2d start zhp0

A Bridge device named bzhp0 should now exist consisting of ports zre0 through zre3 with Spanning Tree enabled. To view the bridge device, use the brctl command,

Ethernet Switch Blade User's Guide

release 3.2.2j

page 96

Page 96
Image 96
Znyx Networks bh5700 manual Rapid Spanning Tree