In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Lab name: Port aggregation configuration
The purpose of the experiment is to understand how port aggregation works and how to configure port aggregation on the switch.
Experimental principle: Port aggregation (Aggregate-port), also known as link aggregation, refers to the physical transfer of multiple ports between two switches
Connect and aggregate multiple links into a single logical link. So as to increase the link bandwidth and solve the problem of bandwidth introduction in the switching network.
The problem of network bottleneck. Multiple physical links can be backed up redundant to each other, and any one of them will not be affected if it is disconnected.
Forward data normally in response to other links.
Port aggregation follows the standards of the IEEE 802.3ad protocol.
Experimental equipment: two switches (one for each layer 3 and layer 2) and two computers (configuration spanning tree information)
The steps of the experiment:
Step 1: configure the hostnames and management IP addresses of the two switches
S3750#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S3750 (config) # hostname L3-SW
L3-SW (config) # interface vlan 1
L3-SW (config-if) # Dec 3 01:03:22 L3-SW% 7:%LINE PROTOCOL CHANGE:
Interface VLAN 1, changed state to UP
L3-SW (config-if) # ip address 192.168.1.1 255.255.255.0
L3-SW (config-if) # no shutdown
L3-SW (config-if) # exit
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch (config) # hostname L2-SW
L2-SW (config) # interface vlan 1
L2-SW (config-if) # ip address 192.168.1.2 255.255.255.0
L2-SW (config-if) # no shutdown
L2-SW (config-if) # exit
Step 2: configure aggregation ports on both switches
L3-SW (config) # interface range fastEthernet 0amp 1-2
L3-SW (config-if-range) # port-group 1
! Add port Fa0/1~2 to aggregation port 1 and create the aggregation port
L3-SW (config-if-range) # Dec 3 01:03:57 L3-SW% 7:%LINE PROTOCOL CHANGE:
Interface AggregatePort 1, changed state to UP
Dec 3 01:03:58 L3-SW% 7:%LINK CHANGED: Interface FastEthernet 0swap 1, changed
State to administratively down
Dec 3 01:03:58 L3-SW% 7:%LINE PROTOCOL CHANGE: Interface FastEthernet
0/1, changed state to DOWN
Dec 3 01:03:58 L3-SW% 7:%LINK CHANGED: Interface FastEthernet 0lap 2, changed
State to administratively down
L3-SW (config-if-range) # exit
L3-SW (config) #
L2-SW (config) # interface range fastEthernet 0amp 1-2
L2-SW (config-if-range) # port-group 1
! Add port Fa0/1~2 to aggregation port 1 and create the aggregation port
L2-SW (config-if-range) # exit
L2-SW (config) #
Step 3: set the aggregation port to Trunk
L3-SW (config) # interface aggregateport 1
L3-SW (config-if) # switchport mode trunk
L3-SW (config-if) # exit
L3-SW (config) #
L2-SW (config) # interface aggregatePort 1
L2-SW (config-if) # switchport mode trunk
L2-SW (config-if) # exit
L2-SW (config) #
Step 4: set the load balancing mode of the aggregation port
L3-SW (config) # aggregateport load-balance?
! View the load balancing methods supported by the switch
Dst-ip Destination IP address
Dst-mac Destination MAC address
Ip Source and destination IP address
Src-dst-mac Source and destination MAC address
Src-ip Source IP address
Src-mac Source MAC address
L3-SW (config) # aggregateport load-balance dst-mac
! Set the load balancing method to be based on the destination address. The default is based on the source and destination addresses.
L3-SW (config) # exit
L2-SW (config) # aggregatePort load-balance?
! View the load balancing methods supported by the switch
Dst-mac Destination MAC address
Ip Source and destination IP address
Src-mac Source MAC address
L2-SW (config) # aggregatePort load-balance dst-mac
! Set the load balancing method to be based on the destination address. The default is based on the source address.
L2-SW (config) # exit
Step 5: view the configuration of the aggregation port
L3-SW#show aggregatePort load-balance
Load-balance: Destination MAC
L3-SW#
L3-SW#show aggregatePort summary
AggregatePort MaxPorts SwitchPort Mode Ports
Ag1 8 Enabled TRUNK Fa0/1, Fa0/2
L3-SW#
L3-SW#show interfaces aggregateport 1
Index (dec): 29 (hex): 1D
AggregatePort 1 is UP, line protocol is UP
Hardware is Aggregate Link AggregatePort
Interface address is: no ip address
MTU 1500 bytes, BW 1000000 Kbit
Encapsulation protocol is Bridge, loopback not set
Keepalive interval is 10 sec, set
Carrier delay is 2 sec
RXload is 1, Txload is 1
Queueing strategy: WFQ
Switchport attributes:
Interface's description: ""
Medium-type is copper
Lastchange time:337 Day: 1 Hour: 3 Minute:56 Second
Priority is 0
Admin duplex mode is AUTO, oper duplex is Full
Admin speed is AUTO, oper speed is 100M
Flow control admin status is AUTO,flow control oper status is OFF
Broadcast Strom Control is OFF,multicast Strom Control is OFF,unicast Strom
Control is OFF
Aggregate Port Informations:
Aggregate Number: 1
Name: "AggregatePort 1"
Refs: 2
Members: (count=2)
FastEthernet 0/1 Link Status: Up
FastEthernet 0/2 Link Status: Up
L3-SW#
L2-SW#show aggregatePort load-balance
Load-balance: Destination MAC address
L2-SW#
L2-SW#show aggregatePort summary
AggregatePort MaxPorts SwitchPort Mode Ports
Ag1 8 Enabled Trunk Fa0/1, Fa0/2
L2-SW#
L2-SW#show interfaces aggregatePort 1
Interface: AggregatePort 1
Description:
AdminStatus: up
OperStatus: up
Hardware:-
Mtu: 1500
LastChange: 0d:0h:0m:0s
AdminDuplex: Auto
OperDuplex: Full
AdminSpeed: Auto
OperSpeed: 100
FlowControlAdminStatus: Off
FlowControlOperStatus: Off
Priority: 0
Broadcast blocked: DISABLE
Unknown multicast blocked: DISABLE
Unknown unicast blocked: DISABLE
L2-SW#
Step 6: verify the configuration
Configure another VLAN 10 for testing on layer 3 switch L3-SW and configure the IP address as
192.168.10.1 Compact 24, then configure the default gateway on the layer 2 switch L2-SW, which acts as the gateway for the host
The switch can submit packets destined for other network segments to the gateway for processing), so that L2-SW can ping
192.168.1.1 hand 24 and 192.168.10.1 pick 24, indicating that the Trunk configuration of the aggregation port has taken effect.
L3-SW (config) # vlan 10
L3-SW (config-vlan) # exit
L3-SW (config) #
L3-SW (config) # interface vlan 10
L3-SW (config-if) # iDec 3 01:16:02 L3-SW% 7:%LINE PROTOCOL CHANGE:
Interface VLAN 10, changed state to UP
L3-SW (config-if) # ip address 192.168.10.1 255.255.255.0
L3-SW (config-if) # no shutdown
L3-SW (config-if) # exit
L2-SW (config) # ip default-gateway 192.168.1.1
! Set the default gateway of the layer 2 switch
L2-SW (config) # exit
L2-SW#
L2-SW#ping 192.168.1.1
Sending 5, 100-byte ICMP Echos to 192.168.1.1
Timeout is 2000 milliseconds.
!
Success rate is 100 percent (5Compact 5)
Minimum = 1ms Maximum = 1ms, Average = 1ms
L2-SW#ping 192.168.10.1
Sending 5, 100-byte ICMP Echos to 192.168.10.1
Timeout is 2000 milliseconds.
!
Success rate is 100 percent (5Compact 5)
Minimum = 1ms Maximum = 1ms, Average = 1ms
Ping layer 2 switch L2-SW on layer 3 switch L3-SW for a long time, and then disconnect the
Fa0/2 Port:
L3-SW#ping 192.168.1.2 ntimes 1000
Sending 1000, 100-byte ICMP Echoes to 192.168.1.2, timeout is 2 seconds:
< press Ctrl+C to break >! !
! !
! !
! !
! !
! !
! !
!!!
Success rate is 100 percent (1000amp 1000), round-trip min/avg/max = 1-1-10 ms
You can see that there is no packet loss when disconnecting the Fa0/2 port in the aggregation port. Try again, disconnect Fa0/1 this time
Port:
L3-SW#ping 192.168.1.2 ntimes 1000
Sending 1000, 100-byte ICMP Echoes to 192.168.1.2, timeout is 2 seconds:
< press Ctrl+C to break >! !
! !
! !
! !
! !
!.! !
! !
!!!
Success rate is 99 percent (999amp 1000), round-trip min/avg/max = 1-1-10 ms
Experimental process diagram:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.