Interface configuration process of layer-3 Switch Load Balancing (1)

Source: Internet
Author: User

Layer-3 Switch configuration-configure a group of layer-2 ports

 
 
  1. Configure terminal enters configuration status
  2. Nterface range {port-range} enters the group configuration status

Layer-3 Switch configuration-configure Layer-3 Ports

 
 
  1. Configure terminal enters configuration status
  2. Interface {fastethernet | gigabitethernet} interface-id} | {vlan-id} | {port-channel-number} enter the port configuration status
  3. No switchport changes the physical port to a layer-3 Port
  4. Ip address ip_address subnet_mask configure the ip address and mask
  5. No shutdown activation Port

Example:

 
 
  1. Switch(config)# interface gigabitethernet0/2
  2. Switch(config-if)# no switchport
  3. Switch(config-if)# ip address 192.20.135.21 255.255.255.0
  4. Switch(config-if)# no shutdown

Layer-3 Switch configuration --Configure VLAN

 
 
  1. Configure terminal enters configuration status
  2. Vlan-id: enter a VLAN id and then enter the vlan configuration state. You can enter a new VLAN id or the old one for modification.
  3. Name vlan-name (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 of vlan4.
  4. Mtu-size (optional) Change MTU size

Example:

 
 
  1. Switch # configure terminal
  2. Switch (config) # vlan 20
  3. Switch (config-vlan) # name test20
  4. Switch (config-vlan) # end
  5. Or
  6. Switch # vlan database
  7. Switch (vlan) # vlan 20 name test20
  8. Switch (vlan) # exit

Layer-3 Switch configuration-- The port is assigned to a VLAN.

 
 
  1. Configure terminal enters configuration status
  2. Interface-id: enter the port to be allocated
  3. Switchport mode access defines L2 ports
  4. Switchport access vlan-id assigns a port to a VLAN

Example:

 
 
  1. Switch # configure terminal
  2. Enter configuration commands, one per line. End with CNTL/Z.
  3. Switch (config) # interface fastethernet0/1
  4. Switch (config-if) # switchport mode access
  5. Switch (config-if) # switchport access vlan 2
  6. Switch (config-if) # end
  7. Switch #
  8. Configure VLAN trunk
  9. Configure terminal enters configuration status
  10. Interface-Id: enter the port configuration status
  11. Switchport trunk encapsulation {isl | dot1q | negotiate} configure trunk to encapsulate ISL or 802.1Q or

Layer-3 Switch configuration-Automatic negotiation

Example:

 
 
  1. Switchport mode {dynamic {auto | desirable} | trunk}: configure the layer-2 trunk mode.
  2. Dynamic auto-automatically negotiate whether it is a trunk
  3. Dynamic desirable-set the port to trunk. If the peer ports are trunk and desirable, configure Native VLAN
  4. 802.1q) or in automatic mode, trunk-sets the port to the forced trunk mode, regardless of whether the peer port is trunkswitchport access vlan-id (optional)
  5. Specify a default VLAN. If the port is no longer trunkswitchport trunk native vlan-id, specify the 802.1Q native VLAN number.

 
 
  1. Switch# configure terminal
  2. Enter configuration commands, one per line. End with CNTL/Z.
  3. Switch(config)# interface fastethernet0/4
  4. Switch(config-if)# switchport mode trunk
  5. Switch(config-if)# switchport trunk encapsulation dot1q
  6. Switch(config-if)# end

Layer-3 Switch configuration --Define the VLAN allowed by the TRUNK

 
 
  1. Configure terminal Sub-entry configuration status
  2. Interface-id: enter port configuration
  3. Switchport mode trunk: configure the Layer 2 port as trunk
  4. Switchport trunk allowed vlan {add | all | listen t | remove} vlan-list (optional) configure the VLAN allowed by the trunk. Use add, all, listen t, remove
  5. No switchport trunk allowed vlan allows all VLANs to pass through

Example:

 
 
  1. Switch(config)# interface fastethernet0/1
  2. Switch(config-if)# switchport trunk allowed vlan remove 2
  3. Switch(config-if)# end

Layer-3 Switch configuration-configure Native VLAN802.1q)

 
 
  1. Configure terminal enters configuration status
  2. Interface-id: enter the port configured as 802.1qtrunk
  3. Switchport trunk native vlan-Id configuration native VLAN number
  4. No switchport trunk native vlan port configuration command returns to the default status

Layer-3 Switch configuration-configure Load Balancing Based on port Weights

 
 
  1. Configure terminal enters Switch 1 configuration status
  2. Vtp domain-name configuration VTP domain
  3. Vtp mode server configures Switch 1 to VTP server.
  4. Show vtp status verify VTP Configuration
  5. Show vlan verification VLAN
  6. Configure terminal enters configuration status
  7. Interface fastethernet 0/1 enters port F0/1
  8. Switchport trunk encapsulation {isl | dot1q | negotiate} configure trunk encapsulation
  9. Configure switchport mode trunk to trunk
  10. Show interfaces fastethernet0/1 switchport verify VLAN configuration


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.