ifconfig zhp1 0.0.0.0

#

#At this point the system will act as a Layer 2 switch

#across all ports. Also, the system will accept telnet()

#connections on 10.0.0.43 on any port. Script(s) may then

#be run to reinitialize the system and modify its

#configuration.

Using the S50layer2 Script

The S50layer2 script can be used as an example, and edited to customize your Layer2 setup. The default script may not match your physical port configuration. In that case you will have to alter the script to suit your circumstances. 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.

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.

Ethernet Switch Blade User's Guide

release 3.2.2j

page 50

Page 50
Image 50
Znyx Networks bh5700 manual Rapid Spanning Tree, Using the S50layer2 Script, Reboot the switch