cloudstack/docs/tmp/en-US/html/layer2-switch.html

43 lines
5.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>12.4. Layer-2 Switch</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Installation_Guide-4.0.0-incubating-en-US-1-" /><link rel="home" href="index.html" title="CloudStack Installation Guide" /><link rel="up" href="network-setup.html" title="Chapter 12. Network Setup" /><link rel="prev" href="hardware-config-eg.html" title="12.3. Example Hardware Configuration" /><link rel="next" href="hardware-firewall.html" title="12.5. Hardware Firewall" /></head><body><p id="title"><a class="left" href="http://cloudstack.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://docs.cloudstack.org"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="hardware-config-eg.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="hardware-firewall.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="layer2-switch" lang="en-US"><div class="titlepage"><div><div><h2 class="title" id="layer2-switch">12.4. Layer-2 Switch</h2></div></div></div><div class="para">
The layer-2 switch is the access switching layer inside the pod.
</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
It should trunk all VLANs into every computing host.
</div></li><li class="listitem"><div class="para">
It should switch traffic for the management network containing computing and storage hosts. The layer-3 switch will serve as the gateway for the management network.
</div></li></ul></div><div class="formalpara"><h5 class="formalpara" id="idp22191000">Example Configurations</h5>
This section contains example configurations for specific switch models for pod-level layer-2 switching. It assumes VLAN management protocols such as VTP or GVRP have been disabled. The scripts must be changed appropriately if you choose to use VTP or GVRP.
</div><div xml:lang="en-US" class="section" id="dell62xx-layer2" lang="en-US"><div class="titlepage"><div><div><h3 class="title" id="dell62xx-layer2">12.4.1. Dell 62xx</h3></div></div></div><div class="para">
The following steps show how a Dell 62xx is configured for pod-level layer-2 switching.
</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
Configure all the VLANs in the database.
</div><pre class="programlisting">vlan database
vlan 300-999
exit</pre></li><li class="listitem"><div class="para">
VLAN 201 is used to route untagged private IP addresses for pod 1, and pod 1 is connected to this layer-2 switch.
</div><pre class="programlisting">interface range ethernet all
switchport mode general
switchport general allowed vlan add 300-999 tagged
exit</pre></li></ol></div><div class="para">
The statements configure all Ethernet ports to function as follows:
</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
All ports are configured the same way.
</div></li><li class="listitem"><div class="para">
All VLANs (300-999) are passed through all the ports of the layer-2 switch.
</div></li></ul></div></div><div xml:lang="en-US" class="section" id="cisco3750-layer2" lang="en-US"><div class="titlepage"><div><div><h3 class="title" id="cisco3750-layer2">12.4.2. Cisco 3750</h3></div></div></div><div class="para">
The following steps show how a Cisco 3750 is configured for pod-level layer-2 switching.
</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
Setting VTP mode to transparent allows us to utilize VLAN IDs above 1000. Since we only use VLANs up to 999, vtp transparent mode is not strictly required.
</div><pre class="programlisting">vtp mode transparent
vlan 300-999
exit</pre></li><li class="listitem"><div class="para">
Configure all ports to dot1q and set 201 as the native VLAN.
</div><pre class="programlisting">interface range GigabitEthernet 1/0/1-24
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk native vlan 201
exit</pre></li></ol></div><div class="para">
By default, Cisco passes all VLANs. Cisco switches complain of the native VLAN IDs are different when 2 ports are connected together. Thats why you must specify VLAN 201 as the native VLAN on the layer-2 switch.
</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="hardware-config-eg.html"><strong>Prev</strong>12.3. Example Hardware Configuration</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="hardware-firewall.html"><strong>Next</strong>12.5. Hardware Firewall</a></li></ul></body></html>