(J1-3) Tianze Information Technology Co., Ltd., DHCP, VLANIF, Eth-Trunk


Module 1 Question Number: J1-3, Network Construction and Configuration of Tianze Information Technology Co., Ltd.

(1)Task description

Tianze Information Co., Ltd.’s business has developed rapidly in recent years, and the number of employees has increased dramatically. The original network can no longer meet the growing needs of business. The company’s senior management asked Xiaohua, the network administrator of the network department, to re-plan and manage the company’s network in a unified manner to improve network performance and enhance security.

Tianze Information Co., Ltd. currently has about 180 hosts, which belong to the Finance Department, Marketing Department, R&D Department, Administration Department and other departments. Due to the large number of users, static IP address allocation will greatly increase the workload of the network administrator. Therefore, a DHCP server was added to dynamically allocate IP. The intranet of Tianze Information Company uses the network segment 172.16.10.0/24. By dividing VLAN, each department is in a separate broadcast domain, and the gateway address uses the last IP address in the subnet.

The topology structure diagram of Tianze Information Company is shown in the figure below:

Now please build the company network. The specific tasks are as follows:

Task 1: Network equipment selection and interconnection (6points)

① Select appropriate network interconnection equipment for networking and use eNSP to complete. (2 minutes)

②Choose appropriate connection cables to connect network devices. (1 point)

③Connect the network cable to each network device interface as needed. Note: GE0/0/1 of LSW1 is connected to GE0/0/1 of LSW2, and GE0/0/2 of LSW1 is connected to GE0/0/2 of LSW2. The GE0/0/3 port of LSW1 is connected to the E0/0/1 port of LSW3. (3 points)

Task 2: Basic switch configuration (9 points)

① Use eNSP to perform basic configuration on LSW1, LSW2, and LSW3. LSW1 is configured with a host name of SWITCH_A, LSW2 is configured with a host name of SWITCH_B, and LSW3 is configured with a host name of SWITCH_C. (6 points)

② Configure the login password of the CONSOLE port on LSW1 to be XYZ. (3 points)

LSW1

[Huawei]sysname SWITCH_A
[SWITCH_A]

LSW2

[Huawei]sysname SWITCH_B
[SWITCH_B]

LSW3

[Huawei]sysname SWITCH_C
[SWITCH_C]

LSW1

[SWITCH_A]user-interface console 0
[SWITCH_A-ui-console0]authentication-mode password
[SWITCH_A-ui-console0]set authentication password cipher XYZ
[SWITCH_A-ui-console0]q
[SWITCH_A]

Task 3: Divisionvlan (31 points)

① According to the requirements, divide vlan on LSW1 and create vlan10, vlan20, vlan30, vlan40. vlan10 is described as caiwubu, vlan20 is described as shichangbu, vlan30 is described as yanfabu, and vlan40 is described as xingzhengbu. (5 points)

[SWITCH_A]vlan 10
[SWITCH_A-vlan10]description caiwubu
[SWITCH_A-vlan10]q
[SWITCH_A]vlan 20
[SWITCH_A-vlan20]description shichangbu
[SWITCH_A-vlan20]q
[SWITCH_A]vlan 30
[SWITCH_A-vlan30]description yanfabu
[SWITCH_A-vlan30]q
[SWITCH_A]vlan 40
[SWITCH_A-vlan40]description xingzhengbu
[SWITCH_A-vlan40]q
[SWITCH_A]

②Create 2 vlans, vlan10 and vlan20 on LSW2. Assign E0/0/5-10 to vlan10 and E0/0/11-15 to vlan20. (12 points)

[SWITCH_B]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B]port-group vlan10
[SWITCH_B-port-group-vlan10]group-member e 0/0/5 to e0/0/10
[SWITCH_B-port-group-vlan10]port link-type access
[SWITCH_B-Ethernet0/0/5]port link-type access
[SWITCH_B-Ethernet0/0/6]port link-type access
[SWITCH_B-Ethernet0/0/7]port link-type access
[SWITCH_B-Ethernet0/0/8]port link-type access
[SWITCH_B-Ethernet0/0/9]port link-type access
[SWITCH_B-Ethernet0/0/10]port link-type access
[SWITCH_B-port-group-vlan10]port default vlan 10
[SWITCH_B-Ethernet0/0/5]port default vlan 10
[SWITCH_B-Ethernet0/0/6]port default vlan 10
[SWITCH_B-Ethernet0/0/7]port default vlan 10
[SWITCH_B-Ethernet0/0/8]port default vlan 10
[SWITCH_B-Ethernet0/0/9]port default vlan 10
[SWITCH_B-Ethernet0/0/10]port default vlan 10
[SWITCH_B-port-group-vlan10]q
[SWITCH_B]port-group vlan20
[SWITCH_B-port-group-vlan20]group-member e0/0/11 to e0/0/15
[SWITCH_B-port-group-vlan20]port link-type access
[SWITCH_B-Ethernet0/0/11]port link-type access
[SWITCH_B-Ethernet0/0/12]port link-type access
[SWITCH_B-Ethernet0/0/13]port link-type access
[SWITCH_B-Ethernet0/0/14]port link-type access
[SWITCH_B-Ethernet0/0/15]port link-type access
[SWITCH_B-port-group-vlan20]port default vlan 20
[SWITCH_B-Ethernet0/0/11]port default vlan 20
[SWITCH_B-Ethernet0/0/12]port default vlan 20
[SWITCH_B-Ethernet0/0/13]port default vlan 20
[SWITCH_B-Ethernet0/0/14]port default vlan 20
[SWITCH_B-Ethernet0/0/15]port default vlan 20
[SWITCH_B-port-group-vlan20]q
[SWITCH_B]

③Create 2 vlans, vlan30 and vlan40 on LSW3. Assign E0/0/5-10 to vlan30 and E0/0/11-15 to vlan40 (12 points)

[SWITCH_C]vlan batch 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_C]port-group vlan30
[SWITCH_C-port-group-vlan30]group-member e 0/0/5 to e0/0/10
[SWITCH_C-port-group-vlan30]port link-type access
[SWITCH_C-Ethernet0/0/5]port link-type access
[SWITCH_C-Ethernet0/0/6]port link-type access
[SWITCH_C-Ethernet0/0/7]port link-type access
[SWITCH_C-Ethernet0/0/8]port link-type access
[SWITCH_C-Ethernet0/0/9]port link-type access
[SWITCH_C-Ethernet0/0/10]port link-type access
[SWITCH_C-port-group-vlan30]port default vlan 30
[SWITCH_C-Ethernet0/0/5]port default vlan 30
[SWITCH_C-Ethernet0/0/6]port default vlan 30
[SWITCH_C-Ethernet0/0/7]port default vlan 30
[SWITCH_C-Ethernet0/0/8]port default vlan 30
[SWITCH_C-Ethernet0/0/9]port default vlan 30
[SWITCH_C-Ethernet0/0/10]port default vlan 30
[SWITCH_C-port-group-vlan30]q
[SWITCH_C]port-group vlan40
[SWITCH_C-port-group-vlan40]group-member e0/0/11 to e0/0/15
[SWITCH_C-port-group-vlan40]port link-type access
[SWITCH_C-Ethernet0/0/11]port link-type access
[SWITCH_C-Ethernet0/0/12]port link-type access
[SWITCH_C-Ethernet0/0/13]port link-type access
[SWITCH_C-Ethernet0/0/14]port link-type access
[SWITCH_C-Ethernet0/0/15]port link-type access
[SWITCH_C-port-group-vlan40]port default vlan 40
[SWITCH_C-Ethernet0/0/11]port default vlan 40
[SWITCH_C-Ethernet0/0/12]port default vlan 40
[SWITCH_C-Ethernet0/0/13]port default vlan 40
[SWITCH_C-Ethernet0/0/14]port default vlan 40
[SWITCH_C-Ethernet0/0/15]port default vlan 40
[SWITCH_C-port-group-vlan40]q
[SWITCH_C]

④Set GE0/0/3 of LSW1 as trunk. (2 minutes)

[SWITCH_A]int g0/0/3
[SWITCH_A-GigabitEthernet0/0/3]port link-type trunk
[SWITCH_A-GigabitEthernet0/0/3]port trunk allow-pass vlan 30 40
[SWITCH_A-GigabitEthernet0/0/3]q
[SWITCH_A]

⑤Set GE0/0/1 of LSW3 as trunk. (2 minutes)

[SWITCH_C]int g0/0/1
[SWITCH_C-GigabitEthernet0/0/1]port link-type trunk
[SWITCH_C-GigabitEthernet0/0/1]port trunk allow-pass vlan 30 40
[SWITCH_C-GigabitEthernet0/0/1]q
[SWITCH_C]

Task 4: Port aggregation (12 points)

① Enable manual load balancing link aggregation on LSW1, add the LSW1 GE0/0/1-2 interface to eth-trunk 0, and set it to TRUNK mode. (6 points)

[SWITCH_A]int eth-trunk 0
[SWITCH_A-Eth-Trunk0]port link-type trunk
[SWITCH_A-Eth-Trunk0]port trunk allow-pass vlan 10 20
[SWITCH_A-Eth-Trunk0]q
[SWITCH_A]int g0/0/1
[SWITCH_A-GigabitEthernet0/0/1]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_A-GigabitEthernet0/0/1]int g0/0/2
[SWITCH_A-GigabitEthernet0/0/2]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_A-GigabitEthernet0/0/2]q
[SWITCH_A]

② Enable manual load balancing link aggregation on LSW2, add the GE0/0/1-2 interface of LSW2 to eth-trunk 0, and set it to TRUNK mode. (6 points)

[SWITCH_B]int eth-trunk 0
[SWITCH_B-Eth-Trunk0]port link-type trunk
[SWITCH_B-Eth-Trunk0]port trunk allow-pass vlan 10 20
[SWITCH_B-Eth-Trunk0]q
[SWITCH_B]int g0/0/1
[SWITCH_B-GigabitEthernet0/0/1]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B-GigabitEthernet0/0/1]int g0/0/2
[SWITCH_B-GigabitEthernet0/0/2]eth-trunk 0
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWITCH_B-GigabitEthernet0/0/2]q
[SWITCH_B]

Task 5: Configure DHCP (22 points)

①Configure the VLANIF IP address on LSW1 (4 points)

[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]ip add 172.16.10.62 26
[SWITCH_A-Vlanif10]q
[SWITCH_A]int vlanif 20
[SWITCH_A-Vlanif20]ip add 172.16.10.126 26
[SWITCH_A-Vlanif20]q
[SWITCH_A]int vlanif 30
[SWITCH_A-Vlanif30]ip add 172.16.10.190 26
[SWITCH_A-Vlanif30]q
[SWITCH_A]int vlanif 40
[SWITCH_A-Vlanif40]ip add 172.16.10.254 26
[SWITCH_A-Vlanif40]q
[SWITCH_A]

②Start the DHCP service on LSW1. Set the address pool name of vlan 10 as caiwu, the address pool of vlan 20 as shichang, the address pool of vlan 30 as yanfa, and the address pool of vlan 40 as xingzheng. Determine the address range for each address pool and assign the corresponding Gateway address. (14 points)

[SWITCH_A]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]description caiwu
[SWITCH_A-Vlanif10]int vlanif 20
[SWITCH_A-Vlanif20]description shichang
[SWITCH_A-Vlanif20]int vlanif 30
[SWITCH_A-Vlanif30]description xingzheng
[SWITCH_A-Vlanif30]q
[SWITCH_A]ip pool vlanif10
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif10]gateway-list 172.16.10.62
[SWITCH_A-ip-pool-vlanif10]network 172.16.10.0 mask 26
[SWITCH_A-ip-pool-vlanif10]quit
[SWITCH_A]int vlanif 10
[SWITCH_A-Vlanif10]dhcp select global
[SWITCH_A-Vlanif10]q
[SWITCH_A]ip pool vlanif20
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif20]gateway-list 172.16.10.126
[SWITCH_A-ip-pool-vlanif20]network 172.16.10.64 mask 26
[SWITCH_A-ip-pool-vlanif20]quit
[SWITCH_A]int vlanif 20
[SWITCH_A-Vlanif20]dhcp select global
[SWITCH_A-Vlanif20]q
[SWITCH_A]ip pool vlanif30
Info:It's successful to create an IP address pool.
[SWITCH_A-ip-pool-vlanif30]gateway-list 172.16.10.190
[SWITCH_A-ip-pool-vlanif30]network 172.16.10.128 mask 26
[SWITCH_A-ip-pool-vlanif30]quit
[SWITCH_A]int vlanif 30
[SWITCH_A-Vlanif30]dhcp select global
[SWITCH_A-Vlanif30]q
[SWITCH_A]ip pool vlanif40
[SWITCH_A-ip-pool-vlanif40]gateway-list 172.16.10.254
[SWITCH_A-ip-pool-vlanif40]network 172.16.10.192 mask 26
[SWITCH_A-ip-pool-vlanif40]quit
[SWITCH_A]int vlanif 40
[SWITCH_A-Vlanif40]dhcp select global
[SWITCH_A-Vlanif40]q
[SWITCH_A]

③Each PC obtains the IP address, gateway and DNS from the DHCP server, and successfully re-obtains it through the ipconfig /renew command; (4 points)