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--
Huawei comprehensive network topology experiment, combined with some basic configurations of Huawei routers and switches and link aggregation of Huawei equipment.
# what is link aggregation? Link aggregation bundles multiple physical links into a single logical link; enhances transmission data bandwidth and throughput; link aggregation members fail over automatically to forward data on other links; link aggregation distributes traffic to different member links to forward data to reduce congestion; # what is the purpose of link aggregation? Speed up transmission speed and provide network load balancing; link aggregation of Huawei devices is equivalent to Ethernet channels of Cisco network devices; # Mode of link aggregation? 1) Manual mode is referred to as manual load sharing mode; all ports in manual mode participate in data forwarding and traffic sharing; port administrators participating in link-state aggregation are added manually; manual mode link-state aggregation does not send LACP link-state aggregation protocol, only manual load sharing is supported; load balancing at source-destination MAC and IP addresses is supported 2) all devices running link-state aggregation in static LACP mode send LACP protocol to negotiate link aggregation parameters; run LACP negotiation to elect active and inactive ports; static LACP mode is also known as MRV N mode; M represents active member link, N represents passive link redundant backup traffic; active member link failure automatically switches over to high priority inactive link to forward data 3) the difference between manual mode and static LACP mode. In manual load mode, all ports are in forwarding state; in static LACP mode, some ports are in forwarding state and some are in backup state; # load balancing mode? Dst-ip (destination IP address) mode: load sharing based on destination IP address; dst-mac (destination MAC address) mode: load sharing based on destination MAC address; src-ip (source IP address) mode: load sharing based on source IP address; src-mac (source MAC address) mode: load sharing based on source MAC address Src-dst-ip (XOR between source IP address and destination IP address) mode: load sharing is based on source destination IP address; src-dst-mac (XOR between source MAC address and destination MAC address) mode: load sharing based on source destination MAC address
Considerations for link aggregation to join members
Each Eth-Trunk interface can contain up to 8 member interfaces; member interfaces cannot be configured with any functions and static MAC addresses separately; when member interfaces join Eth-Trunk, they must be the default hybrid type interface (this type is the default interface type for Huawei devices); Eth-Trunk interfaces cannot be nested, that is, member interfaces cannot be Eth-Trunk An Ethernet interface can only join one Eth-Trunk interface, and if you need to join other Eth-Trunk interfaces, you must first exit the original Eth-Trunk interface; the member interfaces in an Eth-Trunk interface must be of the same type, that is, Fee port and GE port cannot join the same Eth-Trunk interface; Ethernet interfaces on different interface boards can be added to the same Eth-Trunk If the local device uses Eth-Trunk, the peer interface directly connected to the member interface must also be bundled into an Eth-Trunk interface so that the two sides can communicate normally; when the rate of the member interface is inconsistent, the interface with low speed in use may become congested, resulting in packet loss; when the member interface joins the Eth-Trunk, the MAC address is learned according to Eth-Trunk, not according to the member interface
The topology diagram of Huawei network equipment is as follows
The configuration steps are as follows: PC configures IP address and gateway SW1 and SW2 according to topology, link aggregation and trunk creates vlan10, vlan20 and vlan30 in SW1 and SW2, respectively, adds interface to vlanR1 and configures single-arm routing, communication between different vlan R1 G0Unipoise 1 interface configures IP address and R2 interface configures IP address PC7 configures IP address and gateway R2 configures default route, R1 configures static route, PC7 can access all vlan Network-wide interconnection R1 and R2 configure floating route PC7 verify floating route network-wide interconnection
Start configuration
1. PCs configure IP addresses and gateways according to the topology
2.SW1 and SW2 configure link aggregation and trunk1) SW1 configures 0 SW1, 0, 0, 0, 0, 4 interfaces for link aggregation [SW1] int Eth-Trunk 1 # create aggregate link number 1 The range is 0x63 [SW1-Eth-Trunk1] quit # save and exit [SW1] int eth 0ram 0ram 2 # into 0ram 2interface [SW1-Ethernet0/0/2] eth-trunk 1 # join to aggregation link 1 [SW1-Ethernet0/0/2] quit # save and exit [SW1] interface Ethernet0/0/ 3 # into 0ram 0ram 3 Port [SW1-Ethernet0/0/3] eth-trunk 1 # join to aggregation link 1 [SW1-Ethernet0/0/3] quit # save and exit [SW1] interface Ethernet0/0/4 # into 0ram 4 interface [SW1-Ethernet0/0/4] eth-trunk 1 # join [SW1-Ethernet0/0/4] quit in aggregation link 1 # Save and exit 2) configure SW1 link aggregation as trunk [SW1-Eth-Trunk1] int Eth-Trunk1 # enter aggregation link 1 [SW1-Eth-Trunk1] port link-type trunk # aggregation link is configured as trunk [SW1-Eth-Trunk1] port trunk allow-pass vlan all # set to host all vlan (change all to vlan number if carrying specified vlan) [SW1-Eth-Trunk1] Quit # Save and exit 3) configure the Ethernet0/0/1 interface of the SW1 connection router R1 to trunk [SW1] int eth 0bat 0 SW1-Ethernet0/0/1 1 # to enter 0Uniqa 1 interface [SW1-Ethernet0/0/1] port link-type trunk # interface to trunk [SW1-Ethernet0/0/1] port trunk allow-pass vlan all # setting to host all vlan [SW1-Ethernet0/0/1] Quit # Save and exit 4) SW2 configuration 0swap 2, Interface 0ax 0ax 3 and interface 0ram 0ax 4 create aggregate link number 1 for link aggregation [SW2] int Eth-Trunk 1 # Range 0upload 63 [SW2-Eth-Trunk1] quit # Save and exit [SW2] int eth 0Accord 2 # into 0quit 2 interface [SW2-Ethernet0/0/2] eth-trunk 1 # join to aggregation Link 1 [SW2-Ethernet0/0/2] quit # Save and exit [SW2] int eth 0Accord 3 # join [SW2-Ethernet0/0/3] eth-trunk 1 # into 0 int eth 3 interface [SW2-Ethernet0/0/4] eth-trunk 1 # join to aggregate link 1 [SW2] int eth # save and exit [int eth] 0 eth-trunk 4 # into 0 Charley 4 interface [SW2-Ethernet0/0/4] eth-trunk 1 # join aggregation link 1 -Ethernet0/0/4] quit # Save and exit 5) configure SW2 link aggregation as trunk [SW2] int Eth-Trunk1 # enter aggregation link 1 [SW2-Eth-Trunk1] port link-type trunk # aggregation link is configured to trunk [SW2-Eth-Trunk1] port trunk allow-pass vlan all # setting to host all vlan3. Create vlan10, vlan20, vlan30 in SW1 and SW2 respectively, and add interfaces to vlan1) create vlan10 vlan20 vlan30 in SW1 Add the interface to vlan batch [SW1] vlan batch 10 20 30 # batch create multiple VLANs) add the interface to SW1 [SW1] int eth 0 int eth 0 quit 5 # enter 0 SW1-Ethernet0/0/5 5 interface [SW1] port link-type access # set the access link [SW1] port default vlan10 # to Vlan10 [SW1-Ethernet0/0/5] quit # Save and exit [SW1] int eth 0swap 6 # enter to 0Accord 6 interface [SW1-Ethernet0/0/6] port link-type access # set to access link [SW1-Ethernet0/0/6] port default vlan20 # join to Vlan20 [SW1-Ethernet0/0/6] quit # save and return Go out [SW1] int eth 0 Ethernet0/0/7 7 # to enter 0 quit 0 interface [SW1-Ethernet0/0/7] port link-type access # to access link [SW1-Ethernet0/0/7] port default vlan30 # join to Vlan30 [SW1-Ethernet0/0/7] quit # Save and exit 3) SW2 create vlan10 vlan20 vlan30 Add the interface to vlan batch [SW2] vlan batch 10 20 30 # to create multiple VLANs in batch) add the interface to SW2 to add vlanSW2] int eth 0deband 5 # to enter 0Ethernet0/0/5 5 interface [SW2-Ethernet0/0/5] port link-type access # to access link [SW2-Ethernet0/0/5] port default vlan10 # to join Vlan10 [SW2-Ethernet0/0/5] quit # Save and exit [SW2] int eth 0swap 6 # enter to 0swap 6 interface [SW2-Ethernet0/0/6] port link-type access # set to access link [SW2-Ethernet0/0/6] port default vlan20 # join to Vlan20 [SW2-Ethernet0/0/6] quit # Save and exit [ SW2] int eth 0 Ethernet0/0/7 7 # enters 0 quit 7 interface [SW2-Ethernet0/0/7] port link-type access # is set to access link [SW2-Ethernet0/0/7] port default vlan30 # join to Vlan30 [SW2-Ethernet0/0/7] quit # Save and exit 4.R1 configuration one-arm routing Communication between different vlan 1) R1 launches subinterface [R1] int g 0Universe 0.10 # create subinterface 0UniUnix 0.10 [R1-GigabitEthernet0/0/0.10] ip add 192.168.10.254 24 # subinterface configuration IP address [R1-GigabitEthernet0/0/0.10] dot1q termination vid 10 # subinterface is vlan10 service [R1-GigabitEthernet0/0/0.10] arp broadcast enable # enable subinterface ARP broadcast [R1-GigabitEthernet0/0/0.10] quit # Save and exit [R1] int g 0Unitabl 0Unix 0.20 # create subinterface 0Unix 0.20 [R1-GigabitEthernet0/0/0.20] ip add 192.168.20.254 24 # Subinterface configuration IP address [R1-GigabitEthernet0/0/0.20] dot1q termination vid 20 # Sub-interface for vlan20 service [R1-GigabitEthernet0/0/0.20] arp broadcast enable # enable sub-interface ARP broadcast [R1-GigabitEthernet0/0/0.20] quit # Save and exit [R1] int g 0ram 0.30 # create subinterface 0ram 0.30 [R1-GigabitEthernet0/0/0.30] ip add 192.168.30.254 24 # subinterface configuration IP address [R1-GigabitEthernet0/0/0.30] dot1q termination vid 30 # subinterface enable ARP broadcast [R1-GigabitEthernet0/0/0.30] quit # save and exit for vlan30 service [R1-GigabitEthernet0/0/0.30] arp broadcast enable # subinterface
After the above configuration, different vlan can communicate with each other. Take a PC to ping other vlan.
Next, configure static, default, floating routes IP address and R2 interface configuration IP address and R2 interface configuration IP address for 5.R1 interconnection across the network. 1) R1 G0Unipedia 1 interface configuration IP address [R1] int g 0charger 1 # enters 0Chargonne interface [R1-GigabitEthernet0/0/1] ip add 192.168.40.1 24 # configuration IP address [R1-GigabitEthernet0/0/1] undo shut # Activation Interface [R1-GigabitEthernet0/ 0quit 1] quit # Save and exit 2) R2 interface configuration IP address [R2] int g 0Accord 1 # enter 0Accord 1 interface [R2-GigabitEthernet0/0/1] ip add 192.168.40.2 24 # configuration IP address [R2-GigabitEthernet0/0/1] undo shut # Activation Interface [R2-GigabitEthernet0/0/1] quit # Save and exit [R2] int g 0ip 0ip 0 # enter 0 R2-GigabitEthernet0/0/0 0 interface [R2-GigabitEthernet0/0/0] ip add 192.168.50.1 24 # configure IP address [R2-GigabitEthernet0/0/0] undo shut # activate interface [R2-GigabitEthernet0/0/0] quit # save and exit
6.PC7 configure IP address and gateway
7.R2 configures default route, R1 configures static route, PC7 can access all vlan, network-wide interconnection 1) R2 configures default route, next hop address is 192.168.40.1 [R2] ip route-static 0.0.0.0 0.0.0 GigabitEthernet 0canplink 0canplash 1 192.168.40.1 # configure default route, next hop interface is 0canap1 The next hop IP address is 40.12) R1 is configured with a static route, and the next hop is 192.168.40.2 [R1] ip route-static 192.168.50.0 255.255.255.0 GigabitEthernet 0amp 1 192.168.40.2 # configure a static route, the next hop interface is 0bank 1, and the next hop IP address is 40.2
3) PC7 verifies the interconnection of the whole network
8.R1 and R2 configure floating routing 1) configure the IP address [R1] int g 0Charger 2 interface [R1] of R1 and R2 G0Accord 2 interface [R1-GigabitEthernet0/0/2] ip add 192.168.60.1 24 # configure IP address [R1-GigabitEthernet0/0/2] undo shut # Activation Interface [R1-GigabitEthernet0/0/2] quit # Save and exit [R2] int g 0GigabitEthernet0/ 2 # enter 0Universe 2 interface [R2-GigabitEthernet0/0/2] ip add 192.168.60.2 24 # configure IP address [R2-GigabitEthernet0/0/2] undo shut # activate interface [R2-GigabitEthernet0/0/2] quit # save and exit [R2] ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/ 0BX 2 192.168.60.1 preference 70 # configure a default floating route The next-hop interface is G0Action2, the next-hop IP address is 60.1, priority is 70 [R1] ip route-static 192.168.50.0 24 GigabitEthernet 0 preference 70 # configuration static floating next-hop interface is G0Accord 2 next-hop IP address is 60.2 priority is 702) shut down the G0UniLever 1 interface of R1 and R2 [R1] int g 0ram 0ram 1 # enters 0ram 0ram 1 interface [R1-GigabitEthernet0/0/1] shut shuts down the interface
9.PC7 verifies network-wide interworking of floating routes
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.