HCIP实验一:IP综合实验

一、实验要求

1、 R6为isp,接口Ip地址均为公有地址;该设备只能配置Ip地址,之后不能再对其进行其他任何配置;
2 、R1-R5为局域网,私有IP地址192.168.1.0/24,请合理分配;
3 、R1,R2,R4,各有两个环回地址;R5,R6各有一个环回地址;所有路由器上环回均代表连接用户的接口;
4 、R3下的两台Pc通过DHCP自动获取Ip地址;选路最佳,路由表尽量小,避免环路; 
5、R1-R5均可以访问R6的环回;
6 、R6telnetR5的公有Ip地址时,实际登陆到R1上;
7 、R4与R5正常通过1000M链路,故障时通过100M链路;

二、实验目的

1、拓扑
2、需求分析
3、配置
4、验证

三、实验步骤

1、拓扑

2、需求分析

(1)子网划分,配置IP地址

首先将192.168.1.0/24划分为(取其6):

 192.168.1.0/27 (骨干)          192.168.1.32/27       192.168.1.64/27       192.168.1.96/27 (R3)

     192.168.1.128/27      192.168.1.160/27 (R5环回)    192.168.1.192/27     192.168.1.224/27 

将192.168.1.0/27用于骨干网段在此进行划分,避免地址浪费,便于管理直接划分为(取其6):

       192.168.1.0/30     192.168.1.4/30      192.168.1.8/30         192.168.1.12/30

       192.168.1.16/30   192.168.1.20/30    192.168.1.24/30       192.168.1.128/30

 将R1,R2 , R4的网段二次划分为两个环回地址:

      R1--192.168.1.32/27:192.168.1.32/28、192.168.1.48/28 

      R2--192.168.1.64/27 :192.168.1.64/28、192.168.1.80/28 

      R4--192.168.1.128/27 :192.168.1.128/28、192.168.1.144/28

(2)分配ip地址

(3)开启DHCP服务

(4)填写缺省路由

(5)NAT(一对多)

(6)配置R1、R2、R3的空缺口,避免环路

(7)R4与R5正常通过1000M链路,故障时通过100M链路

(8)R6telnetR5的共有IP地址时,实际登陆到R1上

3、配置

AR1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1

[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30 
Mar 18 2024 19:30:46-08:00 R1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.1.5 30
Mar 18 2024 19:32:33-08:00 R1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

[R1-GigabitEthernet0/0/1]int loopback0
[R1-LoopBack0]ip address 192.168.1.33 28
[R1-LoopBack0]int loopback1
[R1-LoopBack1]ip address 192.168.1.49 28

AR2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2

[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.1.9 30  
Mar 18 2024 19:42:29-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 g 0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.1.2 30
Mar 18 2024 19:42:46-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 loopback0
[R2-LoopBack0]ip address 192.168.1.65 30
[R2-LoopBack0]int loopback1
[R2-LoopBack1]ip address 192.168.1.81 30

AR3

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3

[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.1.6 30
Mar 18 2024 19:47:03-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 g 0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.1.13 30   
Mar 18 2024 19:47:23-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]int g 0/0/2
[R3-GigabitEthernet0/0/2]ip address 192.168.1.97 27   
Mar 18 2024 19:47:23-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state.

AR4

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R4

[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip address 192.168.1.10 30
Mar 18 2024 19:53:58-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]int g 0/0/1
[R4-GigabitEthernet0/0/1]ip address 192.168.1.14 30
Mar 18 2024 19:54:11-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 g 0/0/2
[R4-GigabitEthernet0/0/2]ip address 192.168.1.17 30
Mar 18 2024 19:54:25-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]int g 4/0/0
[R4-GigabitEthernet4/0/0]ip address 192.168.1.21 30
Mar 18 2024 19:55:12-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 

[R4-GigabitEthernet4/0/0]int loopback0
[R4-LoopBack0]ip address 192.168.1.129 28
[R4-LoopBack0]int loopback1
[R4-LoopBack1]ip address 192.168.1.145 28

AR5

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5

[R5]int g 0/0/0
[R5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
Mar 18 2024 19:58:34-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 g 0/0/1
[R5-GigabitEthernet0/0/1]ip address 12.0.0.1 24
Mar 18 2024 19:59:12-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]int g 0/0/2
[R5-GigabitEthernet0/0/2]ip address 192.168.1.22 30
Mar 18 2024 19:59:33-08:00 R5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 

[R5-GigabitEthernet0/0/2]int loopback0
[R5-LoopBack0]ip address 192.168.1.161 27

AR6

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R6

[R6]int g 0/0/0
[R6-GigabitEthernet0/0/0]ip address 12.0.0.2 24
Mar 18 2024 20:04:58-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

[R6-GigabitEthernet0/0/0]int loopback0
[R6-LoopBack0]ip address 1.1.1.2 24

开启DHCP服务

<R3>sys
Enter system view, return user view with Ctrl+Z.

[R3]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.

[R3]ip pool a
Info: It's successful to create an IP address pool.

[R3-ip-pool-a]network 192.168.1.96 mask 27
[R3-ip-pool-a]gateway-list 192.168.1.97
[R3-ip-pool-a]dns-list 114.114.114.114 8.8.8.8

[R3-ip-pool-a]int g 0/0/0	
[R3-GigabitEthernet0/0/0]dhcp select global 
[R3-GigabitEthernet0/0/0]q

PC1

PC2

关闭百兆接口,简化实验

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g 4/0/0
[R4-GigabitEthernet4/0/0]shutdown
Mar 18 2024 21:55:50-08:00 R4 %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthern
et4/0/0 has turned into DOWN state.
[R4-GigabitEthernet4/0/0]
[R4-GigabitEthernet4/0/0]
Mar 18 2024 21:55:50-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the DOWN state. 
[R4-GigabitEthernet4/0/0]

填写缺省路由

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.8 27 192.168.1.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.1.0/27 was generated.
[R1]ip route-static 192.168.1.8 30 192.168.1.2
[R1]ip route-static 192.168.1.96 27 192.168.1.6
[R1]ip route-static 192.168.1.12 30 192.168.1.6
[R1]ip route-static 0.0.0.0 0 192.168.1.2
[R1]ip route-static 0.0.0.0 0 192.168.1.6

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip route-static 192.168.1.4 30 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.10
[R2]ip route-static 0.0.0.0 0 192.168.1.10

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip route-static 192.168.1.32 27 192.168.1.5
[R3]ip route-static 192.168.1.0 30 192.168.1.5
[R3]ip route-static 192.168.1.64 27 192.168.1.5
[R3]ip route-static 192.168.1.64 27 192.168.1.14
[R3]ip route-static 0.0.0.0 0 192.168.1.14

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]ip route-static 192.168.1.64 27 192.168.1.9
[R4]ip route-static 192.168.1.0 30 192.168.1.9
[R4]ip route-static 192.168.1.32 27 192.168.1.9
[R4]ip route-static 192.168.1.32 27 192.168.1.13
[R4]ip route-static 192.168.1.4 30 192.168.1.13
[R4]ip route-static 192.168.1.96 27 192.168.1.13
[R4]ip route-static 0.0.0.0 0 192.168.1.18
[R4]ip route-static 0.0.0.0 0 192.168.1.22

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]ip route-static 192.168.1.128 27 192.168.1.17
[R5]ip route-static 192.168.1.64 27 192.168.1.17
[R5]ip route-static 192.168.1.32 27 192.168.1.17
[R5]ip route-static 192.168.1.96 27 192.168.1.17
[R5]ip route-static 192.168.1.8 30 192.168.1.17
[R5]ip route-static 192.168.1.0 30 192.168.1.17
[R5]ip route-static 192.168.1.4 30 192.168.1.17
[R5]ip route-static 192.168.1.12 30 192.168.1.17
[R5]ip route-static 0.0.0.0 0 12.0.0.2

NAT

[R5]acl 2000
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R5-acl-basic-2000]int g 0/0/1
[R5-GigabitEthernet0/0/1]nat outbound 2000
[R5-GigabitEthernet0/0/1]q

配置R1、R2、R3的空缺口

[R1]ip route-static 192.168.1.32 27 NULL 0

[R2]ip route-static 192.168.1.64 27 NULL 0

[R3]ip route-static 192.168.1.128 27 NULL 0

R4与R5正常通过1000M链路,故障时通过100M链路

开启百兆接口,将百兆接口的优先级修改为61

[R4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
Info: Succeeded in modifying route.

[R5]ip route-static 192.168.1.0 255.255.255.252 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.4 255.255.255.252 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.8 255.255.255.252 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.12 255.255.255.252 192.168.1.21 preference 61

[R5]ip route-static 192.168.1.32 255.255.255.224 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.64 255.255.255.224 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.96 255.255.255.224 192.168.1.21 preference 61
[R5]ip route-static 192.168.1.128 255.255.255.224 192.168.1.21 preference 61

R6telnetR5的共有IP地址时,实际登陆到R1上

<R1>sys
Enter system view, return user view with Ctrl+Z.

[R1]aaa
[R1-aaa]local-user liuu password cipher 1234
Info: Add a new user.

[R1-aaa]local-user liuu service-type telnet
[R1-aaa]user-interface vty 0 4	
[R1-ui-vty0-4]authentication-mode aaa
[R1-ui-vty0-4]q

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g 0/0/1
[R5-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y

4、验证

  • 6
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1、课程简介 本课程为华为HCNP进阶级资深网络工程师培训课程,学习课程前请先完成CCNA或HCNA课程学习,或有NA同等水平。本课程为本人在机构授课期间现场录制,视频清晰无水印,语音清晰,授课风格有趣。课程主要介绍思科主流的交换技术与路由技术,学习完本课程后你将具有相应的技能水平,能够对中大型企业网络或校园网络的网络架构有更加深入的了解以及各技术所应用场景,清楚技术特点,还能够对中大型企业网或校园网等网络进行设计,维护,故障处理等。在课程最后有综合实验,如果在学习完成后可无需查看资料或课件命令即能完成80%以上的实验需求及功能,则代表你已具有一定的技术水平,可认为你是一名资深级的网络工程师。2、讲师简介 ·         钟海林 | 老钟 | HELY ·         7年IT从业经验,4年网络及安全技术授课经验·         曾负责广州移动DCN网络改造及设计,深圳三诺电子网络改造·         擅长网络技术与安全技术,精通各大厂商网络产品与安全产品·         授课风格风骚有趣,擅长从实践中总结理论知识,不讲废话,直奔主题3、课程目标 掌握思科路由交换技术,包括交换模块的HSRP,MSTP,ARP检测,DHCP检测等技术以及路由技术模块的OSPF,EIGRP,BGP,ISIS协议等。4、课程对象 具有CCNA、HCNA、CCNA认证或具有同等技术水平的人员及其他同级别认证等人员5、课程特色 课程内容精准,知识点精准,不废话,直接干!老师讲课语音清晰,且视频清晰无水印。课程内容没有晦涩难懂的名词及数学公式或逻辑概念等,完全适合零基础,且涉及的知识点通过现实中的一些实例做对比,简化问题。6、课程内容 ·         交换技术:MSTP,HSRP,VRRP,DHCP检测,ARP检测·         路由技术:RIP,OSPF,ISIS,BGP ·         综合实验 7、课程预览 8、了解更多 ·         思科CCNP高级交换课程 https://edu.csdn.net/course/detail/24001·         思科CCNP高级路由课程 https://edu.csdn.net/course/detail/24009·         思科IPS防御系统视频课程 https://edu.csdn.net/course/detail/20392·         思科ASA防火墙视频课程 https://edu.csdn.net/course/detail/20388·         华为防火墙视频课程 https://edu.csdn.net/course/detail/203919、注意事项 ·         本课程仅用于自学,不得用于商业用途·         课程内所讲解技术只能用于模拟环境,若使用在其他环境造成的任何问题本人不负责
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值