当前位置:网站首页>HCIA static basic experiment 7.8
HCIA static basic experiment 7.8
2022-07-19 10:24:00 【enkh amgahan 】
One 、 Build topology
stay ensp Build topology on 
Two 、 By manually adding pc To configure IP
1、 Configure the router ip
r1
The device is running!
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
Jul 8 2022 20:16:08-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 192.168.2.1 24
Jul 8 2022 20:16:28-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]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/24 up up
GigabitEthernet0/0/1 192.168.2.1/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
r2
The device is running!
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.2.2 24
Jul 8 2022 20:17:44-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 192.168.4.1 24
Jul 8 2022 20:18:10-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]: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 192.168.3.1 24
[r2-GigabitEthernet0/0/1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.2.2/24 up up
GigabitEthernet0/0/1 192.168.3.1/24 up up
GigabitEthernet0/0/2 192.168.4.1/24 up up
NULL0 unassigned up up(s)
r3
The device is running!
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.4.2 24
Jul 8 2022 20:19:08-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 192.168.5.1 24
[r3-GigabitEthernet0/0/1]
Jul 8 2022 20:19:38-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]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.4.2/24 up up
GigabitEthernet0/0/1 192.168.5.1/24 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
2、 by pc To configure ip
pc1

pc2

pc3

3、 ... and 、 Configure routing tables for three routers
r1
[r1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
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
192.168.1.0/24 Direct 0 0 D 192.168.1.1 GigabitEthernet
0/0/0
192.168.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.2.0/24 Direct 0 0 D 192.168.2.1 GigabitEthernet
0/0/1
192.168.2.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.3.0/24 Static 60 0 RD 192.168.2.2 GigabitEthernet
0/0/1
192.168.4.0/24 Static 60 0 RD 192.168.2.2 GigabitEthernet
0/0/1
192.168.5.0/24 Static 60 0 RD 192.168.4.2 GigabitEthernet
0/0/1
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
r2
[r2]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 15 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
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
192.168.1.0/24 Static 60 0 RD 192.168.2.1 GigabitEthernet
0/0/0
192.168.2.0/24 Direct 0 0 D 192.168.2.2 GigabitEthernet
0/0/0
192.168.2.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.3.0/24 Direct 0 0 D 192.168.3.1 GigabitEthernet
0/0/1
192.168.3.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.3.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.4.0/24 Direct 0 0 D 192.168.4.1 GigabitEthernet
0/0/2
192.168.4.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/2
192.168.4.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/2
192.168.5.0/24 Static 60 0 RD 192.168.4.2 GigabitEthernet
0/0/2
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
r3
[r3]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 13 Routes : 13
Destination/Mask Proto Pre Cost Flags NextHop Interface
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
192.168.1.0/24 Static 60 0 RD 192.168.4.1 GigabitEthernet
0/0/0
192.168.2.0/24 Static 60 0 RD 192.168.4.1 GigabitEthernet
0/0/0
192.168.3.0/24 Static 60 0 RD 192.168.4.1 GigabitEthernet
0/0/0
192.168.4.0/24 Direct 0 0 D 192.168.4.2 GigabitEthernet
0/0/0
192.168.4.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.4.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.5.0/24 Direct 0 0 D 192.168.5.1 GigabitEthernet
0/0/1
192.168.5.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.5.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Four 、 test , Network wide accessibility
PC>ping 192.168.3.2
Ping 192.168.3.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
From 192.168.3.2: bytes=32 seq=3 ttl=126 time=16 ms
From 192.168.3.2: bytes=32 seq=4 ttl=126 time=15 ms
From 192.168.3.2: bytes=32 seq=5 ttl=126 time=16 ms
--- 192.168.3.2 ping statistics ---
5 packet(s) transmitted
3 packet(s) received
40.00% packet loss
round-trip min/avg/max = 0/15/16 ms
PC>ping 192.168.5.2
Ping 192.168.5.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
From 192.168.5.2: bytes=32 seq=3 ttl=125 time=32 ms
From 192.168.5.2: bytes=32 seq=4 ttl=125 time=31 ms
From 192.168.5.2: bytes=32 seq=5 ttl=125 time=15 ms
--- 192.168.5.2 ping statistics ---
5 packet(s) transmitted
3 packet(s) received
40.00% packet loss
round-trip min/avg/max = 0/26/32 ms
边栏推荐
猜你喜欢

string类的介绍及模拟实现

上学=挣钱?无需缴纳学费的神仙院校!

LVI-SAM:激光-IMU-相机紧耦合建图

快速判断站点是否存活的 3 种编程实现

Microsoft OneNote 教程,如何在 OneNote 中插入数学公式?

标准化、归一化和正则化的关系

上學=掙錢?無需繳納學費的神仙院校!

数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
![[PostgreSQL] PostgreSQL 15 optimizes distinct](/img/18/5aaae76c1c269960defc7db8a9e63f.png)
[PostgreSQL] PostgreSQL 15 optimizes distinct

Microsoft OneNote tutorial, how to insert mathematical formulas in OneNote?
随机推荐
Quick completion guide of manipulator (zero five): resources related to manipulator
Rasa 3. X learning series -rasa version 3.1.5 release
HCIA 复习作答 2022.7.6
十分钟从 PyTorch 转 MXNet(转)
Date -- machine test topic for postgraduate entrance examination of Guizhou University
机械臂速成小指南(十三):关节空间轨迹规划
English grammar_ Personal pronoun usage
Crud code practice of user management based on koa2 + MySQL
潇洒郎:VMware固定虚拟机IP地址
The module created by yourself uses CMD to open the report modulenotfounderror: no module named solution
STM32F407 NVIC
私钥,公钥的区分——私钥公钥讲解
Stream流
Secondary vocational network security - (2022 network security NC batch connection script) free script oh~~~
Blender自动化建模入门
Scala 基础 (三):运算符和流程控制
C# 搭建一个基于.NET5的WPF入门项目
HCIP 第一天 7.15
2022.07.13 暑假集训 个人排位赛(八)
R语言使用原生包(基础导入包、graphics)中的plot函数可视化散点图(scatter plot)