HCIP第一次作业(静态路由配置)

题目

第一步:划分网段配置IP地址

复制代码
R1:
  0/0/0:192.168.1.1/30
  0/0/1:192.168.1.9/30
  L0   :192.168.1.33/28
  L1   :192.168.1.49/28

R2:
  0/0/0:192.168.1.2/30
  0/0/1:192.168.1.5/30
  L0   :192.168.1.65/28
  L1   :192.168.1.81/28

R3:
  0/0/0:192.168.1.10/30
  0/0/1:192.168.1.13/30
  0/0/2:192.168.1.97/27
  
R4:
  0/0/0:192.168.1.6/30
  0/0/1:192.168.1.14/30
  0/0/2:192.168.1.17/30
  6/0/0:192.168.1.21/30
  L0   :192.168.1.129/28
  L1   :192.168.1.145/28

R5:
  0/0/0:192.168.1.18/30
  0/0/1:12.0.0.1/24
  0/0/2:192.168.1.22/130
  L0   : 192.168.1.161/27

R6:
  0/0/0:12.0.0.2/24
  L0   :1.1.1.1/24

第二步:配置静态路由实现全网通

复制代码
以R1为列
[R1]ip route-static 192.168.1.4 30 192.168.1.2
[R1]ip route-static 192.168.1.8 30 192.168.1.10
[R1]undo ip route-static 192.168.1.8 30 192.168.1.10
[R1]ip route-static 192.168.1.96 30 192.168.1.10
[R1]ip route-static 192.168.1.12 30 192.168.1.10
[R1]ip route-static 192.168.1.16 30 192.168.1.2
[R1]ip route-static 192.168.1.20 30 192.168.1.2
[R1]ip route-static 192.168.1.64 30 192.168.1.2
[R1]undo ip route-static 192.168.1.64 30 192.168.1.2
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.128 27 192.168.1.2
[R1]ip route-static 192.168.1.160 27 192.168.1.2
[R1]ip route-static 192.168.1.64 27 NULL0
[R1]ip route-static 192.168.1.128 27 NULL0
[R1]ip route-static 192.168.1.160 27 NULL0

注意:

1,静态路由写法

Huawei\]ip route-static 192.168.3.0 24 192.168.2.2------静态路由 route(路由器)static(静态)------静态路由 192.168.3.0 24------目的地网段 192.168.2.2------下一跳 2,手工汇总 \[r2\]ip route-static 192.168.1.0 24 12.0.0.1 \[r2\]ip route-static 192.168.2.0 24 12.0.0.1------两段同时包含在192.168.0.0/22网段都可通过 12.0.0.1接口 \[r2\]ip route-static 192.168.0.0 22 12.0.0.1 3,路由黑洞 在汇总中,如果包含网络内实际不存在的网段时,可能造成流量的有去无回,浪费链路资源 4,缺省路由 一旦路由黑洞和缺省路由相遇,将100%出现路由环路。 缺省路由就是一条不限定目标的路由条目。缺省路由一定是路由表中所有路由条目都无法匹配时,才最后匹配。 \[r1\]ip route-static 0.0.0.0 0 12.0.0.2------0.0.0.0可以是任意值,0掩码可以是任意值,12.0.0.2是下一跳 5,空接口路由 用来解决缺省和黑洞相遇出环的问题。 --- 在黑洞路由器上配置一条指向汇总网段的空接口路由到路由表中。 \[R1\]ip route-static 192.168.1.160 27 NULL0 6,浮动静态路由 通过修改默认的优先级,实现静态路由的备份效果。 \[r1\]ip route-static 192.168.2.0 24 21.0.0.2 preference 61------手动修改静态路由的优先级 ### 第三步:创建dhcp地址池 [R3]dhcp enable //开启dhcp服务 Info: The operation may take a few seconds. Please wait for a moment.done. [R3]ip pool pp Info: It's successful to create an IP address pool. [R3-ip-pool-pp]network 192.168.1.96 mask 27 [R3-ip-pool-pp]gateway-list 192.168.1.97 [R3-ip-pool-pp]dns-list 114.114.114.114 [R3-ip-pool-pp]q [R3]int g 0/0/2 [R3-GigabitEthernet0/0/2]dhcp select global //接口上全局宣告 ![](https://file.jishuzhan.net/article/1771436732768587778/94e3a19a32fabfe36ddb1f1d5c035b41.webp) ![](https://file.jishuzhan.net/article/1771436732768587778/fd287272d3ac417e531be1e9b2fd15ac.webp) ### 第四步:telent服务 R6 telent R5 **R5上面的配置** [R5]aaa [R5-aaa]local-user admin privilege level 3 password cipher 123456 [R5-aaa]display this [V200R003C00] # aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password cipher %$%$H'+):kp']:))&dX+X)`JyT2y%$%$ local-user admin privilege level 3 local-user admin service-type http # return [R5-aaa]local-user admin service-type telnet [R5-aaa]q [R5]user-interface vty 0 4 [R5-ui-vty0-4]authentication-mode aaa **R6上面的配置** telnet 12.0.0.1 Press CTRL_] to quit telnet mode Trying 12.0.0.1 ... Connected to 12.0.0.1 ... Login authentication Username:admin Password:

相关推荐
Wy_编程4 小时前
Linux-文本搜索工具grep
linux·运维·服务器
qq998994 小时前
AAA服务器技术
运维·服务器
xujiangyan_4 小时前
linux的sysctl系统以及systemd系统。
linux·服务器·网络
Lovyk4 小时前
Linux Shell 常用操作与脚本示例详解
linux·运维·服务器
iCan_qi4 小时前
【Mac】【Minecraft】关于如何在Mac上搭建基岩版MC服务器的方法
运维·服务器·macos·minecraft
xixingzhe27 小时前
多人同时导出 Excel 导致内存溢出
服务器·设计
吱吱企业安全通讯软件7 小时前
吱吱企业通讯软件保证内部通讯安全,搭建数字安全体系
大数据·网络·人工智能·安全·信息与通信·吱吱办公通讯
云手机掌柜7 小时前
Tumblr长文运营:亚矩阵云手机助力多账号轮询与关键词布局系统
大数据·服务器·tcp/ip·矩阵·流量运营·虚幻·云手机
云边云科技8 小时前
零售行业新店网络零接触部署场景下,如何选择SDWAN
运维·服务器·网络·人工智能·安全·边缘计算·零售
rainFFrain9 小时前
Boost搜索引擎项目(详细思路版)
网络·c++·http·搜索引擎