HCNA-Intermediate-Lab.pdf
Full text
(2) e r Mo. Huawei Certification. HCNA-HNTD INTERMEDIATE u h . Huawei Networking Technology and Device g n i Lab Guide n r a e l / / : p t ht : s e c r u o s Re g n ni. r a e. L. Huawei Technologies Co.,Ltd. e / m. i e aw. o c ..
(3) e r Mo. Copyright © Huawei Technologies Co., Ltd. 2013. All rights reserved.. No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd. Trademarks and Permissions. and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice. u h . g n. i e aw. The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute the warranty of any kind, express or implied.. i n ar. e l //. : p tt. h. Huawei Certification. : s eNetworking Technology and Device HCNA-HNTD Huawei c r u o Intermediate Lab Guide s Re Version 2.0 g n i n r a. Le. o c .. e / m.
(4) e r Mo. Huawei Certification System Relying on its strong technical and professional training and certification system and in accordance with customers of different ICT technology levels, Huawei certification is committed to providing customers with authentic, professional. e / m. certification, and addresses the need for the development of quality engineers that are capable of supporting enterprise networks in the face of an ever changing ICT industry. The Huawei certification portfolio for routing and switching (R&S) is. i e aw. comprised of three levels to support and validate the growth and value of customer skills and knowledge in routing and switching technologies.. u h . g n. The Huawei Certified Network Associate (HCNA) certification validates the skills. and knowledge of IP network engineers to implement and support small to. i n ar. medium-sized enterprise networks. The HCNA certification provides a rich foundation of skills and knowledge for the establishment of such enterprise. e l //. networks, along with the capability to implement services and features within existing enterprise networks, to effectively support true industry operations.. : p tt. HCNA certification covers fundamental skills for TCP/IP, routing, switching and related IP network technologies, together with Huawei data communications. h. products, and skills for versatile routing platform (VRP) operation and management.. c r u o s e R. : s e. The Huawei Certified Network Professional (HCNP-R&S (HCDP)) certification is aimed at enterprise network engineers involved in design and maintenance, as well as professionals who wish to develop an in depth knowledge of routing, switching, network efficiency and optimization technologies. HCNP-R&S consists of three. g n i. units including Implement Enterprise Switch Network (IESN), Implement Enterprise Routing Network (IERN), and Improving Enterprise Network Performance (IENP),. n r a. which includes advanced IPv4 routing and switching technology principles,. Le. network security, high availability and QoS, as well as application of the covered technologies in Huawei products. The Huawei Certified Internet Expert (HCIE-R&S) certification is designed to imbue engineers with a variety of IP network technologies and proficiency in maintenance, for the diagnosis and troubleshooting of Huawei products, to equip engineers with in-depth competency in the planning, design and optimization of large-scale IP. networks.. o c ..
(5) e r Mo. e / m. o c .. u h . g n. i n ar. e l //. Le. n r a. g n i. c r u o s e R. : s e. h. : p tt. i e aw.
(6) e r Mo. Reference Icons. Router. L3 Switch. L2 Switch. Ethernet link. e / m. Cloud. u h . g n. Serial link. i e aw. i n ar. Lab environment specification. e l //. In order to ensure that that the configuration given in this lab is supported on all devices, it is recommended that the following device models and VRP versions be used:. Identifier R1 R2. c r u o s e R AR 2220. VRP version. Version 5.120 (AR2200 V200R003C00SPC200). AR 2220. Version 5.120 (AR2200 V200R003C00SPC200). AR 2220. Version 5.120 (AR2200 V200R003C00SPC200). S1. S5700-28C-EI-24S. Version 5.70 (S5700 V100R006C00SPC800). S2. S5700-28C-EI-24S. Version 5.70 (S5700 V100R006C00SPC800). S3. S3700-28TP-EI-AC. Version 5.70 (S3700 V100R006C00SPC800). S4. S3700-28TP-EI-AC. Version 5.70 (S3700 V100R006C00SPC800). ng. R3. i n r. a e L. : s e. Device Model. : p tt. h. o c ..
(7) e r Mo. e / m. o c .. u h . g n. i n ar. e l //. Le. n r a. g n i. c r u o s e R. : s e. h. : p tt. i e aw.
(8) e r Mo. HCNA-HNTD Content. CONTENTS CHAPTER 1 ETHERNET AND VLAN ...................................................................................................... 1 LAB 1-1 ETHERNET INTERFACE AND LINK CONFIGURATION ................................................................................ 1 LAB 1-2 VLAN CONFIGURATION................................................................................................................ 10 LAB 1-3 GVRP CONFIGURATION ............................................................................................................... 21. o c .. i e aw. LAB 1-4 VLAN ROUTING.......................................................................................................................... 33. LAB 1-5 CONFIGURING LAYER 3 SWITCHING................................................................................................. 41. u h . g n. CHAPTER 2 ENTERPRISE WAN CONFIGURATION .............................................................................. 56. i n ar. LAB 2-1 HDLC AND PPP CONFIGURATION .................................................................................................. 56 LAB 2-2 CONFIGURING FRAME RELAY AT THE CUSTOMER EDGE ....................................................................... 73. e l //. LAB 2-3 PPPOE CLIENT SESSION ESTABLISHMENT ......................................................................................... 94. : p tt. CHAPTER 3 IMPLEMENTING IP SECURITY ....................................................................................... 103 LAB 3-1 FILTERING ENTERPRISE DATA WITH ACCESS CONTROL LISTS. .............................................................. 103. h. LAB 3-2 NETWORK ADDRESS TRANSLATION ............................................................................................... 114. : s e. LAB 3-3 ESTABLISHING LOCAL AAA SOLUTIONS .......................................................................................... 124. c r u o s e R. LAB 3-4 SECURING TRAFFIC WITH IPSEC VPN............................................................................................. 132 LAB 3-5 SUPPORTING DYNAMIC ROUTING WITH GRE .................................................................................. 147 CHAPTER 4 MANAGING ENTERPRISE NETWORKS ........................................................................... 158. g n i. LAB 4-1 MANAGING NETWORKS WITH SNMP ........................................................................................... 158. Le. n r a. CHAPTER 5 ESTABLISHING IPV6 NETWORKS................................................................................... 169 LAB 5-1 IMPLEMENTING IPV6 NETWORKS AND SOLUTIONS........................................................................... 169. HC Series. HUAWEI TECHNOLOGIES. Page1. e / m.
(9) e r Mo. e / m. o c .. u h . g n. i n ar. e l //. Le. n r a. g n i. c r u o s e R. : s e. h. : p tt. i e aw.
(10) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Chapter 1 Ethernet and VLAN Lab 1-1 Ethernet Interface and Link Configuration. e / m. Learning Objectives As a result of this lab section, you should achieve the following tasks: . Manually set the line rate and duplex mode on an interface. Configuration of manual mode link aggregation. Configuration of link aggregation using static LACP mode. Management of the priority of interfaces in static LACP mode.. u h . g n. i e aw. i n ar. Topology. e l //. : s e. : p tt. h. c r u o s Scenario e R g As a n network administrator of an existing enterprise network, it has been i that the connections between the switches be used more effectively requested n arby preparing the switches to support link aggregation before establishing Figure 1.1 Ethernet link aggregation topology. Le. manual link aggregation, for which the media between the switches are to be configured as member links.. HC Series. HUAWEI TECHNOLOGIES. Page1. o c ..
(11) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Tasks Step 1 Perform basic configuration on the Ethernet switches. Auto-negotiation is enabled on Huawei switch interfaces by default. The rate and duplex mode of G0/0/9 and G0/0/10 on S1 and S2 are to be set manually. Change the system name and view detailed information for G0/0/9 and G0/0/10 on S1. <Quidway>system-view [Quidway]sysname S1. u h . g n. [S1]display interface GigabitEthernet 0/0/9 GigabitEthernet0/0/9 current state : UP Line protocol current state : UP. i n ar. i e aw. Description:HUAWEI, Quidway Series, GigabitEthernet0/0/9 Interface Switch Port,PVID :. 1,The Maximum Frame Length is 1600. IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-82e1-aea6. e l //. Port Mode: COMMON COPPER Speed : 1000, Loopback: NONE. : p tt. Duplex: FULL, Negotiation: ENABLE Mdi. : AUTO. Last 300 seconds input rate 752 bits/sec, 0 packets/sec. h. Last 300 seconds output rate 720 bits/sec, 0 packets/sec. : s e. Input peak rate 1057259144 bits/sec,Record time: 2008-10-01 00:08:58 Output peak rate 1057267232 bits/sec,Record time: 2008-10-01 00:08:58. c r u o s e R. Input: 11655141 packets, 960068100 bytes Unicast Broadcast CRC. :. 70,Multicast 6643714,Jumbo. :. 5011357. :. 0. :. 0,Giants. :. 0. :. 0,Throttles. :. 0. :. 0,DropEvents. :. 0. :. 0,Symbols. :. 0. Ignoreds. :. 0,Frames. :. 0. Discard. :. :. 0. Jabbers Runts. ng. ni. Alignments. ar. Le. :. 69,Total Error. Output: 11652169 packets, 959869843 bytes Unicast. :. Broadcast. :. Collisions. :. :. 5009016. :. 0. :. 0. Late Collisions :. 0,ExcessiveCollisions :. 0. Buffers Purged :. 0. Discard. 5,Total Error. Page2. :. 345,Multicast 6642808,Jumbo 0,Deferreds. HUAWEI TECHNOLOGIES. :. 0. HC Series. o c .. e / m.
(12) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization. : 0.01%. Output bandwidth utilization : 0.00% [S1]display interface GigabitEthernet 0/0/10 GigabitEthernet0/0/10 current state : UP. e / m. Line protocol current state : UP. o c .. Description:HUAWEI, Quidway Series, GigabitEthernet0/0/10 Interface Switch Port,PVID :. 1,The Maximum Frame Length is 1600. i e aw. IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-82e1-aea6 Port Mode: COMMON COPPER Speed : 1000, Loopback: NONE. u h . g n. Duplex: FULL, Negotiation: ENABLE Mdi. : AUTO. Last 300 seconds input rate 1312 bits/sec, 0 packets/sec. i n ar. Last 300 seconds output rate 72 bits/sec, 0 packets/sec. Input peak rate 1057256792 bits/sec,Record time: 2008-10-01 00:08:58. e l //. Output peak rate 1057267296 bits/sec,Record time: 2008-10-01 00:08:58 Input: 11651829 packets, 959852817 bytes Unicast. :. Broadcast. :. CRC. :. Jabbers. :. Runts. :. Alignments. :. Ignoreds Discard. c r u o s e R : :. 115,Multicast. :. 5009062. :. 0. 3,Giants. :. 0. 0,Throttles. h. :. 0. 0,DropEvents. :. 0. 0,Symbols. :. 4. 0,Frames. :. 0. :. 7. : p tt. 6642648,Jumbo. : s e. 218,Total Error. Output: 11655280 packets, 960072712 bytes Unicast Broadcast. g n i. Collisions. : :. 245,Multicast. :. Late Collisions :. n r a. Buffers Purged :. Le. Discard. :. 5011284. :. 0. :. 0. 0,ExcessiveCollisions :. 0. 6643751,Jumbo. :. 0,Deferreds 0 107,Total Error. :. 0. Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization. : 0.01%. Output bandwidth utilization : 0.00%. Set the rate of G0/0/9 and G0/0/10 on S1 to 100 Mbit/s and configure them to work in full duplex mode. Before changing the interface rate and duplex mode, disable auto-negotiation. HC Series. HUAWEI TECHNOLOGIES. Page3.
(13) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S1]interface GigabitEthernet 0/0/9 [S1-GigabitEthernet0/0/9]undo negotiation auto [S1-GigabitEthernet0/0/9]speed 100 [S1-GigabitEthernet0/0/9]duplex full [S1-GigabitEthernet0/0/9]quit [S1]interface GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]undo negotiation auto. e / m. [S1-GigabitEthernet0/0/10]speed 100. o c .. [S1-GigabitEthernet0/0/10]duplex full. i e aw. Set the rate of G0/0/9 and G0/0/10 on S2 to 100 Mbit/s and configure them to work in full duplex mode.. u h . g n. <Quidway>system-view [Quidway]sysname S2 [S2]interface GigabitEthernet 0/0/9. i n ar. [S2-GigabitEthernet0/0/9]undo negotiation auto [S2-GigabitEthernet0/0/9]speed 100 [S2-GigabitEthernet0/0/9]duplex full. e l //. [S2-GigabitEthernet0/0/9]quit [S2]interface GigabitEthernet 0/0/10. : p tt. [S2-GigabitEthernet0/0/10]undo negotiation auto [S2-GigabitEthernet0/0/10]speed 100 [S2-GigabitEthernet0/0/10]duplex full. : s e. h. Confirm that the rate and duplex mode of G0/0/9 and G0/0/10 have been set on S1.. c r u o s e R. [S1]display interface GigabitEthernet 0/0/9 GigabitEthernet0/0/9 current state : UP Line protocol current state : UP Description:HUAWEI, Quidway Series, GigabitEthernet0/0/9 Interface. ng. Switch Port,PVID :. 1,The Maximum Frame Length is 1600. i n r. IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-82e1-aea6 Port Mode: COMMON COPPER. a e L. Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: DISABLE Mdi. : AUTO. ……output omitted……. Page4. HUAWEI TECHNOLOGIES. HC Series.
(14) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S1]display interface GigabitEthernet 0/0/10 GigabitEthernet0/0/10 current state : UP Line protocol current state : UP Description:HUAWEI, Quidway Series, GigabitEthernet0/0/10 Interface Switch Port,PVID :. 1,The Maximum Frame Length is 1600. IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-82e1-aea6 Port Mode: COMMON COPPER. e / m. Speed : 100, Loopback: NONE. o c .. Duplex: FULL, Negotiation: DISABLE Mdi. : AUTO. i e aw. ……output omitted……. u h . G0/0/9 Create Eth-Trunk 1 on S1 and S2. Delete the default configuration from g and G0/0/10 on S1 and S2, and then add G0/0/9 and G0/0/10 to n Eth-Trunk 1. i n r a e l / / : p t ht : s e c r u o s Re g n i the Eth-Trunk configuration. Verify n ar Step 2 Configure manual link aggregation.. [S1]interface Eth-Trunk 1 [S1-Eth-Trunk1]quit. [S1]interface GigabitEthernet 0/0/9. [S1-GigabitEthernet0/0/9]eth-trunk 1. [S1-GigabitEthernet0/0/9]quit. [S1-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]eth-trunk 1 [S2]interface Eth-Trunk 1 [S2-Eth-Trunk1]quit. [S2]interface GigabitEthernet 0/0/9. [S2-GigabitEthernet0/0/9]eth-trunk 1. [S2-GigabitEthernet0/0/9]quit. [S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10. [S2-GigabitEthernet0/0/10]eth-trunk 1. Le. [S1]display eth-trunk 1. Eth-Trunk1's state information is: WorkingMode: NORMAL. Hash arithmetic: According to SA-XOR-DA. Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up. Number Of Up Port In Trunk: 2. ---------------------------------------------------------------------------PortName GigabitEthernet0/0/9. HC Series. Status. Weight. Up. 1. HUAWEI TECHNOLOGIES. Page5.
(15) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. GigabitEthernet0/0/10. Up. 1. [S2]display eth-trunk 1 Eth-Trunk1's state information is: WorkingMode: NORMAL. Hash arithmetic: According to SA-XOR-DA. Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8 Operate status: up. Number Of Up Port In Trunk: 2. e / m. ---------------------------------------------------------------------------PortName GigabitEthernet0/0/9. Status. o c .. Weight. Up. 1. i e w The greyed lines in the preceding information indicate that the Eth-Trunk works a u properly. h . g Step 3 Configuring Link Aggregation in Static LACP n Mode i n r Delete the configurations from G0/0/9 and G0/0/10 on S1 and S2. a e l / / : p t t h : s e c r u o s e R Create Eth-Trunk 1 and set the load balancing mode of the Eth-Trunk to static g LACP n mode. i n ar GigabitEthernet0/0/10. Up. 1. [S1]interface GigabitEthernet 0/0/9. [S1-GigabitEthernet0/0/9]undo eth-trunk [S1-GigabitEthernet0/0/9]quit. [S1]interface GigabitEthernet 0/0/10. [S1-GigabitEthernet0/0/10]undo eth-trunk [S2]interface GigabitEthernet 0/0/9. [S2-GigabitEthernet0/0/9]undo eth-trunk [S2-GigabitEthernet0/0/9]quit. [S2]interface GigabitEthernet 0/0/10. [S2-GigabitEthernet0/0/10]undo eth-trunk. Le. [S1]interface Eth-Trunk 1. [S1-Eth-Trunk1]mode lacp-static. [S1-Eth-Trunk1]quit [S1]interface GigabitEthernet 0/0/9 [S1-GigabitEthernet0/0/9]eth-trunk 1 [S1-GigabitEthernet0/0/9]quit [S1]interface GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]eth-trunk 1. Page6. HUAWEI TECHNOLOGIES. HC Series.
(16) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S2]interface Eth-Trunk 1 [S2-Eth-Trunk1]mode lacp-static [S2-Eth-Trunk1]quit [S2]interface GigabitEthernet 0/0/9 [S2-GigabitEthernet0/0/9]eth-trunk 1 [S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10 [S2-GigabitEthernet0/0/10]eth-trunk 1. e / m. o c .. Verify that the LACP-static mode has been enabled on the two links. [S1]display eth-trunk Eth-Trunk1's state information is: Local:. u h . g n. LAG ID: 1. WorkingMode: STATIC. Preempt Delay: Disabled. Hash arithmetic: According to SA-XOR-DA. System Priority: 32768. System ID: 4c1f-cc45-aace. Least Active-linknumber: 1. Max Active-linknumber: 8. Operate status: up. Number Of Up Port In Trunk: 2. i e aw. i n ar. e l //. ---------------------------------------------------------------------------ActorPortName. Status. PortType PortPri PortNo PortKey PortState Weight. GigabitEthernet0/0/9. Selected 100M. GigabitEthernet0/0/10. Selected 100M. 32768. : p tt 32768. Partner:. h. 9. 289. 10111100 1. 10. 289. 10111100 1. ---------------------------------------------------------------------------ActorPortName. SysPri. SystemID. GigabitEthernet0/0/9. 32768. 4c1f-cc45-aacc. : s e. PortPri PortNo PortKey PortState 32768. 9. 289. 10111100. c r uon S1 to 100 to ensure S1 remains the Actor. Set the system priority o s e R g of the interface and determine active links on S1. Set the priority n i n ar GigabitEthernet0/0/10. 32768. 4c1f-cc45-aacc. 32768. 10. 289. 10111100. [S1]lacp priority 100. [S1]interface GigabitEthernet 0/0/9. Le. [S1-GigabitEthernet0/0/9]lacp priority 100 [S1-GigabitEthernet0/0/9]quit. [S1]interface GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]lacp priority 100. HC Series. HUAWEI TECHNOLOGIES. Page7.
(17) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Verify the Eth-Trunk configuration. [S1]display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1. WorkingMode: STATIC. Preempt Delay: Disabled. Hash arithmetic: According to SA-XOR-DA. System Priority: 100. System ID: 4c1f-cc45-aace. Least Active-linknumber: 1. Max Active-linknumber: 8. Operate status: up. e / m. ---------------------------------------------------------------------------ActorPortName. Status. i e aw. PortType PortPri PortNo PortKey PortState Weight. GigabitEthernet0/0/9. Selected 100M. 100. 9. 289. 10111100 1. GigabitEthernet0/0/10. Selected 100M. 100. 10. 289. 10111100 1. u h . g n. Partner:. ---------------------------------------------------------------------------. i n ar. ActorPortName. SysPri. SystemID. GigabitEthernet0/0/9. 32768. 4c1f-cc45-aacc 32768. 9. 289. 10111100. GigabitEthernet0/0/10. 32768. 4c1f-cc45-aacc 32768. 10. 289. 10111100. PortPri PortNo PortKey PortState. e l //. [S2]display eth-trunk 1. : p tt. Eth-Trunk1's state information is: Local: LAG ID: 1. WorkingMode: STATIC. Preempt Delay: Disabled. Hash arithmetic: According to SA-XOR-DA. System Priority: 32768. : s e. h. System ID: 4c1f-cc45-aacc. Least Active-linknumber: 1. c r u o s e R. Operate status: up. Max Active-linknumber: 8 Number Of Up Port In Trunk: 2. ---------------------------------------------------------------------------ActorPortName. Status. PortType PortPri PortNo PortKey PortState Weight. GigabitEthernet0/0/9. Selected 100M. 32768. 9. 289. 10111100 1. GigabitEthernet0/0/10. Selected 100M. 32768. 10. 289. 10111100 1. g n i. Partner:. ----------------------------------------------------------------------------. L. ea. rn. ActorPortName. SysPri. GigabitEthernet0/0/9. 100. 4c1f-cc45-aace. 100. 9. 289. 10111100. GigabitEthernet0/0/10. 100. 4c1f-cc45-aace. 100. 10. 289. 10111100. SystemID. PortPri PortNo PortKey PortState. Final Configuration [S1]display current-configuration # !Software Version V100R006C00SPC800. Page8. o c .. Number Of Up Port In Trunk: 2. HUAWEI TECHNOLOGIES. HC Series.
(18) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. sysname S1 # lacp priority 100 # interface Eth-Trunk1 mode lacp-static #. e / m. interface GigabitEthernet0/0/9. o c .. eth-trunk 1 lacp priority 100 undo negotiation auto speed 100 #. u h . g n. interface GigabitEthernet0/0/10 eth-trunk 1 lacp priority 100. i n ar. undo negotiation auto speed 100. e l //. # return. : p tt. [S2]display current-configuration # !Software Version V100R006C00SPC800 sysname S2 #. c r u o s e R. interface Eth-Trunk1 mode lacp-static #. : s e. h. interface GigabitEthernet0/0/9 eth-trunk 1. g n i. undo negotiation auto speed 100. n r a #. Le. interface GigabitEthernet0/0/10 eth-trunk 1 undo negotiation auto speed 100 # return. HC Series. HUAWEI TECHNOLOGIES. Page9. i e aw.
(19) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Lab 1-2 VLAN Configuration Learning Objectives As a result of this lab section, you should achieve the following tasks: . Assign port interfaces to become access and trunk ports. Create VLANs. Configure VLAN tagging over ports using the hybrid port link type. Configure the default VLAN for an interface using the Port VLAN ID.. u h . g n. Topology. i e aw. i n ar. e l //. g n i. Scenario. c r u o s e R. : s e. : p tt. h. Figure 1.2 VLAN topology. The n enterprise network currently operates in a single broadcast domain r a resulting in a large amount of traffic being flooded to all network nodes. It is. Le. required that the administrator attempt to control the flow of traffic at the link layer by implementing VLAN solutions. The VLAN solutions are to be applied to switches S1 and S2.. Page10. HUAWEI TECHNOLOGIES. HC Series. o c .. e / m.
(20) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Tasks Step 1 Preparing the environment. If you are starting this section with a non-configured device, begin here and then move to step 2. For those continuing from previous labs, begin at step 2.. o c .. Establish an Eth-trunk link between S1 and S2. <Quidway>system-view [Quidway]sysname S1 [S1]interface Eth-trunk 1. u h . g n. [S1-Eth-Trunk1]mode lacp-static [S1-Eth-Trunk1]quit [S1]interface GigabitEthernet0/0/9. i e aw. i n ar. [S1-Gigabitethernet0/0/9]eth-trunk 1. [S1-Gigabitethernet0/0/9]interface GigabitEthernet0/0/10 [S1-Gigabitethernet0/0/10]eth-trunk 1. e l //. On S2, add interfaces to an Eth-Trunk using the Eth-Trunk view.. : p tt. <Quidway>system-view [Quidway]sysname S2 [S2]interface eth-trunk 1. : s e. [S2-Eth-Trunk1]mode lacp-static. h. [S2-Eth-Trunk1]trunkport GigabitEthernet 0/0/9. c r u interfaces and establish a VLAN trunk. Step 2 Disable unused o s e Unused interfaces must be disabled to ensure test result accuracy. In this lab, R interfaces Ethernet 0/0/1 and Ethernet 0/0/23 on S3 and Ethernet0/0/14 on S4 g nbe shut down. need to i n r a [S2-Eth-Trunk1]trunkport GigabitEthernet 0/0/10. Le. <Quidway>system-view. Enter system view, return user view with Ctrl+Z. [Quidway]sysname S3 [S3]interface Ethernet 0/0/1 [S3-Ethernet0/0/1]shutdown. [S3-Ethernet0/0/1]quit [S3]interface Ethernet 0/0/23 [S3-Ethernet0/0/23]shutdown. HC Series. e / m. HUAWEI TECHNOLOGIES. Page11.
(21) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. <Quidway>system-view Enter system view, return user view with Ctrl+Z. [Quidway]sysname S4 [S4]interface Ethernet 0/0/14 [S4-Ethernet0/0/14]shutdown. The link type of a switch port interface is hybrid by default. Configure the port link-type for Eth-Trunk 1 to become a trunk port. Additionally, allow all VLANS to be permitted over the trunk port. [S1]interface Eth-Trunk 1 [S1-Eth-Trunk1]port link-type trunk. u h . g n. [S1-Eth-Trunk1]port trunk allow-pass vlan all [S2]interface Eth-Trunk 1. i e aw. i n ar. [S2-Eth-Trunk1]port link-type trunk [S2-Eth-Trunk1]port trunk allow-pass vlan all. e l //. Step 3 Configure VLANs.. : p tt. Use S3, R1, R3, and S4 as non-VLAN aware hosts. There are two methods to create VLANs, and two methods to bind interfaces to the created VLANs, S1 and S2 are used to demonstrate the two methods. All interfaces associated with hosts should be configured as access ports.. h. : s On S1, associate interface Gigabit Ethernet 0/0/13 with VLAN 3, and interface e c Gigabit Ethernet 0/0/1 with VLAN 4. r u On S2, associate interface Gigabit Ethernet 0/0/2 with VLAN4, and Gigabit o s Ethernet 0/0/24 with VLAN 2. Re g n i n ar [S1]interface GigabitEthernet0/0/13. [S1-GigabitEthernet0/0/13]port link-type access. [S1-GigabitEthernet0/0/13]quit. Le. [S1]interface GigabitEthernet0/0/1. [S1-GigabitEthernet0/0/1]port link-type access [S1-GigabitEthernet0/0/1]quit [S1]vlan 2 [S1-vlan2]vlan 3 [S1-vlan3]port GigabitEthernet0/0/13. [S1-vlan3]vlan 4 [S1-vlan4]port GigabitEthernet0/0/1. Page12. HUAWEI TECHNOLOGIES. HC Series. o c .. e / m.
(22) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S2]vlan batch 2 to 4 [S2]interface GigabitEthernet 0/0/3 [S2-GigabitEthernet0/0/3]port link-type access [S2-GigabitEthernet0/0/3]port default vlan 4 [S2-GigabitEthernet0/0/3]quit [S2]interface GigabitEthernet 0/0/24 [S2-GigabitEthernet0/0/24]port link-type access. e / m. [S2-GigabitEthernet0/0/24]port default vlan 2. o c .. Verify that the VLAN configuration has been correctly applied to S1 and S2. <S1>display vlan The total number of vlans is : 4. u h . g n. i e aw. ---------------------------------------------------------------------------U: Up;. D: Down;. TG: Tagged;. MP: Vlan-mapping;. UT: Untagged;. ST: Vlan-stacking;. #: ProtocolTransparent-vlan;. i n ar. *: Management-vlan;. ---------------------------------------------------------------------------VID Type. e l //. Ports. ---------------------------------------------------------------------------1. common. : p tt. UT:GE0/0/2(U) GE0/0/3(U). GE0/0/4(U). GE0/0/5(U). GE0/0/6(D). GE0/0/7(D). GE0/0/8(D). GE0/0/11(D). GE0/0/12(D). GE0/0/14(D). GE0/0/15(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/22(U). GE0/0/23(U). GE0/0/24(D). GE0/0/21(U). c r u o s e R. : s e. h. Eth-Trunk1(U). 2. common TG:Eth-Trunk1(U). 3. common UT:GE0/0/13(U). 4. common UT:GE0/0/1(U). TG:Eth-Trunk1(U). g n i. TG:Eth-Trunk1(U). …output omitted…. n r a. Le. HC Series. HUAWEI TECHNOLOGIES. Page13.
(23) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. <S2>display vlan The total number of vlans is : 4 ---------------------------------------------------------------------------U: Up;. D: Down;. MP: Vlan-mapping; #: ProtocolTransparent-vlan;. TG: Tagged;. UT: Untagged;. ST: Vlan-stacking; *: Management-vlan;. ---------------------------------------------------------------------------VID Type. ---------------------------------------------------------------------------1. common. UT:GE0/0/1(U) GE0/0/2(U). GE0/0/4(U). GE0/0/5(U). GE0/0/6(D). GE0/0/7(D). GE0/0/8(D). GE0/0/11(U). GE0/0/12(U). GE0/0/13(U). GE0/0/14(D). GE0/0/15(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/21(D). GE0/0/22(D). GE0/0/23(D). Eth-Trunk1(U) 2. TG:Eth-Trunk1(U) common TG:Eth-Trunk1(U). 4. common UT:GE0/0/3(U). i e aw. i n ar. common UT:GE0/0/24(U). 3. u h . g n. e l //. TG:Eth-Trunk1(U). : p t of the interfaces to each created The highlighted entries confirm the binding t VLAN. All VLANs are permitted overh the trunk (TG) port Eth-Trunk 1. : s e Step 4 Configure IP addressing for each VLAN. c r u on hosts, R1, S3, R3, and S4 as part of the respective o Configure IP addresses sport interfaces on switches cannot be configured with IP VLANs. Physical e R configure the native management interface Vlanif1 with addresses, therefore g for the switch. the IP address n i n ar …output omitted…. <Huawei>system-view. Le. [Huawei]sysname R1. [R1]interface GigabitEthernet0/0/1. [R1-GigabitEthernet0/0/1]ip address 10.0.4.1 24 [S3]interface vlanif 1 [S3-vlanif1]ip address 10.0.4.2 24. Page14. HUAWEI TECHNOLOGIES. HC Series. e / m. o c .. Ports.
(24) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. <Huawei>system-view [Huawei]sysname R3 [R3]interface GigabitEthernet0/0/2 [R3-GigabitEthernet0/0/2]ip address 10.0.4.3 24 [S4]interface vlanif 1. e / m. [S4-vlanif1]ip address 10.0.4.4 24. Step 5 Verify the configuration, by checking the connectivity.. i e Use the ping command. R1 and R3 in VLAN 4 should be able to communicatew a with one another. Devices in other VLANs should be unable to communicate. u h . g n i n r a e l / / : p t t h : s e c r u o s Re g n i n ar. o c .. [R1]ping 10.0.4.3. PING 10.0.4.3: 56 data bytes, press CTRL_C to break. Reply from 10.0.4.3: bytes=56 Sequence=1 ttl=255 time=6 ms Reply from 10.0.4.3: bytes=56 Sequence=2 ttl=255 time=2 ms. Reply from 10.0.4.3: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 10.0.4.3: bytes=56 Sequence=4 ttl=255 time=2 ms Reply from 10.0.4.3: bytes=56 Sequence=5 ttl=255 time=2 ms. --- 10.0.4.3 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. round-trip min/avg/max = 2/2/6 ms [R1]ping 10.0.4.4. PING 10.0.4.4: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out. Le. Request time out. --- 10.0.4.4 ping statistics --5 packet(s) transmitted 0 packet(s) received 100.00% packet loss. You may wish to also try between R1 and S3, and between R3 and S4.. HC Series. HUAWEI TECHNOLOGIES. Page15.
(25) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Step 6 Configure a hybrid interface. Use the hybrid port link type to allow VLAN tagging to be closely managed at a port interface level. We shall use hybrid ports to allow tagged frames from VLAN 4 to be received by VLAN 2 and vice versa. Set the port link type of port interface Gigabit Ethernet 0/0/1 of port S1 and the interfaces Gigabit Ethernet 0/0/3 and 0/0/24 of S2 as hybrid ports. Additionally set the hybrid ports to untag all frames associated with VLAN 2 and 4. [S1]interface GigabitEthernet 0/0/1 [S1-GigabitEthernet0/0/1]undo port default vlan [S1-GigabitEthernet0/0/1]port link-type hybrid. u h . g n. [S1-GigabitEthernet0/0/1]port hybrid untagged vlan 2 4 [S1-GigabitEthernet0/0/1]port hybrid pvid vlan 4. i e aw. i n ar. [S2]interface GigabitEthernet 0/0/3 [S2-GigabitEthernet0/0/3]undo port default vlan. e l //. [S2-GigabitEthernet0/0/3]port link-type hybrid. [S2-GigabitEthernet0/0/3]port hybrid untagged vlan 2 4 [S2-GigabitEthernet0/0/3]port hybrid pvid vlan 4. : p tt. [S2-GigabitEthernet0/0/3]quit [S2]interface GigabitEthernet 0/0/24. h. [S2-GigabitEthernet0/0/24]undo port default vlan [S2-GigabitEthernet0/0/24]port link-type hybrid. : s e. [S2-GigabitEthernet0/0/24]port hybrid untagged vlan 2 4. c r u vlan command will ensure frames received from the The port hybrid pvid o s the appropriate VLAN tag. Frames received from VLAN 2 host are tagged with e or 4 will be untagged R at the interface before being forwarded to the host. g n Usei the ping command to verify that R3 in VLAN 4 is still reachable. n ar [S2-GigabitEthernet0/0/24]port hybrid pvid vlan 2. Le. <R1>ping 10.0.4.3. PING 10.0.4.3: 56 data bytes, press CTRL_C to break Reply from 10.0.4.3: bytes=56 Sequence=1 ttl=255 time=1 ms Reply from 10.0.4.3: bytes=56 Sequence=2 ttl=255 time=1 ms Reply from 10.0.4.3: bytes=56 Sequence=3 ttl=255 time=1 ms Reply from 10.0.4.3: bytes=56 Sequence=4 ttl=255 time=10 ms Reply from 10.0.4.3: bytes=56 Sequence=5 ttl=255 time=1 ms. Page16. HUAWEI TECHNOLOGIES. HC Series. o c .. e / m.
(26) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. --- 10.0.4.3 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/2/10 ms. Use the ping command to test whether S4 in VLAN 2 is now reachable from R1 in VLAN 4.. o c .. <R1>ping 10.0.4.4 PING 10.0.4.4: 56 data bytes, press CTRL_C to break Reply from 10.0.4.4: bytes=56 Sequence=1 ttl=255 time=41 ms Reply from 10.0.4.4: bytes=56 Sequence=2 ttl=254 time=2 ms. u h . g n. Reply from 10.0.4.4: bytes=56 Sequence=3 ttl=254 time=3 ms Reply from 10.0.4.4: bytes=56 Sequence=4 ttl=254 time=2 ms Reply from 10.0.4.4: bytes=56 Sequence=5 ttl=254 time=2 ms. 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. i e aw. i n ar. --- 10.0.4.4 ping statistics ---. e l //. : p toriginating from VLAN 4 are now able In using the hybrid port link type, frames t h whilst still being unable to reach the to be received by VLAN 2 and vice versa, host address of 10.0.4.2 in VLAN :3. s e c r u Final Configuration o s Re g n i n ar round-trip min/avg/max = 2/10/41 ms. [R1]display current-configuration [V200R003C00SPC200] #. sysname R1. Le. #. interface GigabitEthernet0/0/1. ip address 10.0.4.1 255.255.255.0 # return [S3]display current-configuration #. HC Series. HUAWEI TECHNOLOGIES. e / m. Page17.
(27) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. !Software Version V100R006C00SPC800 sysname S3 # interface Vlanif1 ip address 10.0.4.2 255.255.255.0 # interface Ethernet0/0/1. e / m. shutdown. o c .. # interface Ethernet0/0/23 shutdown # return. u h . g n. [S1]display current-configuration #. i n ar. !Software Version V100R006C00SPC800 sysname S1. e l //. # vlan batch 2 to 4 #. : p tt. lacp priority 100 # interface Eth-Trunk1 port link-type trunk. : s e. h. port trunk allow-pass vlan 2 to 4094. c r u o s e R. mode lacp-static #. interface GigabitEthernet0/0/1 port hybrid pvid vlan 4. port hybrid untagged vlan 2 4 #. g n i. interface GigabitEthernet0/0/9. n r a. eth-trunk 1. Le. lacp priority 100 undo negotiation auto speed 100. # interface GigabitEthernet0/0/10 eth-trunk 1 lacp priority 100 undo negotiation auto speed 100. Page18. HUAWEI TECHNOLOGIES. HC Series. i e aw.
(28) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. # interface GigabitEthernet0/0/13 port link-type access port default vlan 3 # return. e / m. [S2]display current-configuration. o c .. # !Software Version V100R006C00SPC800 sysname S2 # vlan batch 2 4. u h . g n. # interface Eth-Trunk1 port link-type trunk. i n ar. port trunk allow-pass vlan 2 to 4094 mode lacp-static. e l //. # interface GigabitEthernet0/0/3 port hybrid pvid vlan 4. : p tt. port hybrid untagged vlan 2 4 # interface GigabitEthernet0/0/9 eth-trunk 1 undo negotiation auto speed 100 #. c r u o s e R. : s e. h. interface GigabitEthernet0/0/10 eth-trunk 1. undo negotiation auto. g n i. speed 100 #. n r a. interface GigabitEthernet0/0/24. Le. port hybrid pvid vlan 2 port hybrid untagged vlan 2 4. # interface NULL0 # user-interface con 0 user-interface vty 0 4 # return. HC Series. HUAWEI TECHNOLOGIES. Page19. i e aw.
(29) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [R3]display current-configuration [V200R003C00SPC200] # sysname R3 # interface GigabitEthernet0/0/2. e / m. ip address 10.0.4.3 255.255.255.0. o c .. # return [S4]display current-configuration #. u h . g n. !Software Version V100R006C00SPC800 sysname S4 #. i n ar. interface Vlanif1 ip address 10.0.4.4 255.255.255.0. e l //. # interface Ethernet0/0/14 shutdown. : p tt. # return. n r a. g n i. c r u o s e R. : s e. h. Le. Page20. HUAWEI TECHNOLOGIES. HC Series. i e aw.
(30) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Lab 1-3 GVRP Configuration Learning Objectives As a result of this lab section, you should achieve the following tasks: . e / m. Configuration of GVRP. Setting of the GVRP registration mode.. o c .. Topology. u h . g n. i e aw. i n ar. e l //. : p tt. h. Figure 1.3 GVRP topology. : s e. c r u contains multiple switches which are expected to be The enterprise network o s VLANs are required to be applied and removed as regularly managed. e Rall switches however this tends to be a laborious task for the necessary on administrator and often configuration mistakes occur due to human error. The g n administrator wishes to simplify the VLAN management process and has i n that GVRP be enabled on all switchs and the registration mode on requested r a the interfaces be set. Scenario. Le. HC Series. HUAWEI TECHNOLOGIES. Page21.
(31) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Tasks Step 1 Preparing the environment If you are starting this section with a non-configured device, begin here and then move to step 3. For those continuing from previous labs, begin at step 2. [Quidway]sysname S1 [S1]interface GigabitEthernet 0/0/9 [S1-GigabitEthernet0/0/9]shutdown [S1-GigabitEthernet0/0/9]quit. u h . g n. [S1]interface GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]shutdown. [Quidway]sysname S2. e l //. [S2]interface GigabitEthernet 0/0/9 [S2-GigabitEthernet0/0/9]shutdown [S2-GigabitEthernet0/0/9]quit. : p tt. [S2]interface GigabitEthernet 0/0/10 [S2-GigabitEthernet0/0/10]shutdown. [Quidway]sysname S3. c r u o s e R. [S3-Ethernet0/0/23]shutdown. : s e. i e aw. i n ar. <Quidway>system-view. <Quidway>system-view. h. <Quidway>system-view [Quidway]sysname S4. [S4-Ethernet0/0/14]shutdown. g n Stepi2 Clean up the previous configuration n r a Remove the unsed VLANs and disable the Eth-Trunk interface on S1 and S2.. Le. Remove Vlanif1 on S3 and S4 and bring up interface Ethernet 0/0/1 on S3. [S1]undo vlan batch 2 to 4 Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done. [S1]interface Eth-Trunk 1 [S1-Eth-Trunk1]shutdown. Page22. e / m. o c .. <Quidway>system-view. HUAWEI TECHNOLOGIES. HC Series.
(32) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S2]undo vlan batch 2 to 4 Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done. [S2]interface Eth-Trunk 1 [S2-Eth-Trunk1]shutdown [S2-Eth-Trunk1]quit [S2]interface GigabitEthernet 0/0/24. e / m. [S2-GigabitEthernet0/0/24]undo port hybrid vlan 2 4. o c .. [S3]interface Ethernet 0/0/1 [S3-Ethernet0/0/1]undo shutdown [S3-Ethernet0/0/1]quit [S3]undo interface Vlanif 1. u h . g n. i e aw. Info: This operation may take a few seconds. Please wait for a moment...succeeded. [S4]undo interface Vlanif 1. i n r a Step 3 Configure trunk links between the switches. e l / / : p t t h : s e c r u o s Re g n i n ar. Info: This operation may take a few seconds. Please wait for a moment...succeeded.. [S1]interface GigabitEthernet 0/0/13. [S1-Gigabitethernet0/0/13]port link-type trunk. [S1-Gigabitethernet0/0/13]port trunk allow-pass vlan all [S3]interface Ethernet 0/0/13. [S3-Ethernet0/0/13]port link-type trunk. [S3-Ethernet0/0/13]port trunk allow-pass vlan all. [S3-Ethernet0/0/13]quit. [S3]interface Ethernet 0/0/1. [S3-Ethernet0/0/1]port link-type trunk. [S3-Ethernet0/0/1]port trunk allow-pass vlan all [S2]interface GigabitEthernet 0/0/24. [S2-Gigabitethernet0/0/24]port link-type trunk. Le. [S2-Gigabitethernet0/0/24]port trunk allow-pass vlan all [S4]interface Ethernet 0/0/24 [S4-Ethernet0/0/24]port link-type trunk [S4-Ethernet0/0/24]port trunk allow-pass vlan all [S4-Ethernet0/0/24]quit [S4]interface Ethernet 0/0/1 [S4-Ethernet0/0/1]port link-type trunk [S4-Ethernet0/0/1]port trunk allow-pass vlan all. HC Series. HUAWEI TECHNOLOGIES. Page23.
(33) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Step 1 Enable GVRP globally, and on all relevant interfaces. [S1]gvrp [S1]interface GigabitEthernet 0/0/13 [S1-GigabitEthernet0/0/13]gvrp. e / m. [S3]gvrp [S3]interface Ethernet 0/0/13. o c .. [S3-Ethernet0/0/13]gvrp [S3-Ethernet0/0/13]quit [S3]interface Ethernet 0/0/1 [S3-Ethernet0/0/1]gvrp. u h . g n. [S2]gvrp [S2]interface GigabitEthernet 0/0/24. i e aw. i n ar. [S2-Gigabitethernet0/0/24]gvrp [S4]gvrp. e l //. [S4]interface Ethernet0/0/24 [S4-Ethernet0/0/24]gvrp. : p tt. [S4-Ethernet0/0/24]quit [S4]interface Ethernet 0/0/1 [S4-Ethernet0/0/1]gvrp. : s e. h. Create VLAN 100 on S1, VLAN 200 on S2 and VLAN 2 on S1, S2, S3 and S4.. c r u o s e R. [S1]vlan batch 2 100 [S2]vlan batch 2 200 [S3]vlan 2 [S4]vlan 2. g n i. Run the display gvrp statistics command on S3 and S4 to view the GVRP statistics.. n r a. [S3]display gvrp statistics. Le. GVRP statistics on port Ethernet0/0/1 GVRP status. : Enabled. GVRP registrations failed. : 0. GVRP last PDU origin. : 5489-98ec-f012. GVRP registration type. : Normal. GVRP statistics on port Ethernet0/0/13 GVRP status. Page24. : Enabled. HUAWEI TECHNOLOGIES. HC Series.
(34) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. GVRP registrations failed. : 0. GVRP last PDU origin. : 4c1f-cc45-aace. GVRP registration type. : Normal. [S4]display gvrp statistics GVRP statistics on port Ethernet0/0/1 GVRP status. : Enabled. GVRP registrations failed. : 0. GVRP last PDU origin. : 781d-ba99-d977. GVRP registration type. : Normal. e / m. o c .. GVRP statistics on port Ethernet0/0/24 GVRP status. : Enabled. GVRP registrations failed. : 0. GVRP last PDU origin. : 4c1f-cc45-aacc. GVRP registration type. : Normal. u h . g n. i e aw. i n ar. The registration type is set as normal by default. Use the display vlan command to verify the VLAN configuration on S3 and S4.. e l //. [S3]display vlan. : p tt. The total number of vlans is : 4. ---------------------------------------------------------------------------U: Up;. D: Down;. MP: Vlan-mapping;. TG: Tagged;. h. UT: Untagged;. ST: Vlan-stacking;. : s e. #: ProtocolTransparent-vlan;. *: Management-vlan;. ---------------------------------------------------------------------------VID Type. c r u o s e R. Ports. ---------------------------------------------------------------------------1. common. ng. ni. L. r a e 2. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(U). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(D). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). TG:Eth0/0/1(U) Eth0/0/13(U). 100 dynamic TG:Eth0/0/13(U) 200 dynamic TG:Eth0/0/1(U) …output omitted…. HC Series. HUAWEI TECHNOLOGIES. Page25.
(35) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S4]display vlan The total number of vlans is : 4 ---------------------------------------------------------------------------U: Up;. D: Down;. TG: Tagged;. MP: Vlan-mapping;. UT: Untagged;. ST: Vlan-stacking;. #: ProtocolTransparent-vlan;. *: Management-vlan;. ---------------------------------------------------------------------------VID Type. o c .. ---------------------------------------------------------------------------1. 2. common. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(D). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(U). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). TG:Eth0/0/1(U) Eth0/0/24(U). 100 dynamic TG:Eth0/0/1(U). u h . g n. i e aw. i n ar. e l S3 and S4 are learning VLAN 100 and VLAN 200/ dynamically, but only in one / direction. VLAN 2 has been statically defined. Create VLAN 200 on S1 and : p VLAN 100 on S2 to enable 2-way propagation. t t h :to verify the configuration. s Run the display vlan command e c r u o s Re g n i n ar 200 dynamic TG:Eth0/0/24(U) …output omitted…. [S1]vlan 200. [S2]vlan 100. [S3]display vlan. …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. common. Le. 2. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(U). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(D). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). TG:Eth0/0/1(U) Eth0/0/13(U). 100 dynamic TG:Eth0/0/1(U) Eth0/0/13(U) 200 dynamic TG:Eth0/0/1(U) Eth0/0/13(U) …output omitted…. Page26. e / m. Ports. HUAWEI TECHNOLOGIES. HC Series.
(36) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S4]display vlan …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. 2. common. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(D). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(U). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). TG:Eth0/0/1(U) Eth0/0/24(U). 100 dynamic TG:Eth0/0/1(U) Eth0/0/24(U). e / m. i e aw. u h . g n added to The highlighted entries indicate the interfaces that have been i n VLAN100 and VLAN200 on both S3 and S4. r ea Step 2 Change the registration type for thelinterfaces / / Change the registration type of Ethernet 0/0/1:on S3 to fixed. The same steps p can be performed on Ethernet 0/0/1 of S4. t ht : s e command on S3 and S4 to view the changes. c Run the display gvrp statistics r u o s Re g n i n ar 200 dynamic TG:Eth0/0/1(U) Eth0/0/24(U). …output omitted…. [S3]interface Ethernet 0/0/1. [S3-Ethernet0/0/1]gvrp registration fixed. [S3]display gvrp statistics interface Ethernet 0/0/1 GVRP statistics on port Ethernet0/0/1. Le. GVRP status. : Enabled. GVRP registrations failed. : 12. GVRP last PDU origin. : 5489-98ec-f012. GVRP registration type. : Fixed. The GVRP registration type is verified as fixed on Ethernet 0/0/1 interface. Dynamic VLANs are not allowed to register on this interface.. HC Series. HUAWEI TECHNOLOGIES. Page27. o c ..
(37) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Run the display vlan command to view the effect of the fixed registration type. [S3]display vlan …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. 2. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(U). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(D). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). common TG:Eth0/0/1(U). u h . g n. Eth0/0/13(U). 100 dynamic TG:Eth0/0/13(U) 200 dynamic TG:Eth0/0/13(U). e / m. i e aw. i n ar. The highlighted entries show that interface Ethernet 0/0/1 is not in registering dynamic VLANs 100 and 200.. e l //. Configure interface Ethernet 0/0/1 of S3 to use the forbidden registration type. The same steps can be performed on Ethernet 0/0/1 of S4.. : p tt. [S3]interface Ethernet 0/0/1. [S3-Ethernet0/0/1]gvrp registration forbidden. : s e. h. Run the display gvrp statistics command to view the changes to GVRP.. c r u o s e R. [S3]display gvrp statistics interface Ethernet 0/0/1 GVRP statistics on port Ethernet0/0/1 GVRP status. : Enabled. GVRP registrations failed. : 18. ng. GVRP last PDU origin. : 5489-98ec-f012. i n rThe GVRP registration type is set to forbidden on the Ethernet 0/0/1 interface. GVRP registration type. : Forbidden. a e L. Page28. HUAWEI TECHNOLOGIES. HC Series. o c ..
(38) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Run the display vlan command to view the effect of the forbidden registration. [S3]display vlan The total number of vlans is : 4 …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. 2. common. common. UT:Eth0/0/1(U) Eth0/0/2(D). Eth0/0/3(D). Eth0/0/4(D). Eth0/0/5(D). Eth0/0/6(D). Eth0/0/7(D). Eth0/0/8(D). Eth0/0/9(D). Eth0/0/10(D). Eth0/0/11(D). Eth0/0/12(D). Eth0/0/13(U). Eth0/0/14(D). Eth0/0/15(D). Eth0/0/16(D). Eth0/0/17(D). Eth0/0/18(D). Eth0/0/19(D). Eth0/0/20(D). Eth0/0/21(D). Eth0/0/22(D). Eth0/0/23(D). Eth0/0/24(D). GE0/0/1(D). GE0/0/2(D). GE0/0/3(D). GE0/0/4(D). TG:Eth0/0/13(U). 100 dynamic TG:Eth0/0/13(U). u h . g n. e / m. i e aw. i n Forbidden mode only allows VLAN1 pass over interfacerEthernet 0/0/1, all a other VLANS are restricted. e l / / Final Configuration : p t ht : s e c r u o s Re g n i n ar 200 dynamic TG:Eth0/0/13(U). [S1]dis current-configuration #. !Software Version V100R006C00SPC800 sysname S1. #. vlan batch 2 100 200. #. gvrp. #. interface Eth-Trunk1 shutdown. Le. port link-type trunk. port trunk allow-pass vlan 2 to 4094. mode lacp-static # interface GigabitEthernet0/0/1 port hybrid untagged vlan 2 4 # interface GigabitEthernet0/0/9 shutdown. HC Series. HUAWEI TECHNOLOGIES. Page29. o c ..
(39) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. eth-trunk 1 lacp priority 100 undo negotiation auto speed 100 # interface GigabitEthernet0/0/10 shutdown. e / m. eth-trunk 1. o c .. lacp priority 100 undo negotiation auto speed 100 # interface GigabitEthernet0/0/13. u h . g n. port link-type trunk port trunk allow-pass vlan 2 to 4094 gvrp. i n ar. # return. e l //. [S2]dis current-configuration #. : p tt. !Software Version V100R006C00SPC800 sysname S2 # vlan batch 2 100 200 # gvrp #. c r u o s e R. : s e. h. interface Eth-Trunk1 shutdown. port link-type trunk. g n i. port trunk allow-pass vlan 2 to 4094 mode lacp-static. n r a #. Le. interface GigabitEthernet0/0/3 port hybrid untagged vlan 2 4. # interface GigabitEthernet0/0/9 shutdown eth-trunk 1 undo negotiation auto speed 100 #. Page30. HUAWEI TECHNOLOGIES. HC Series. i e aw.
(40) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. interface GigabitEthernet0/0/10 shutdown eth-trunk 1 undo negotiation auto speed 100 # interface GigabitEthernet0/0/24. e / m. port link-type trunk. o c .. port trunk allow-pass vlan 2 to 4094 gvrp # return. u h . g n. [S3]display current-configuration # !Software Version V100R006C00SPC800. i n ar. sysname S3 #. e l //. vlan batch 2 # gvrp. : p tt. # interface Ethernet0/0/1 port link-type trunk. h. port trunk allow-pass vlan 2 to 4094 gvrp. c r u o s e R. : s e. gvrp registration forbidden #. interface Ethernet0/0/13 port link-type trunk. port trunk allow-pass vlan 2 to 4094. g n i. gvrp #. n r a. interface Ethernet0/0/23. Le. shutdown. #. return [S4]display current-configuration # !Software Version V100R006C00SPC800 sysname S4 #. HC Series. HUAWEI TECHNOLOGIES. Page31. i e aw.
(41) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. vlan batch 2 # gvrp # interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 2 to 4094. e / m. gvrp. o c .. gvrp registration forbidden # interface Ethernet0/0/14 shutdown #. u h . g n. interface Ethernet0/0/24 port link-type trunk port trunk allow-pass vlan 2 to 4094. i n ar. gvrp #. e l //. return. n r a. g n i. c r u o s e R. : s e. : p tt. h. Le. Page32. HUAWEI TECHNOLOGIES. HC Series. i e aw.
(42) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Lab 1-4 VLAN Routing Learning Objectives As a result of this lab section, you should achieve the following tasks: . Establishment of a trunk inteface for VLAN routing. Configuration of sub-interfaces on a single physical interface. Enabling of ARP messages to be broadcast between VLANS.. Topology. u h . g n. e / m. i e aw. i n ar. e l //. g n i. c r u o s e R. : s e. : p tt. h. Figure 1.4 VLAN routing topology using a layer 2 switch.. n r a Scenario. Le. The implementation of VLANs in the enterprise network has resulted in groups of users being isolated from other users that are part of different subnets. As the network administrator you have been given the task to ensure that the broadcast domains are maintained whilst allowing communication between the disparate users.. HC Series. HUAWEI TECHNOLOGIES. Page33. o c ..
(43) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Tasks Step 1 Preparing the environment. If you are starting this section with a non-configured device, begin here and then move to step 3. For those continuing from previous labs, begin at step 2. Configure the system name for R1, R3 and S1. Configure the IP address 10.0.4.1/24 on interface Gigabit Ethernet 0/0/1. <Huawei>system-view. u h . g n. Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 [R1]interface GigabitEthernet 0/0/1. i n ar. [R1-GigabitEthernet0/0/1]ip address 10.0.4.1 24 <Huawei>system-view. i e aw. e l //. Enter system view, return user view with Ctrl+Z. [Huawei]sysname R3. : p tt. <Quidway>system-view [Quidway]sysname S1. : s e. h. Step 2 Clean up the previous configuration. c r u o s e R. Remove the IP address 10.0.4.3 from R3, and disable the swich interfaces between S1 and S3 and S2 and S4 respectively. [R3]interface GigabitEthernet 0/0/2. g n i. [R3-GigabitEthernet0/0/2]undo ip address. Le. n r a. [S1]undo gvrp Warning: All information about the GVRP will be deleted . Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done. [S1]interface GigabitEthernet 0/0/13 [S1-GigabitEthernet0/0/13]undo port trunk allow-pass vlan 2 to 4094 [S1-GigabitEthernet0/0/13]shutdown [S1-GigabitEthernet0/0/13]quit [S1]interface GigabitEthernet 0/0/1. Page34. HUAWEI TECHNOLOGIES. HC Series. o c .. e / m.
(44) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S1-GigabitEthernet0/0/1]undo port hybrid vlan 2 4 [S1-GigabitEthernet0/0/1]quit [S1]undo vlan batch 2 100 200 Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done. [S2]undo gvrp. e / m. Warning: All information about the GVRP will be deleted . Continue?[Y/N]:y. o c .. Info: This operation may take a few seconds. Please wait for a moment...done. [S2]interface GigabitEthernet 0/0/24 [S2-GigabitEthernet0/0/24]undo port trunk allow-pass vlan 2 to 4094 [S2-GigabitEthernet0/0/24]shutdown [S2-GigabitEthernet0/0/24]quit. u h . g n. [S2]interface GigabitEthernet 0/0/3 [S2-GigabitEthernet0/0/3]undo port hybrid vlan 2 4 [S2-GigabitEthernet0/0/3]quit. i e aw. i n ar. [S2]undo vlan batch 2 100 200. Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y. e l //. Info: This operation may take a few seconds. Please wait for a moment...done. [S3]undo gvrp. : p tt. Warning: All information about the GVRP will be deleted . Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done. [S3]interface Ethernet 0/0/13. h. [S3-Ethernet0/0/13]undo port trunk allow-pass vlan 2 to 4094. : s e. [S3-Ethernet0/0/13]port link-type hybrid. c r u o s e R. [S3-Ethernet0/0/13]quit. [S3]interface Ethernet 0/0/1. [S3-Ethernet0/0/1]undo port trunk allow-pass vlan 2 to 4094 [S3-Ethernet0/0/1]quit [S3]undo vlan 2. g n i. [S4]undo gvrp. n r a. Warning: All information about the GVRP will be deleted . Continue?[Y/N]:y. Le. Info: This operation may take a few seconds. Please wait for a moment...done. [S4]interface Ethernet 0/0/24 [S4-Ethernet0/0/24]undo port trunk allow-pass vlan 2 to 4094. [S4-Ethernet0/0/24]port link-type hybrid [S4-Ethernet0/0/24]quit [S4]interface Ethernet 0/0/1 [S4-Ethernet0/0/1]undo port trunk allow-pass vlan 2 to 4094 [S4-Ethernet0/0/1]quit [S4]undo vlan 2. HC Series. HUAWEI TECHNOLOGIES. Page35.
(45) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Step 3 Configure an IP address for R3 Configure an IP address in the 10.0.8.0/24 network range on R1 interface Gigabit Ethetnet 0/0/1 [R3]interface GigabitEthernet 0/0/1. e / m. [R3-GigabitEthernet0/0/1]ip address 10.0.8.1 24. o c .. Step 4 Establish two VLANs. i e aw. Create VLANs 4 and 8 on S1, configure interface Gigabit Ethernet 0/0/1 to belong to VLAN 4, and interface Gigabit Ethernet 0/0/3 to belong to VLAN 8.. u h . g n. [S1]vlan batch 4 8. Info: This operation may take a few seconds. Please wait for a moment...done.. i n ar. [S1]interface GigabitEthernet 0/0/1 [S1-GigabitEthernet0/0/1]port link-type access [S1-GigabitEthernet0/0/1]port default vlan 4. e l //. [S1-GigabitEthernet0/0/1]quit [S1]interface GigabitEthernet0/0/3. : p tt. [S1-GigabitEthernet0/0/3]port link-type access [S1-GigabitEthernet0/0/3]port default vlan 8 [S1-GigabitEthernet0/0/3]quit. h Set interface Gigabit Ethernet 0/0/2 : as a trunk link for VLANs 4 and 8. s e c r u o s e R Step 5 Configure VLAN routing through the sub-interface of R2 g n i sub-interfaces GigabitEthernet0/0/1.1 and GigabitEthernet0/0/1.3, Configure n arto act as the gateway of VLAN 4, and act as the gateway of VLAN 8. [S1]interface GigabitEthernet0/0/2. [S1-GigabitEthernet0/0/2]port link-type trunk. [S1-GigabitEthernet0/0/2]port trunk allow-pass vlan 4 8. Le. <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname R2 [R2]interface GigabitEthernet0/0/1.1 [R2-GigabitEthernet0/0/1.1]ip address 10.0.4.254 24 [R2-GigabitEthernet0/0/1.1]dot1q termination vid 4. Page36. HUAWEI TECHNOLOGIES. HC Series.
(46) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [R2-GigabitEthernet0/0/1.1]arp broadcast enable [R2-GigabitEthernet0/0/1.1]quit [R2]interface GigabitEthernet0/0/1.3 [R2-GigabitEthernet0/0/1.3]ip address 10.0.8.254 24 [R2-GigabitEthernet0/0/1.3]dot1q termination vid 8 [R2-GigabitEthernet0/0/1.3]arp broadcast enable. e / m. Test connectivity between R1 and R3.. o c .. <R1>ping 10.0.8.1 PING 10.0.8.1: 56 data bytes, press CTRL_C to break Request time out Request time out. u h . g n. Request time out Request time out Request time out. i n ar. --- 10.0.8.1 ping statistics ---. e l //. 5 packet(s) transmitted 0 packet(s) received 100.00% packet loss. : p tt. Configure a default route on R1 and R3.. h. [R1]ip route-static 0.0.0.0 0.0.0.0 10.0.4.254. : s e. c r Test connectivity between u R1 and R3 again. o s e R g n i n ar. [R3]ip route-static 0.0.0.0 0.0.0.0 10.0.8.254. <R1>ping 10.0.8.1. PING 10.0.8.1: 56 data bytes, press CTRL_C to break Reply from 10.0.8.1: bytes=56 Sequence=1 ttl=254 time=10 ms Reply from 10.0.8.1: bytes=56 Sequence=2 ttl=254 time=1 ms. Le. Reply from 10.0.8.1: bytes=56 Sequence=3 ttl=254 time=1 ms. Reply from 10.0.8.1: bytes=56 Sequence=4 ttl=254 time=10 ms Reply from 10.0.8.1: bytes=56 Sequence=5 ttl=254 time=1 ms. --- 10.0.8.1 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/4/10 ms. HC Series. HUAWEI TECHNOLOGIES. Page37. i e aw.
(47) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [R2]display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------Routing Tables: Public Destinations : 10. Routes : 10. Destination/Mask Proto Pre. Cost Flags. NextHop. Interface. 10.0.4.0/24. Direct 0. 0. D. 10.0.4.254. GigabitEthernet0/0/1.1. 10.0.4.254/32. Direct 0. 0. D. 127.0.0.1. GigabitEthernet0/0/1.1. 10.0.4.255/32. Direct 0. 0. D. 127.0.0.1. GigabitEthernet0/0/1.1. 10.0.8.0/24. Direct 0. 0. D. 10.0.8.254. GigabitEthernet0/0/1.3. 10.0.8.254/32. Direct 0. 0. D. 127.0.0.1. GigabitEthernet0/0/1.3. 10.0.8.255/32. Direct 0. 0. D. 127.0.0.1. GigabitEthernet0/0/1.3. 127.0.0.0/8. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.0.0.1/32. Direct 0. 0. D. 127.0.0.1. InLoopBack0. 127.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. 255.255.255.255/32 Direct 0. 0. D. 127.0.0.1. InLoopBack0. : p tt. [R1]display current-configuration # sysname R1 #. c r u o s e R. : s e. i n ar. e l //. Final Configuration. [V200R003C00SPC200]. u h . g n. h. interface GigabitEthernet0/0/1. ip address 10.0.4.1 255.255.255.0 #. ip route-static 0.0.0.0 0.0.0.0 10.0.4.254 #. g n i. user-interface con 0. L. ea. rn. authentication-mode password. set authentication password. cipher %$%$dD#}P<HzJ;Xs%X>hOkm!,.+Iq61QK`K6tI}cc-;k_o`C.+L,%$%$. user-interface vty 0 4 # return. Page38. HUAWEI TECHNOLOGIES. HC Series. i e aw. o c .. e / m.
(48) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [R2]display current-configuration [V200R003C00SPC200] # sysname R2 # interface GigabitEthernet0/0/1 #. e / m. interface GigabitEthernet0/0/1.1. o c .. dot1q termination vid 4 ip address 10.0.4.254 255.255.255.0 arp broadcast enable # interface GigabitEthernet0/0/1.3. u h . g n. dot1q termination vid 8 ip address 10.0.8.254 255.255.255.0 arp broadcast enable. i n ar. # user-interface con 0. e l //. authentication-mode password set authentication password. cipher %$%$|nRPL^hr2IXi7LHDID!/,.*%.8%h;3:,hXO2dk#ikaWI.*(,%$%$. : p tt. user-interface vty 0 4 # return. c r u o s e R. : s e. h. [R3]dis current-configuration [V200R003C00SPC200] #. sysname R3 #. g n i. interface GigabitEthernet0/0/1 ip address 10.0.8.1 255.255.255.0. n r a. #. Le. ip route-static 0.0.0.0 0.0.0.0 10.0.8.254 #. user-interface con 0 authentication-mode password set authentication password cipher %$%$W|$)M5D}v@bY^gK\;>QR,.*d;8Mp>|+EU,:~D~8b59~..*g,%$%$ user-interface vty 0 4 # return. HC Series. HUAWEI TECHNOLOGIES. Page39. i e aw.
(49) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S1]display current-configuration # !Software Version V100R006C00SPC800 sysname S1 # vlan batch 4 8 #. e / m. interface GigabitEthernet0/0/1. o c .. port link-type access port default vlan 4 # interface GigabitEthernet0/0/2 port link-type trunk. u h . g n. port trunk allow-pass vlan 4 8 # interface GigabitEthernet0/0/3. i n ar. port link-type access port default vlan 8. e l //. # user-interface con 0 user-interface vty 0 4. : p tt. # return. n r a. g n i. c r u o s e R. : s e. h. Le. Page40. HUAWEI TECHNOLOGIES. HC Series. i e aw.
(50) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Lab 1-5 Configuring Layer 3 Switching Learning Objectives As a result of this lab section, you should achieve the following tasks: . Configuration of VLAN interfaces. Establishment of VLAN routing on a single switch Perform VLAN routing over an Ethernet Trunk link. Perform dynamic routing between VLAN interfaces using OSPF.. Topology. u h . g n. e / m. i e aw. i n ar. e l //. : s e. : p tt. h. c r u o s e Scenario R g of layer three switches into the enterprise network opened up n The introduction i for streamlining the current VLAN routing configuration. The opportunities n arnetwork administrator has been given the task to implement VLAN routing Figure 5.5 Layer 3 switching topology. Le. using only the layer three switches to support communication between the VLANs in the network as displayed in the topology. VLANs should be capable of inter VLAN communication. Additionally S1 and S2 are expected to communicate over a Layer 3 for which routing protocol support is required.. HC Series. HUAWEI TECHNOLOGIES. Page41. o c ..
(51) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Tasks Step 1 Preparing the environment If you are starting this section with a non-configured device, begin here and then move to step 3. For those continuing from previous labs, begin at step 2. Configure R1 with the address 10.0.4.1/24 on interface Gigabit Ethernet 0/0/1. Establish an Eth-Trunk beween S1 an S2. Disable any unnecessary interfaces on S1 and S2 to S3 and S4. <Huawei>system-view. u h . g n. Enter system view, return user view with Ctrl+Z. [Huawei]sysname R1 [R1]interface GigabitEthernet 0/0/1. i n ar. [R1-GigabitEthernet0/0/1]ip address 10.0.4.1 24 <Huawei>system-view. e l //. Enter system view, return user view with Ctrl+Z. [Huawei]sysname R3. : p tt. <Quidway>system-view [Quidway]sysname S1 [S1]interface Eth-Trunk 1. : s e. [S1-Eth-Trunk1]mode lacp-static. h. [S1-Eth-Trunk1]port link-type trunk. c r u o s e R. [S1-Eth-Trunk1]port trunk allow-pass vlan all [S1-Eth-Trunk1]quit. [S1]interface GigabitEthernet 0/0/9 [S1-GigabitEthernet0/0/9]eth-trunk 1 [S1-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10. g n i. [S1-GigabitEthernet0/0/10]eth-trunk 1. n r a. <Quidway>system-view. Le. [Quidway]sysname S2. [S2]interface Eth-Trunk 1 [S2-Eth-Trunk1]mode lacp-static. [S2-Eth-Trunk1]port link-type trunk [S2-Eth-Trunk1]port trunk allow-pass vlan all [S2-Eth-Trunk1]quit [S2]interface GigabitEthernet 0/0/9 [S2-GigabitEthernet0/0/9]eth-trunk 1. Page42. HUAWEI TECHNOLOGIES. HC Series. i e aw. o c .. e / m.
(52) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10 [S2-GigabitEthernet0/0/10]eth-trunk 1 <Quidway>system-view [Quidway]sysname S3 [S3]interface Ethernet 0/0/23 [S3-Ethernet0/0/23]shutdown. e / m. o c .. <Quidway>system-view [Quidway]sysname S4 [S4]interface Ethernet 0/0/14 [S4-Ethernet0/0/14]shutdown. u h . g ndevices. Remove the VLAN routing configuration and sub-interfaces on the i n r a e l / / : p t ht : s e c r u o s Re g n i n ar Step 2 Clean up the previous configuration. i e aw. [R1]undo ip route-static 0.0.0.0 0. [R2]undo interface GigabitEthernet 0/0/1.1 [R2]undo interface GigabitEthernet 0/0/1.3 [R3]interface GigabitEthernet 0/0/1. [R3-GigabitEthernet0/0/1]undo ip address [R3-GigabitEthernet0/0/1]quit. [R3]undo ip route-static 0.0.0.0 0 [S1]undo vlan batch 4 8. Warning: The configurations of the VLAN will be deleted. Continue?[Y/N]:y. Info: This operation may take a few seconds. Please wait for a moment...done. [S1]interface GigabitEthernet 0/0/2. [S1-GigabitEthernet0/0/2]undo port trunk allow-pass vlan 4 8 [S1-GigabitEthernet0/0/2]quit. [S1]interface GigabitEthernet 0/0/13. Le. [S1-GigabitEthernet0/0/13]undo shutdown. [S2]interface GigabitEthernet0/0/24 [S2-GigabitEthernet0/0/24]undo shutdown. HC Series. HUAWEI TECHNOLOGIES. Page43.
(53) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Re-enable the Eth-Trunk interface between S1 and S2 [S1]interface Eth-Trunk 1 [S1-Eth-Trunk1]undo shutdown [S2]interface Eth-Trunk 1 [S2-Eth-Trunk1]undo shutdown. e / m. o c .. Step 3 Configure VLAN 3 through to VLAN 7 for S1 and S2. [S1]vlan batch 3 to 7. i e aw. Info: This operation may take a few seconds. Please wait for a moment...done.. u h . g n. [S2]vlan batch 3 to 7. Info: This operation may take a few seconds. Please wait for a moment...done.. i n ar. Verify that the VLANs have been created.. e l //. [S1]display vlan The total number of vlans is : 6. : p tt. …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. common UT:GE0/0/1(U) GE0/0/5(U). GE0/0/13(D). GE0/0/14(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/21(U). GE0/0/22(U). GE0/0/23(U). GE0/0/24(D). Eth-Trunk1(U). c r u o s e R. 3. common TG:Eth-Trunk1(U). 4. common TG:Eth-Trunk1(U). 6. GE0/0/8(D). common TG:Eth-Trunk1(U). rn 7. g n i. GE0/0/4(U). GE0/0/12(D). GE0/0/15(D). a e L. : s e. GE0/0/3(U). GE0/0/7(D). GE0/0/11(D). 5. h. GE0/0/2(D) GE0/0/6(D). common TG:Eth-Trunk1(U) common TG:Eth-Trunk1(U). …output omitted…. Page44. HUAWEI TECHNOLOGIES. HC Series.
(54) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. [S2]display vlan The total number of vlans is : 6 …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. common UT:GE0/0/1(U). GE0/0/2(D). GE0/0/3(U). GE0/0/4(U). GE0/0/5(U). GE0/0/6(D). GE0/0/7(D). GE0/0/11(U). GE0/0/12(U). GE0/0/13(U). GE0/0/14(D). GE0/0/15(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/21(D). GE0/0/22(D). GE0/0/23(D). GE0/0/24(D). Eth-Trunk1(U). 3. common TG:Eth-Trunk1(U). 4. common TG:Eth-Trunk1(U). 5. common TG:Eth-Trunk1(U). 6. common TG:Eth-Trunk1(U). 7. common TG:Eth-Trunk1(U). GE0/0/8(D). u h . g n. e / m. i e aw. i n r a Add interfaces Gigabit Ethernet 0/0/1 and 0/0/13 of S1 to VLAN 4 and VLAN 3 e 0/0/3 and G0/0/24 to respectively. For S2, add interfaces Gigabit Ethernet l / VLAN 6 and VLAN 7 respectively. / : p t t h : s e c r u o s Re g n i n ar Step 4 Set the Eth-Trunk link between S1 and S2 with PVID 5.. [S1]interface Eth-Trunk 1. [S1-Eth-Trunk1]port trunk pvid vlan 5 [S1-Eth-Trunk1]quit. [S1]interface GigabitEthernet 0/0/1. [S1-GigabitEthernet0/0/1]port link-type access [S1-GigabitEthernet0/0/1]port default vlan 4. [S1-GigabitEthernet0/0/1]quit. [S1]interface GigabitEthernet 0/0/13. [S1-GigabitEthernet0/0/13]port link-type access. [S1-GigabitEthernet0/0/13]port default vlan 3 [S2]interface Eth-Trunk 1. [S2-Eth-Trunk1]port trunk pvid vlan 5. Le. [S2-Eth-Trunk1]quit. [S2]interface GigabitEthernet 0/0/3 [S2-GigabitEthernet0/0/3]port link-type access [S2-GigabitEthernet0/0/3]port default vlan 6 [S2-GigabitEthernet0/0/3]quit [S2]interface GigabitEthernet 0/0/24 [S2-GigabitEthernet0/0/24]port link-type access [S2-GigabitEthernet0/0/24]port default vlan 7. HC Series. HUAWEI TECHNOLOGIES. Page45. o c ..
(55) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. <S1>display vlan The total number of vlans is : 6 …output omitted… VID Type. Ports. ---------------------------------------------------------------------------1. common UT:GE0/0/2(D). GE0/0/3(U). GE0/0/4(U). GE0/0/5(U). GE0/0/6(D). GE0/0/7(D). GE0/0/8(D). GE0/0/11(D). GE0/0/12(D). GE0/0/14(D). GE0/0/15(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/21(U). GE0/0/22(U). GE0/0/23(U). GE0/0/24(D). Eth-Trunk1(U) 3. common UT:GE0/0/13(U) TG:Eth-Trunk1(U). 4. u h . g n. common UT:GE0/0/1(U) TG:Eth-Trunk1(U). 5. common TG:Eth-Trunk1(U). 6. common TG:Eth-Trunk1(U). 7. common TG:Eth-Trunk1(U). e l //. <S2>display vlan. : p tt. The total number of vlans is : 6 …output omitted… Ports. : s e. h. ---------------------------------------------------------------------------1. c r u o s e R. common UT:GE0/0/1(U) GE0/0/6(D). 3. Le. 5. 6. GE0/0/4(U). GE0/0/5(U). GE0/0/7(D). GE0/0/8(D). GE0/0/11(U). GE0/0/12(U). GE0/0/13(U). GE0/0/14(D). GE0/0/15(D). GE0/0/16(D). GE0/0/17(D). GE0/0/18(D). GE0/0/19(D). GE0/0/20(D). GE0/0/21(D). GE0/0/22(D). GE0/0/23(D). Eth-Trunk1(U). common TG:Eth-Trunk1(U). n r a 4. g n i. GE0/0/2(D). common TG:Eth-Trunk1(U) common TG:Eth-Trunk1(U). common UT:GE0/0/3(U) TG:Eth-Trunk1(U). 7. common UT:GE0/0/24(U) TG:Eth-Trunk1(U). Page46. HUAWEI TECHNOLOGIES. HC Series. o c .. i e aw. i n ar. …output omitted…. VID Type. e / m.
(56) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Step 5 Configure gateway addresses for VLANs on S1 and S2. Configure IP addresses for Vlanif3, Vlanif4, and Vlanif5 on S1, and for Vlanif5, Vlanif6, and Vlanif7 on S2. [S1]interface Vlanif 3. e / m. [S1-Vlanif3]ip address 10.0.3.254 24 [S1-Vlanif3]interface Vlanif 4. o c .. [S1-Vlanif4]ip address 10.0.4.254 24 [S1-Vlanif4]interface Vlanif 5 [S1-Vlanif5]ip address 10.0.5.1 24. u h . g n. [S2]interface Vlanif 5 [S2-Vlanif5]ip address 10.0.5.2 24 [S2-Vlanif5]interface Vlanif 6 [S2-Vlanif6]ip address 10.0.6.254 24 [S2-Vlanif6]interface Vlanif 7 [S2-Vlanif7]ip address 10.0.7.254 24. i n ar. i e aw. e l Step 6 IP addressing and default routes/ for R1, R3, S3 and S4. / : p IP addresses on a switch much be assigned to a Vlanif, where Vlanif1 is a t common (untagged) Vlanif. InterfacestEthernet 0/0/13 of S3 and Ethernet 0/0/24 of S4 should be associatedh with the common VLAN1. R1 should : 10.0.4.1/24. already be configured with the address s e c r u o s Re g n i n ar [R1]ip route-static 0.0.0.0 0.0.0.0 10.0.4.254. [S3]interface Vlanif 1. [S3-Vlanif1]ip address 10.0.3.3 24 [S3-Vlanif1]quit. [S3]ip route-static 0.0.0.0 0.0.0.0 10.0.3.254. Le. [R3]interface GigabitEthernet 0/0/2. [R3-GigabitEthernet0/0/2]ip address 10.0.6.3 24 [R3-GigabitEthernet0/0/2]quit [R3]ip route-static 0.0.0.0 0.0.0.0 10.0.6.254 [S4]interface Vlanif 1 [S4-Vlanif1]ip address 10.0.7.4 24 [S4-Vlanif1]quit [S4]ip route-static 0.0.0.0 0.0.0.0 10.0.7.254. HC Series. HUAWEI TECHNOLOGIES. Page47.
(57) e r Mo. HCNA-HNTD. Chapter 1 Ethernet and VLAN. Step 7 Test connectivity between VLAN 3 and VLAN 4. Test connectivity between S3 and R1. <R1>ping 10.0.3.3 PING 10.0.3.3: 56 data bytes, press CTRL_C to break. e / m. Reply from 10.0.3.3: bytes=56 Sequence=1 ttl=254 time=37 ms Reply from 10.0.3.3: bytes=56 Sequence=2 ttl=253 time=2 ms. o c .. Reply from 10.0.3.3: bytes=56 Sequence=3 ttl=253 time=10 ms Reply from 10.0.3.3: bytes=56 Sequence=4 ttl=253 time=3 ms Reply from 10.0.3.3: bytes=56 Sequence=5 ttl=253 time=2 ms. u h . g n. --- 10.0.3.3 ping statistics --5 packet(s) transmitted 5 packet(s) received 0.00% packet loss. i n ar. round-trip min/avg/max = 2/10/37 ms. e l //. Test connectivity between R3 and R1. <R1>ping 10.0.6.3. i e aw. : p tt. PING 10.0.6.3: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out Request time out. c r u o s e R. : s e. h. --- 10.0.6.3 ping statistics --5 packet(s) transmitted 0 packet(s) received. g n Thei connectivity between R1 and R3 fails. Use the tracert command to n troubleshoot the fault: r a 100.00% packet loss. Le. [R1]tracert 10.0.6.3. traceroute to 10.0.6.3(10.0.6.3), max hops: 30 ,packet length: 40,press CTRL_C to break 1 10.0.4.254 17 ms 2. *. 4 ms 4 ms. * *. Page48. HUAWEI TECHNOLOGIES. HC Series.
Related documents
Named in memory of Conall 6 Fearraigh, a Donegal singer, it was for amhranafocht gan tionlacan nach sean-nos f (unaccompanied singing which is not sean-nos). This was meant to
Run Specification (RunSpec) Input Dataset MOVES Master (MOVES GUI) MOVES Worker Output Database MOVES Execution Database Processed Output.. Input MOVES
Module analysis for multiple-choice responses (MAMCR) was applied to a large sample of Force Concept Inventory (FCI) pretest and post-test responses (N pre ¼ 4509 and N post ¼ 4716)
Consultation with a wide variety of potential stakeholders, including the public, NHS health and information technology professionals, government departments, the Human
The results of the study indicated that caregivers of persons with ASD can benefit from a positive thinking training intervention that will impact their personal and
When a client asks to open a resource, the client is really asking the service “here is the username and password of my user – can I access his resource please?” Our
According to Plantinga’s theory of warrant, as long as the conditions of proper functionalism are met in the case of a certain belief, namely that it is produced by
The research presented in this dissertation consists of two topics. The first part introduces an initial stage of a study based on the effects of lateral oscillations upon