HCIA 复习实验

实验要求:

1. 10.1.1.0/24 全网使用该网段分配地址,尽量减少IP地址的使用

2.PC1,PC2所在网段可用地址为30个,网关是该网段最大的地址

3.PC3所在网段可用地址为62个,网关是该网段最大的地址

4.PC1为动态获取地址但是地址是固定地址

5.PC2,PC3为动态获取地址,地址不限

6.PC3去PC1走R5-R4-R1-R2

7.PC3去PC2走R5-R4-R3-R2

8.PC1,PC2去PC3走R1

9.附加题:保证PC3与PC1,5通信具有冗余性

一、具体拓扑如图所示:

HCIA 复习实验

 

 二、给路由器的网关配置相应的地址

R1:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 10.1.1.133 30
Jul 19 2021 17:21:49-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 10.1.1.129 30
Jul 19 2021 17:22:09-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R1-GigabitEthernet0/0/1]
R2:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 10.1.1.134 30
[R2-GigabitEthernet0/0/0]
Jul 19 2021 17:22:50-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 10.1.1.126 27
Jul 19 2021 17:30:07-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R2-GigabitEthernet0/0/2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 10.1.1.137 30
Jul 19 2021 17:30:25-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]int g2/0/0
[R2-GigabitEthernet2/0/0]ip add 10.1.1.94 27
Jul 19 2021 17:30:42-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet2/0/0 has entered the UP state. 
[R2-GigabitEthernet2/0/0]
R3:

<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 10.1.1.138 30
Jul 19 2021 17:57:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 10.1.1.141 30
Jul 19 2021 17:57:35-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]
R4:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 10.1.1.130 30
Jul 19 2021 17:33:16-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 10.1.1.142 30
Jul 19 2021 17:33:30-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 10.1.1.145 30
[R4-GigabitEthernet0/0/2]
Jul 19 2021 17:33:44-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]
R5:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R5
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 10.1.1.146 30
[R5-GigabitEthernet0/0/0]
Jul 19 2021 17:34:57-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 10.1.1.62 26
Jul 19 2021 17:35:10-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/1]

三、通过dhcp为PC1,PC2,PC3动态获取地址,并且PC1地址为固定地址,PC3可用地址只有60个

R2:

给PC1动态获取地址但是有固定地址

[R2]dhcp enable
[R2]ip pool A
Info: It's successful to create an IP address pool.
[R2-ip-pool-A]network 10.1.1.96 mask 27
[R2-ip-pool-A]gateway-list 10.1.1.126	
[R2-ip-pool-A]dns-list 8.8.8.8
[R2-ip-pool-A]static-bind ip-address 10.1.1.98 mac-address 5489-9870-1DB6
[R2-ip-pool-A]int g0/0/2
[R2-GigabitEthernet0/0/2]dhcp select global 
[R2-GigabitEthernet0/0/2]




给PC2动态获取地址

[R2]dhcp enable 
[R2]ip pool B
Info: It's successful to create an IP address pool.
[R2-ip-pool-B]network 10.1.1.64 mask 27
[R2-ip-pool-B]gateway-list 10.1.1.94
[R2-ip-pool-B]dns-list 8.8.8.8
[R2-ip-pool-B]int g2/0/0
[R2-GigabitEthernet2/0/0]dhcp select global 
[R2-GigabitEthernet2/0/0]
R5:


<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[R5]dhcp enable
[R5]ip pool C
Info: It's successful to create an IP address pool.
[R5-ip-pool-C]network 10.1.1.0 mask 26
[R5-ip-pool-C]gateway-list 10.1.1.62
[R5-ip-pool-C]dns-list 8.8.8.8
[R5-ip-pool-C]q
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]dhcp  select global 
[R5-GigabitEthernet0/0/1]

检查是否满足要求如图: 

HCIA 复习实验 

 HCIA 复习实验

 

HCIA 复习实验

 

四、配置静态路由

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip route-static 10.1.1.96 27 10.1.1.134
[R1]ip route-static 10.1.1.64 27 10.1.1.134
[R1]ip route-static 10.1.1.136 30 10.1.1.13
[R1]ip route-static 10.1.1.140 30 10.1.1.130
[R1]ip route-static 10.1.1.144 30 10.1.1.130
[R1]ip route-static 10.1.1.0 26 10.1.1.130
[R1]
R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 10.1.1.140 30 10.1.1.138
[R2]ip route-static 10.1.1.128 30 10.1.1.133
[R2]ip route-static 10.1.1.144 30 10.1.1.133
[R2]ip route-static 10.1.1.144 30 10.1.1.138
[R2]ip route-static 10.1.1.0 26 10.1.1.138
[R2]ip route-static 10.1.1.0 26 10.1.1.133
[R2]
R3:

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip route-static 10.1.1.128 30 10.1.1.142
[R3]ip route-static 10.1.1.132 30 10.1.1.137
[R3]ip route-static 10.1.1.64 27 10.1.1.137
[R3]ip route-static 10.1.1.96 27 10.1.1.137
[R3]ip route-static 10.1.1.144 30 10.1.1.142
[R3]ip route-static 10.1.1.0 26 10.1.1.142
[R3]
R4:

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip route-static 10.1.1.0 26 10.1.1.146
[R4]ip route-static 10.1.1.132 30 10.1.1.129
[R4]ip route-static 10.1.1.96 27 10.1.1.129
[R4]ip route-static 10.1.1.96 27 10.1.1.141
[R4]ip route-static 10.1.1.64 27 10.1.1.141
[R4]ip route-static 10.1.1.64 27 10.1.1.129
[R4]ip route-static 10.1.1.136 30 10.1.1.141
[R4]
R5:

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 10.1.1.128 30 10.1.1.145
[R5]ip route-static 10.1.1.132 30 10.1.1.145
[R5]ip route-static 10.1.1.96 27 10.1.1.145
[R5]ip route-static 10.1.1.64 27 10.1.1.145
[R5]ip route-static 10.1.1.136 30 10.1.1.14
[R5]ip route-static 10.1.1.140 30 10.1.1.145
[R5]

 五、检查如图:

HCIA 复习实验

HCIA 复习实验 

上一篇:【网工收藏必备】VLAN实验之单臂路由完整版


下一篇:IP复习静态实验