ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

HCIA 复习实验

2021-07-19 19:00:18  阅读:151  来源: 互联网

标签:10.1 R5 复习 R2 ip GigabitEthernet0 HCIA 实验 static


实验要求:

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通信具有冗余性

一、具体拓扑如图所示:

 

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

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]

检查是否满足要求如图: 

 

 

 

 

四、配置静态路由

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]

 五、检查如图:

 

标签:10.1,R5,复习,R2,ip,GigabitEthernet0,HCIA,实验,static
来源: https://blog.csdn.net/weixin_54494152/article/details/118887090

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有