当前位置:网站首页>第一天实验
第一天实验
2022-07-17 16:16:00 【iLoyalty】
作业

Huawei]sysname R1
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 192.168.1.5 30
[R1]int LoopBack
[R1-LoopBack0]ip add 192.168.1.33 28
[R1-LoopBack0]quit
[R1]int loop1
[R1-LoopBack1]ip address 192.168.1.49 28
[Huawei]sys R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.9 30[R2]int lo0
[R2-LoopBack0]ip add 192.18.1.65 28
[R2-LoopBack0]q
[R2]int lo1
[R2-LoopBack1]ip add 192.168.1.81 28
[Huawei]sys R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[R3]int g0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.1.13 30
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]ip address 192.168.1.97 27
[Huawei]sys R4
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip address 192.168.1.10 30
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip address 192.168.1.14 30
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[R4]int g4/0/0
[R4-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[R4]int lo0
[R4-LoopBack0]ip address 192.168.1.129 28
[R4-LoopBack0]q
[R4]int lo1
[R4-LoopBack1]ip address 192.168.1.145 28
[Huawei]sys R5
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip address 192.168.1.18 30
[R5]int g0/0/1
[R5-GigabitEthernet0/0/1]ip address 192.168.1.22 30
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]ip address 56.1.1.1 24
[R5]int lo0
[R5-LoopBack0]ip address 192.168.1.161 28
[Huawei]sys R6
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip address 56.1.1.2 24
[R6]int lo0
[R6-LoopBack0]ip address 6.6.6.6 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 1
Info: It's successful to create an IP address pool.
[R3-ip-pool-1]network 192.168.1.96 mask 27
[R3-ip-pool-1]gateway-list 192.168.1.97
[R3-ip-pool-1]dns-list 8.8.8.8
[R3-ip-pool-1]q
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]dhcp select global
查看PC1的IP 
查看PC2的IP
配置缺省路由
[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]ip route-static 0.0.0.0 0 192.168.1.10
[R3]ip route-static 0.0.0.0 0 192.168.1.14
[R4]ip route-static 0.0.0.0 0 192.168.1.18
[R5]ip route-static 0.0.0.0 0 56.1.1.2
配置静态路由
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[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
[R2]ip route-static 192.168.1.4 30 192.168.1.1
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R3]ip route-static 192.168.1.0 30 192.168.1.1
[R3]ip route-static 192.168.1.32 27 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
[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备用线路 [R4]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
[R5]ip route-static 192.168.1.32 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.96 27 192.168.1.17
[R5]ip route-static 192.168.1.128 27 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.8 30 192.168.1.17
[R5]ip route-static 192.168.1.12 30 192.168.1.17
R5备用线路
[R5]ip route-static 192.168.1.32 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.64 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.96 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.128 27 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.0 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.4 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.8 30 192.168.1.21 pr 61
[R5]ip route-static 192.168.1.12 30 192.168.1.21 pr 61
R5g0/0/2接口做个acl
[R5]acl 2000
[R5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.225
[R5-acl-basic-2000]q
[R5]int g0/0/2
[R5-GigabitEthernet0/0/2]nat outbound 2000
配置空接口
[R1]ip route-static 192.168.1.32 27 NULL 0
[R2]ip route-static 192.168.1.64 27 NULL 0
[R4]ip route-static 192.168.1.128 27 NULL 0
打开R1的telnet服务
[R1]123
[R1-123]local-user haha privilege level 15 password cipher 123123
Info: Add a new user.
定义账号作用
[R1-123]local-user haha service-type telnet
[R1-123]q
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode 123
映射
[R5-GigabitEthernet0/0/2]nat server protocol tcp global current-interface 23 ins
ide 192.168.1.1 23
边栏推荐
- 对Rapidly-exploring Random Trees(RRT)路径规划方法的理解
- 人大、微软等提出InclusiveFL:异构设备上的包容性联邦学习
- Simple implementation of scrapy keyword crawler (take Xinhuanet and people's network as examples)
- STL string input / output overload 1
- HCIP(5)
- 熟悉NestJS (新手篇)
- 01背包面试题系列(一)
- Tiflash performance tuning
- MySQL learning notes - paging - table creation - data type
- WAV和PCM的关系和区别
猜你喜欢

微机原理与技术接口 实验四 子程序及中断实验

es安装ik分词器

如何应用小程序容器技术开发Hybrid App

LeetCode_ 77_ combination

C语言绘画示例-进度条
![[MySQL] add, delete, check and modify MySQL (Advanced)](/img/56/684204c509d3ce8db1397709216db7.png)
[MySQL] add, delete, check and modify MySQL (Advanced)

项目建设,谋事在人,成事亦在人!

使用原生js实现按钮的全选功能,简单清晰

C language drawing example - trademark logo

Mysql-1366 - Incorrect string value: ‘\xE5\xBC\xA0\xE4\xB8\x89‘ for column ‘userName‘ at row 1
随机推荐
Nature子刊 | 地下水固碳速率与寡营养海洋系统固碳速率相近
Two misunderstandings of digital transformation
js链式调用sleep函数 ------- <秋招打卡篇二>
C#从入门到精通之第二篇: C# 基础语法
LeetCode_ 77_ combination
Mysql-1366 - Incorrect string value: ‘\xE5\xBC\xA0\xE4\xB8\x89‘ for column ‘userName‘ at row 1
Focus on the new track of green development - release of MAPGIS intelligent environmental protection solution
STL string输入输出重载
HCIP (7)
人大、微软等提出InclusiveFL:异构设备上的包容性联邦学习
【机器学习】多标签分类的评价指标与代码实现
getchar()
Tikv thread pool performance tuning
3.Golang字符串string类型
对Rapidly-exploring Random Trees(RRT)路径规划方法的理解
OpenCV基于DLCO描述子匹配
QT learning diary 17 - QT database
说说 Redis 缓存穿透场景与相应的解决方法
STL string输入输出重载2
Linux下MySQL的安装与使用