Znyx Networks bh5700 Switch User Manual


 
Linux IP
zre1
VLAN 2
zre4
zre3
VLAN 3
zre2
VLAN 4
zre11
VLAN 11
zre7
VLAN 7
zre9
VLAN 9
zre6
VLAN 6
zre8
VLAN 8
zre10
VLAN 10
zre5
VLAN 5
VLAN 14
zre12
VLAN 12
zre13
VLAN 13
zhp0 - zhp23
zre20
VLAN 15
Each vlan interface (zhp) has only one switch port (zre)
VLAN 1
zre0
zre15
VLAN16
zre16
VLAN17
zre17
VLAN18
zre19
VLAN20
VLAN19 VLAN23
VLAN22
VLAN21
zre21
zre22
zre18
VLAN24
zre23
zre14
Figure 7.3: Layer 3 Switch
The S50layer3 script executes the following commands:
Runs zconfig command to create 24 untagged VLANs (one for each switch port).
/usr/sbin/zconfig zhp0..23: vlan1..24=zre0+
/usr/sbin/zconfig zre0..23=untag1+
NOTE: Double periods (..) after vlan1 and untag1 are used to indicate a range of values.
The plus (+) sign after zre1 is a wildcard character that means auto-incremented and
causes each zhp interface to hold only one zre (that is, zhp0 has zre1 on vlan1,
zhp1 has zre1 on vlan2).
Runs the Linux ifconfig(1M) command for each interface to assign default IP
addresses (10.0.0.42-10.0.23.42), sets the netmask and brings up the interfaces.
ifconfig zhp0 10.0.00.42 netmask 255.255.255.0 up
ifconfig zhp1 10.0.01.42 netmask 255.255.255.0 up
ifconfig zhp2 10.0.02.42 netmask 255.255.255.0 up
.
.
.
ifconfig zhp21 10.0.21.42 netmask 255.255.255.0 up
ifconfig zhp22 10.0.22.42 netmask 255.255.255.0 up
ifconfig zhp23 10.0.23.42 netmask 255.255.255.0 up
Ethernet Switch Blade User's Guide release 3.2.2j page 99