Interface Configuration of layer-3 Switch Load Balancing

Source: Internet
Author: User
Tags exit in


Layer-3 Switch SLB interface configuration layer-3 Switch configuration-configure a group of layer-2 ports www.2cto.com configure terminal to enter the configuration status nterface range {port-range} to enter the group configuration status layer-3 Switch configuration-configure Layer-3 Ports configure terminal enters the configuration Status interface {fastethernet | gigabitethernet} interface-id} | {vlan-id} |
{Port-channel-number}: enter the port configuration status. no switchport changes the physical port to a layer-3 port ip address ip_address subnet_mask. Configure the ip address and mask no shutdown. Example: Switch (config) # interface gigabitethernet0/2 Switch (config-if) # no switchport Switch (config-if) # ip address 192.20.135.21 255.255.255.0 Switch (config-if) # no shutdown layer-3 Switch configuration-configure VLAN configure terminal to enter the configuration status vlan VLAN-id enter a vlan number and then enter the VLAN configuration status, you can enter a new VLAN number or the old one to modify the na. (Me vlan-name is optional) enter a VLAN name. If no VLAN name is configured, the default name is the four-digit number filled with 0 before the VLAN number, for example, VLAN0004 is the default name mtu-size (optional) of VLAN4. For example, Switch # configure terminal Switch (config) # vlan 20 Switch (config-vlan) # name test20 Switch (config-vlan) # end or Switch # vlan database Switch (vlan) # vlan 20 name test20 Switch (vlan) # exit layer-3 Switch configuration -- port assigned to a VLAN configure terminal enters the configuration Status interface-id enters the port to be allocated switchport mode access Definition L2 switchport access vlan-id: assign a port to a VLAN. For example, Switch # configure terminal Enter configuration commands, one per line. end with CNTL/Z. switch (config) # interface fastethernet0/1 Switch (config-if) # switchport mode access Switch (config-if) # switchport access vlan 2 Switch (config-if) # end Switch # configure VLAN trunk configure terminal to enter configuration Status interface-Id to enter port configuration status switchport trunk encapsulation {Isl | dot1q | negotiate}: configure the trunk to encapsulate ISL, 802.1Q, or L3 switch configurations. For example, switchport mode {dynamic {auto | desirable} | trunk}: configure the L2 trunk mode. Dynamic auto-automatically negotiate whether it is a trunk dynamic desirable-set the port to trunk. If the peer port is a trunk or desirable, configure Native VLAN (802.1q) or automatic mode, trunk-set the port to a forced trunk mode, regardless of whether the peer port is a trunkswitchport access vlan-id (optional) specify a default vlan, if the port is no longer trunkswitchport trunk native vlan-id specifies 802.1Q native VLAN Number Switch # configure terminal Enter configuration commands, one per line. end with CNTL/Z. switch (config) # interface fastethernet0/4 Swit Ch (config-if) # switchport mode trunk Switch (config-if) # switchport trunk encapsulation dot1q Switch (config-if) # end layer-3 Switch configuration-define the VLAN configure terminal Sub-ports allowed by TRUNK to enter the configuration Status interface-id to enter the port configuration switchport mode trunk to configure the L2 port to trunk switchport trunk allowed vlan {add | all | subnet T | remove} vlan-list (optional) configure the VLAN allowed by the trunk. use add, all, listen t, remove no switchport trunk allowed vlan to allow all VLAN passing examples: www. 2cto.com Switch (config) # interface fastethernet0/1 Switch (config-if) # switchport trunk allowed vlan remove 2 Switch (config-if) # end layer-3 Switch configuration-configure Native VLAN (802.1q) configure terminal enters the configuration Status interface-id enters the port configured as 802.1qtrunk switchport trunk native vlan-Id configure native vlan no switchport trunk native VLAN port configuration command back to the default status layer-3 Switch configuration -- configure the port weight-based Server Load balancer configure terminal to Switch 1 configuration status vtp domain do Main-name: Configure VTP domain vtp mode server to configure Switch 1 to VTP server. show vtp status verify VTP configuration show vlan verify VLAN configure terminal enter configuration status interface fastethernet 0/1 enter F0/1 port switchport trunk encapsulation {isl | dot1q | negotiate} configure trunk encapsulation switchport mode trunk configure to trunk show interfaces fastethernet0/1 switchport to verify VLAN configuration configure the interface for Server Load balancer in the preceding steps on another switch. Configure show vlan when the trunk is up, verify the learned vlan configuration configure t on switch2 Erminal enters the configuration Status interface fastethernet0/1 on Switch 1 to enter the port to be configured spanning-tree vlan 8 port-priority 10 to assign port weight 10 to VLAN 8. spanning-tree vlan 9 port-priority 10 authorizes port weight 10 to VLAN 9. spanning-tree vlan 10 port-priority 10 authorizes port weight 10 to VLAN 10. interface fastethernet0/2 enter F0/2 spanning-tree vlan 3 port-priority 10 assign port weight 10 to VLAN 3. spanning-tree vlan 4 port-priority 10 assign port weight 10 to VLAN 4 spanning-tree vlan 5 port-prior Ity 10 assign port weight 10 to VLAN 5 spanning-tree vlan 6 port-priority 10 assign port weight 10 to VLAN 10 end to exit show running-config to Verify Configuration copy running-config startup -config saves the configuration stp path value of the Server Load balancer www.2cto.com Trunk1 through the VLAN8-10, trunk2 Go To The VLAN2-4 configure terminal to Switch 1 configuration Status interface fastethernet 0/1 to enter F0/1 switchport trunk encapsulation {isl | dot1q | negotiate} to configure encapsulation switchport mode trunk, by default, the ISL encapsulation exit is returned to the F0/2 port, repeat steps 2-4 Exit return show running-config Verify Configuration show vlan verify switch1 learned Vlan configure terminal enter configuration Status interface fastethernet 0/1 enter F0/1 spanning-tree vlan 2 cost 30 set Vlan2 build tree PATH value for 30 spanning-tree vlan 3 cost 30 set Vlan3 spanning tree PATH value to 30 spanning-tree vlan 4 cost 30 set Vlan4 spanning tree PATH value to 30 end exit in switch1 F0/2 repeat steps 9-11 to set VLAN8, 9, 10 generate tree PATH value is 30 end exit show running-config Verify Configuration copy running-config startup-config save the whole process of configuration of Server Load balancer on layer-3 Switch As you have already finished the configuration, follow the steps above and I believe you will be able to complete the configuration steps successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.