
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. Layer 3 routing information is then used to route
between the Layer 2 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
zconfig zhp1: vlan2=zre5..8
zconfig zre5..8=untag2
Now, use
ifconfig
to assign each
zhp
interface an IP address,
ifconfig zhp0 10.0.0.1
ifconfig zhp1 11.0.0.1
At this point, the Linux host has enough information to route between the networks of the directly
attached interfaces, 10.0.0.0 via
zhp0
, and 11.0.0.0 via
zhp1
.
The next step is to enable the
zl3d
daemon to move that routing information from the host to the
Ethernet Switch Blade switching tables in silicon. Once enabled,
zl3d
will monitor the Linux
routing tables for changes in configuration and update the switch silicon tables. Start
zl3d
to
update the switch tables:
zl3d zhp0 zhp1
The Ethernet Switch Blade switch is now configured as a Layer3 switch that can route between
two Layer2 devices in silicon.
Using the S50layer3 Script
To modify the configuration to a Layer 3 switch, remove the
S50layer2
file from the
/etc/rcZ.d
directory, and replace it with the example script file,
S50layer3
.
Ethernet Switch Blade User's Guide
release 3.2.2j
page 52
Содержание bh5700
Страница 2: ...Ethernet Switch Blade User s Guide release 3 2 2j page ii...
Страница 15: ...Ethernet Switch Blade User s Guide release 3 2 2j page 15...
Страница 16: ...Ethernet Switch Blade User s Guide release 3 2 2j page 16...
Страница 25: ...Ethernet Switch Blade User s Guide release 3 2 2j page 25 Figure 2 1 LED Reference...
Страница 26: ...Ethernet Switch Blade User s Guide release 3 2 2j page 26...
Страница 227: ...SEE ALSO ifconfig 8 Ethernet Switch Blade User s Guide release 3 2 2j page 227...
Страница 237: ...be also reset SEE ALSO zspconfig Ethernet Switch Blade User s Guide release 3 2 2j page 237...
Страница 239: ...SEE ALSO ztmd tc 8 zfilterd Ethernet Switch Blade User s Guide release 3 2 2j page 239...
Страница 262: ...SEE ALSO zqosd iptables 8 tc 8 zfilterd Ethernet Switch Blade User s Guide release 3 2 2j page 262...
Страница 265: ...SEE ALSO zconfig zl2d Ethernet Switch Blade User s Guide release 3 2 2j page 265...
Страница 318: ...be also reset SEE ALSO zspconfig Ethernet Switch Blade User s Guide release 3 2 2j page 318...
Страница 320: ...SEE ALSO ztmd tc 8 zfilterd Ethernet Switch Blade User s Guide release 3 2 2j page 320...
Страница 335: ...Ethernet Switch Blade User s Guide release 3 2 2j page 335...
Страница 344: ...SEE ALSO zqosd iptables 8 tc 8 zfilterd Ethernet Switch Blade User s Guide release 3 2 2j page 344...
Страница 359: ...Index ztmd 301 zvlan 179 258 ZX4920 MIB 333 7100 User s Guide release 3 2 2j page 359...