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--
1. Lab Topology:
Use the ENSP simulator (version V100R002C001.2.00.370)
two。 Lab requirements:
(1) divide vlan,C1 and C3 into one vlan,C2 and C4 into one vlan.
(2) Link bundling between SW1 and SW2,R1 respectively
(3) configure vlan10,vlan20 gateway on R1 with one-arm routing
(4) PC obtains the IP address through DHCP
(5) use Ping command to test the interoperability of the whole network.
3. Related configuration:
Configure LSW according to the experimental requirements
LSW1:
Sy
[Huawei] vlan bat 10 20 (vlan bat can add multiple vlan 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] port hybrid pvid vlan 20
[Huawei-Ethernet0/0/2] port hybrid untagged vlan 20
[Huawei] int Eth-Trunk 1
[Huawei-Eth-Trunk1] trunkport Ethernet 0Accord 0Accord 100 UniUniverse 11 (relay to Eth-Trunk1)
[Huawei-Eth-Trunk1] port hybrid tagged vlan 10 20
[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 Eth-Trunk2 is an uplink, it also needs to be relayed)
Check the configuration result of vlan: display vlan
LSW2:
Sy
[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
[Huawei-Ethernet0/0/4] port hybrid pvid vlan 20
[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 hybrid tagged vlan 10 20
Check the configuration results of vlan:
The above is the partition configuration and link bundling of LSW-vlan. According to the requirements of the experiment, it is also necessary to configure router routing, DHCP and link bundling on the router.
Specific configuration:
Sy
[Huawei] int Eth-Trunk 1
[Huawei-Eth-Trunk1] undo portswitch (this is a key command when layer 2 and layer 3 devices are bundled. Never forget! )
[Huawei-Eth-Trunk1] int g0/0/1
[Huawei-GigabitEthernet0/0/1] eth-trunk 1
[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
[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] dhcp enable
[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
I don't configure the DNS service here, but I still have to configure DNS in the real network. Let's test whether PC can get the ip address with DHCP, as shown in the figure:
The ip address has been obtained automatically through DHCP, and we can see that we used a command from dhcp select interface to get three parameters. The ip address, subnet mask and gateway are all obtained.
Let's test the interoperability of the whole network, as shown in the figure:
The configuration is completed and the interworking of the whole network is realized.
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.