Layer 3 switch using multiple vlans, Using the s50multivlan script – Znyx Networks bh5700 User Manual
Page 100

•
Runs the OpenArchitect zl3d. The zl3d application monitors the Linux routing tables
and updates the switch routing tables for each interface configured above.
/usr/sbin/zl3d zhp0..23
zl3d initially creates and adds each zhp interface (VLAN) to the switch routing tables. The
zhp0..zhp23 is shorthand for the list of interfaces (zhp0, zhp1, …, zhp23) to monitor with
zl3d.
To Modify the Layer 3 Script
•
Modify the example script you copied into the /etc/rcZ.d directory. Adjust and
assign the number of IP addresses as applicable. In the example below, the IP address is
changed for the interface in the ifconfig command line of the script.
From:
ifconfig zhp0 10.0.0.42 netmask 255.255.255.0 broadcast 10.0.0.255 up
To:
ifconfig zhp0 193.08.1.1 netmask 255.255.255.0 broadcast
193.08.1.255 up
•
Adjust the number of zhp interfaces, that are added to the routing tables, depending on
the number of VLANs you are adding for your network. Include any other details, as
applicable.
•
Run the OpenArchitect zsync command to save your changes.
zsync
•
Reboot the switch.
•
After rebooting, your switch works from your customized Layer 3 configuration.
Layer 3 Switch Using Multiple VLANs
An example script is also provided for setting up multiple VLANs each with multiple ports.
Using the S50multivlan Script
The Layer 3 switch example file, S50multivlan, is included to help you configure multiple
VLANs to a Layer 3 switch. A VLAN can include one or more switch ports. In the
S50multivlan file, four VLANs are created (see 4):
•
VLAN 1, zhp0: for the first set of six ports, zre0-zre5
•
VLAN 2, zhp1: for the second set of six ports, zre6-zre11
•
VLAN 3, zhp2: for the third set of six ports, zre12-zre17
Ethernet Switch Blade User's Guide
release 3.2.2j
page 100