Will you have a comprehensive configuration of Huawei?


1. Experimental topology:

Use ENSP simulator (version V100R002C001.2.00.370)

2. Experimental requirements:
< /p>

(1) Division vlan,C1andC3Belonging to onevlan,C2andC4belongs to onevlan span>

(2) SW1respectively andSW2,< /span>R1Do link binding p>

(3) inR1do one-arm routing configuration on R1vlan10,vlan20Gateway

(4) PCthroughDHCPGetIPAddress

(5) UsePing Command to detect the interoperability of the entire network

< span style="font-family :'宋体';">3. Related configuration:


According to the experimental requirements, Configure

LSW1:

sy

[Huawei]vlan bat 10 20 (vlan bat can add multiple vlans at the same time)

[Huawei]int e0/0/1

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

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

[Huawei-Ethernet0/0/1]int e0/0/2

[Huawei-Ethernet0/0/2]porthybridpvidvlan20< /p>

[Huawei-Ethernet0/0/2]porthybriduntaggedvlan20

[Huawei]int Eth-Trunk 1

[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/10 0/0/11 (relay to Eth-Trunk1)

[Huawei-Eth-Trunk1]porthybridtaggedvlan1020

[Huawei]int Eth-Trunk 2

[Huawei-Eth-Trunk2]trunkport GigabitEthernet 0/0/1 0/0/2

[Huawei-Eth-Trunk2]port hybrid tagged vlan 10 20 (because of Eth- Trunk2 is an upstream port, which also needs to be made into a relay)

Check the configuration results of vlan: display vlan

LSW2:

sy

< p>[Huawei]vlan bat 10 20

[Huawei ]int e0/0/3

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

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

[Huawei-Ethernet0/0/3]int e0/0/4< /span>

[Huawei-Ethernet0/0/4]porthybridpvidvlan20

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

[Huawei]int Eth-Trunk 1

[Huawei-Eth-Trunk1]trunkport Ethernet 0/0/10 0/0/11

[Huawei- Eth-Trunk1]port hybridtagged vlan 10 20

Check the configuration results of vlan:

The above is the division configuration of LSW-vlan and link bundling. According to the needs of the experiment, you also need to configure one-arm routing, DHCP, and link binding on the router.

Specific configuration:< /font>

sy

[Huawei]int Eth-Trunk 1

[Huawei-Eth -Trunk1] undo portswitch (when two-tier equipment and three-tier equipment are bundled, this is a key command. Don’t forget it!!!)

[Huawei-Eth-Trunk1]int g0/0/1

[Huawei-GigabitEthernet0/0/1]eth-trunk1

[Huawei-GigabitEthernet0/0/1]int g0/0/2

[Huawei-GigabitEthernet0/0/2]eth-trunk 1

[Huawei]int Eth-Trunk 1.10

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

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

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

[Huawei]int Eth-Trunk 1.20< /span>

[Huawei-Eth-Trunk1.20]dot1q termination vid 20< /p>

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

[Huawei-Eth-Trunk1.20]arpbroadcastenable

< span style="font-family:'Courier New';font-size:16px;">[Huawei]dhcpenable

[ Huawei]int Eth-Trunk 1.10

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

[Huawei]int Eth-Trunk 1.20

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

< span style="font-family:'Courier New';font-size:16px;">I did not configure the DNS service here, and I still need to configure DNS in the actual network. Let’s use DHCP to test whether the PC can obtain the IP address, as shown in the figure:

< img onload="if(this.width>650) this.width=650;” src=”/wp-content/uploadshttp:/img.voidcn.com/vcimg/static/loading.png” title=”picture 2. png” alt=”wKioL1Z9JKWzzOk6AACszCEJD8c585.png” d=”4754629″ s=”dea_2d0″ t=”png”>


The ip address has been automatically obtained through DHCP, we can find that we have used a dhcp select interface command got three parameters. The ip address, subnet mask, and gateway are all obtained.

Below we test the interoperability of the entire network, as shown in the figure:

The configuration is complete and the entire network is interoperable.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3846 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.