brctl show

brctl showbr bzhp0

Port Path Cost

Each port has an associated cost that contributes to the total cost of the path to the Root Bridge when the port is the root port. The smaller the cost, the better the path. The Ethernet Switch Blade uses the following IEEE 802.1D recommendations based on the connection speed of your port:

Port Path Cost

Link

Recommended

Recommended Range

Speed

Value

 

10 Mb/s

100

50-600

100 Mb/s

19

10-60

 

 

 

1 Gb/s

4

3-10

 

 

 

Table 7.1: Port Path Cost

To change the port path, use the brctl setpathcost option. For example, to set the port priority to a value consistent with a gigabit interface,

brctl setpathcost bzhp0 zre1 4

Layer 3 Switch Configuration

The previous section outlines the Layer 2 switch configuration that is automatically configured when you initially bring up the OpenArchitect switch. In order to communicate between Layer2 interfaces, you must properly setup routing.

The steps to build a Layer 2 switch involve creating a group of switch ports in a VLAN (or Layer 2 switching domain) and bringing that interface up. zconfig creates the VLAN group of switch ports as well as a network interface. Use ifconfig(1M) on the network interface to bring up the VLAN group with Layer 2 switching. Layer3 routing information is then used to route between the Layer2 network devices.

Take a simple example of two VLANs configured on the switch, each with four ports. First teardown any existing configuration,

zconfig –t

Use zconfig to create two new VLANs, each with four ports, and untag them, zconfig zhp0: vlan1=zre1..4

zconfig zre1..4=untag1

Ethernet Switch Blade User's Guide

release 3.2.2j

page 97

Page 97
Image 97
Znyx Networks bh5700 manual Layer 3 Switch Configuration