10 November 2011

Switch and VLAN Configuration


Komponen sebuah switchUnlike the smaller networks such as dirumahan or small office, large-scale network and enterprise business - the urgency in the management of all existing Swicthes in local networks is very essential. It should be done for reasons of ease of configuration switches and network management for the needs tuning for a better performance is very profitable. If inter-VLAN communication between switches in the wake - then the VLAN configuration must also be done.If you've played around with the configuration of Cisco routers, then the switch configuration is to have similarities. Even you can use the same command that you use on a Cisco router. The main difference of course is a striking difference in function between the routers and switches. Switches with VLANs to enabled, then the VLAN configuration is also very necessary to manage how the device-2 network based on the segments into VLANs.Component SwitchesSwitch has many ports as its function as a LAN Switch. You can menggubungkan one device to each port for full-duplex communication. If required half-duplex communication is required, then a segment can be connected to a port. Switch ports are numbered starting at number 1. Switch to configuration, then you need to use the interface type and followed by the Ethernet interface number (0), and also followed by the port number. For example, if you need to identify the port to two of the Switch, then the writing is Ethernet 0 / 2.If the required connection between the switches, then you can use a Trunk port that connects to one another. Note the switch beside the picture. Generally Trunk port in design with a higher speed than the port-port (usually with a speed of 100/1000 Mbps) because it functions as an uplink between Switches and Gigabit-speed normally. Trunk ports are generally identified with Trunk Trunk A and B, and for the purposes of configuration Switch - Trunk ports are also identified as the same as the port Switch FastEthernet 0 / 15 (or fa0/15).Switch to the configuration, you can connect the Switch to a network or Ethernet network connecting the console terminal to the console port. To do this switch configuration, we can use one of the tools available are:CLI - command line interfaceSwitch menuAnd VSM (Visual Switch Manager) Web InterfaceIf you use a command line interface in the switch configuration, the command used is almost the same as those you use to configure Cisco routers. Both have a general similarity as follows:For the purposes of Help - You can use the "?", Say sh! Will display all commands beginning with sh.Switches and routers both have user exec, privileged exec, global configuration and interface configuration modes.Both use a unique short keywork, eg sh (for the command show)To recognize a switch, it needs to be given an IP address.provision of IP addresses on a switch only switches intended for the needs of management itself mainly to the Telnet utility to switch. Besides giving the IP address, you also need to provide default Gateway if it requires from other subnets Telnet management. See also article standard configuration of the network.VLAN ConfigurationWe've already discussed in more detail about the previous VLAN. With VLAN you can give a different switch devices on the logical LAN or different VLANs. Although each switch can be connected to multiple VLANs, but a switch port can only be assigned to one VLAN at the same time. Configuring VLANs on Switch ports can be statically (manually) or dynamically.With a better understanding of Cisco Swicthes you also need to understand protocols Cisco VLAN Trunking (VTP), which is used to simplify the configuration of switches in a multi-switched network.VLAN Trunking Protocol (VTP) allows Switches configured in one of three different modes:Server mode, switches are used to modify the VLAN configuration. Configuration information is then broadcast to all the other VTP devices.Client mode, switches receive updates changes from a VTP server and VTP pass information to other switches. However, VLAN configurations are not allowed through the switch to the Client mode.Transparent mode, the switch does not accept VTP configuration of other switches. VLAN configuration can be done via Switch but this will change the information applies only to this local switch only.To configure a VLAN, the following steps need to be done:Change the VTP mode from server or switch to Transparent modeEnable trunking inter-switch padainterfaceDefining VLANPort2 to provide VLANA switch to function to configure the VLAN, then it must be in Server mode or TransparentVLAN ID method: using the ISL frame taggingPredefined VLANs: 1, 1002, 1003, 1004, 1005Default VLANs can not edit or renameVTP modes: serverVLAN Configuration commandsThe following is a table-command basic VLAN configuration commandFunction CommandSettup to be a VTP mode Switch (config) # vtp server Switch (config) # vtp transparentEnable trunking on inter-switch interface Switch (config-if) # trunk onCreating a VLAN Switch (config) # vlanProviding a port to the VLAN Switch (config-if) # vlan-membership static Switch (config-if) # vlan-membership dynamicContoh:Command-following command to set the VTP mode of switch sebuat into server mode, and then enable trunking on the port trunking first, create a VLAN, and provide multiple ports to VLANsSwitch (config) # vtp serverSwitch (config) # int fa0/26Switch (config-if) # trunk onSwitch (config-if) # exitSwitch (config) # vlan 20Switch (config) # int eth0 / 4Switch (config-if) # vlan static 20-memSwitch (config-if) # exitSwitch (config) # int eth0 / 5Switch (config-if) # vlan static 20-memYou can see / review the VLAN configuration have you done to ensure that the correct VLAN configuration.Show Me vlan-list all or part of a VLAN is selected, the output provides the status of VLANs and ports are also given VLAN.Displays show vtp status VTP on the switch and configuration informationTrunk show Trunk Shows the status of ports and also the trunk encapsulation methodShow vlan-membership Me-port Switch and list all their VLAN kenaggotaanShow spantree Shows spanning tree configuration and status information for VLAN Spanning Tree dipilihKonfigurasiSwitches can be configured in multiple paths / pathways to provide a fault-tolerance. With multiple paths / lines - would make a network vulnerable to a formation of so-called bridging loops, a broadcast packet that went around endless jams that make the network. Spanning tree algorithm is used to prevent the formation of bridging loops in a network.All Cisco Switches (Switches and most others) have STP enabled by default factory. Configure the switch port when the port is automatically connected into the network and the switch is turned on. However, sometimes you have to ensure that the STP is enabled, in which, following its command-command.Switch (config) # spantree Enable spanning tree protocol on a VLAN switchSwitch (config) # no spantree disable spanning tree protocol on the switchSwitch # show spantree Viewing spanning tree configuration information and also statistiknya.Misalkan the following command: Switch (config) # spantree 22 (to enable spanning tree on VLAN 22)Remember, if you configure the uplink inter-switch with multiple paths, STP should dienable to prevent the formation of bridging loops.

Tidak ada komentar:

Posting Komentar