Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Link bundling of Huawei Simulator

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Experimental documentation

Experimental techniques:

1. Link bundling

2、dhcp

3. Single-arm routing

Experimental requirements:

AR1 and AR2, AR1 and LSW1, LSW1 and LSW2 link binding

PC1 and PC2 belong to VLAN10 and VLAN20, respectively, and they obtain IP addresses through DHCP

Two PCs communicate via AR1 single-arm routing

Finally, the whole network can be interconnected

Network topology diagram:

Note: Huawei eNSP simulator was used in the experiment.

Experimental procedure:

First of all, we need to complete the topology diagram. The AR3260 used in the experiment only has three G ports. In order to ensure that there is enough structure for us to bind the links, we need to add cards to it.

Note: The interfaces at both ends of the link bundle are of the same type, and the bundle interfaces are of the same type.

Next, enter the command configuration process

1. Configure LSW1

system-view Enter configuration mode

[Huawei]vlan bat 10 20 Create vlan on request

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port hybrid pvid vlan 10

[Huawei-Ethernet0/0/1]port hybrid untagged vlan 10

Mark this interface as vlan10, and remove the vlan10 label when transmitting it to the PC.

[Huawei]int Eth-Trunk 1

[Huawei-Eth-Trunk1]trunkport g 0/0/1 to 0/0/2

Bind the two G ports connected to AR1

[Huawei-Eth-Trunk1]port hybrid tagged vlan 10 20

Do relay, data frames can be labeled vlan10 and vlan20 when passing through

[Huawei-Eth-Trunk1]int eth3

[Huawei-Eth-Trunk2]trunkport e 0/0/2 to 0/0/3

[Huawei-Eth-Trunk2]port hybrid tagged vlan 10 20

2. Configure LSW2

sy

[Huawei]vlan bat 10 20

[Huawei]int eth3

[Huawei-Eth-Trunk2]trunkport e 0/0/2 to 0/0/3

[Huawei-Eth-Trunk2]port hybrid tagged vlan 10 20

[Huawei]int e0/0/1

[Huawei-Ethernet0/0/1]port hybrid pvid vlan 20

[Huawei-Ethernet0/0/1]port hybrid untagged vlan 20

3. Configure AR1

sy

[Huawei]int eth2

[Huawei-Eth-Trunk1]undo portswitch

Turn two-layer switching into three-layer switching

[Huawei-Eth-Trunk1]trunkport g 0/0/0 to 0/0/1

Do link binding

[Huawei-Eth-Trunk1]int eth2.10

Do single-arm routing, divide a main interface into several sub-interfaces as gateways

[Huawei-Eth-Trunk1.10]dot1q termination vid 10

Encapsulate 802.1q protocol and divide this subinterface into vlan10

[Huawei-Eth-Trunk1.10]ip add 192.168.10.1 24

configure ip address subnet mask

[Huawei-Eth-Trunk1.10]arp broadcast enable

Turn on arp broadcast

[Huawei-Eth-Trunk1.10]int eth2.20

[Huawei-Eth-Trunk1.20]dot1q termination vid 20

[Huawei-Eth-Trunk1.20]ip add 192.168.20.1 24

[Huawei-Eth-Trunk1.20]arp broadcast enable

[Huawei]int eth2.10

[Huawei-Eth-Trunk1.10]dhcp enable

Open DHCP

[Huawei-Eth-Trunk1.10]dhcp select interface

ip address is automatically obtained from the interface address pool through dhcp. this interface belongs to vlan10. members of vlan10 will obtain ip address through it.

[Huawei-Eth-Trunk1.10]dhcp server dns-list 1.1.1.1

an address of a DNS server

[Huawei-Eth-Trunk1.10]qu

Note: Interface based DHCP

[Huawei]ip pool 20

Create an address pool

[Huawei-ip-pool-20]network 192.168.20.0 mask 24

Define network segments, subnet masks

[Huawei-ip-pool-20]gateway-list 192.168.20.1 Gateway

[Huawei-ip-pool-20]dns-list 2.2.2.2DNS server address

[Huawei-ip-pool-20]int eth2.20

[Huawei-Eth-Trunk1.20]dhcp enable enables DHCP in the interface, or directly in the global open

[Huawei]int eth2.20

[Huawei-Eth-Trunk1.20]dhcp select global

Get ip address from global address pool. This interface belongs to vlan20. Members of vlan20 get ip address from it.

[Huawei-Eth-Trunk1.20]int eth4

[Huawei-Eth-Trunk3]undo portswitch

[Huawei-Eth-Trunk3]trunkport g0/0/2

[Huawei-Eth-Trunk3]trunkport g4/0/0

[Huawei-Eth-Trunk3]ip add 192.168.2.1 24

Do link binding with AR2 and configure ip address

Note: DHCP based on global address pool

4. Configure AR2

sy

[Huawei]int eth4

[Huawei-Eth-Trunk3]undo portswitch

[Huawei-Eth-Trunk3]trunkport g 0/0/0 to 0/0/1

[Huawei-Eth-Trunk3]ip add 192.168.2.2 24

[Huawei]ip route-static 192.168.10.0 255.255.255.0 192.168.2.1

[Huawei]ip route-static 192.168.20.0 255.255.255.0 192.168.2.1

Finally add static routing, experiment AR2 and PC communication

Experimental verification:

Communication between two PCs

Choose dhcp mode

Communication from PC1 to the whole network

With PC2

With AR2

Experimental Summary:

1. When the PC receives Ethernet data frames, it must remove the vlan label (untagged), while the trunk port needs to encapsulate the required vlan label to achieve communication (tagged).

2. Different from Cisco equipment, Huawei routers need to manually enable arp broadcast when doing single-arm routing.

3. The router defaults to Layer 2 switching and needs to be converted to Layer 3 switching (undo portswitch).

DHCP can be turned on globally or on specified ports.

5. Don't forget to add static routes to the router when the whole network is interconnected.

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report