1配置各个路由的名称和端口IP
(1)配置R1路由

[Huawei]sys r1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.10.1 24
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.12.1 24
(2)配置R2路由
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.12.2 24
Apr 26 2020 12:17:07-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int g0/0/1
^
Error: Unrecognized command found at ‘^’ position.
[Huawei-GigabitEthernet0/0/1]ip add 192.168.23.1 24
Apr 26 2020 12:18:14-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]sys 2
[2]
[2]sys r2
save
[r2]
(3)配置R3路由器
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.23.2 24
Apr 26 2020 12:22:42-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.34.1 24
[r3-GigabitEthernet0/0/1]
[r3]vlan 20
[r3-vlan20]
[r3-vlan20]int vlanif 20
[r3-Vlanif20]ip add 192.168.20.1 24
[r3-Vlanif20]qu
[r3]int et0/0/0
[r3-Ethernet0/0/0]port link-rype acce
[r3-Ethernet0/0/0]port link-type access
[r3-Ethernet0/0/0]port default vlan 20
[r3-Ethernet0/0/0]port default vlan 20
Apr 26 2020 13:44:18-08:00 r3 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif20 has
turned into UP state.
[r3-Ethernet0/0/0]
[r3-Ethernet0/0/0]
Apr 26 2020 13:44:18-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Vlanif20 has entered the UP state.
[r3]q
save
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait…
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated

(4)路由器4的配置
[Huawei]sys r4
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.34.2
^
Error:Incomplete command found at ‘^’ position.
[r4-GigabitEthernet0/0/0]ip add 192.168.34.2 24
Apr 26 2020 13:54:32-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]vlan 30
[r4-vlan30]qu
[r4]int vlanif 30
[r4-Vlanif30]ip add 192.168.30.1 24
[r4-Vlanif30]int et0/0/0
[r4-Ethernet0/0/0]port link-type access
[r4-Ethernet0/0/0]port default vlan 30
Apr 26 2020 13:57:22-08:00 r4 %%01IFNET/4/IF_STATE(l)[1]:Interface Vlanif30 has
turned into UP state.
[r4-Ethernet0/0/0]
[r4-Ethernet0/0/0]
Apr 26 2020 13:57:22-08:00 r4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface Vla
[r4-Ethernet0/0/0]
[r4-Ethernet0/0/0]
[r4-Ethernet0/0/0]qu
[r4]qu
save

2配置每台路由器的路由表
1路由器1的路由表
[r1]ip route-static 192.168.20.0 24 192.168.12.2
[r1]ip route-static 192.168.30.0 24 192.168.12.2
[r1]ip route-static 192.168.34.0 24 192.168.12.2
[r1]ip route-static 192.168.23.0 24 192.168.12.2
[r1]
2路由器2的路由表
[r2]ip route-static 192.168.10.0 24 192.168.12.1
[r2]ip route-static 192.168.20.0 24 192.168.23.2
[r2]ip route-static 192.168.30.0 24 192.168.23.2
[r2]ip route-static 192.168.34.0 24 192.168.23.2
[r2]
3路由器3的路由表
[r3]ip route-static 192.168.10.1 24 192.168.23.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.10.0/24 was generated.
[r3]ip route-static 192.168.12.1 24 192.168.23.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.12.0/24 was generated.
[r3]ip route-static 192.168.30.1 24 192.168.34.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.30.0/24 was generated.
[r3]

4路由器4的路由表
[r4]ip route-static 192.168.10.1 24 192.168.34.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.10.0/24 was generated.
[r4]ip route-static 192.168.12.1 24 192.168.34.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.12.0/24 was generated.
[r4]ip route-static 192.168.23.1 24 192.168.34.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.23.0/24 was generated.
[r4]ip route-static 192.168.20.1 24 192.168.34.1
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.20.0/24 was generated.
[r4]
此时pc互相都通了

静态路由 华三静态路由相关推荐

  1. 动态路由 华三nat 静态路由_史上最详细H3C路由器NAT典型配置案例

    NAT 典型配置举例 内网用户通过 NAT 地址访问外网(静态地址转换) 1. 组网需求 内部网络用户使用外网地址访问 Internet . 2. 组网图 图 1-5 静态地址转换典型配置组网图 3. ...

  2. 华三MSR路由配置设备管理控制台DMC,实训室

    以下来自华三官网,仅供参考  1  配置DMC 1.1  使能DMC功能 表1-4 使能DMC功能 操作 命令 说明 进入系统视图 system-view - 使能DMC功能 dmc enable 必 ...

  3. 华为和华三(H3C),你总要选一个才行

    相信在搞华为设备的.学华为技术的粉丝们都曾经在华为和华三之间左右摇摆过. 内行的人都知道,华为和华三其实就命令行本身来说差距并不大,因为华三的第一任老板,就是华为. 之前,华为为了应对思科的起诉,与3 ...

  4. 网路工程师证书有哪些、网络工程师行业认证(华为、华三、思科)

    网络工程师都有哪些? 网络工程师认证分为哪些等级? 网络工程师行业认证主要有三个体系:华为.华三.思科 1.华为认证体系 其中,HCDA.HCDP认证是最常见的,专注数据通信方面,类似于思科的CCNA ...

  5. 华三(H3C)三层交换机配置三层IP和静态路由

    华三的三层交换机配置三层转发的时候,需要把物理接口加入VLAN,然后在VLAN接口添加三层IP. # 进入系统视图模式 <h3c>system-view # 创建和进入VLAN 40 [H ...

  6. 华三 h3c Rip、静态路由、silent-interface配置

    R1 [R1-GigabitEthernet0/0]ip ad 192.168.1.254 24 [R1-GigabitEthernet0/1]ip ad 192.168.2.1 24 [R1]ip ...

  7. 华三 h3c 静态ECMP和浮动静态路由配置

    一:静态ECMP配置 [R1]int g 0/0 [R1-GigabitEthernet0/0]ip address 192.168.1.254 24 [R1-GigabitEthernet0/1]i ...

  8. EIGRP区域注入静态路由的三种方法--CCNP学习笔记

    EIGRP区域注入静态路由的三种方法 拓扑图 R2为外网,R1为边界路由器.R3,R4为内部路由器 基本配置 R2配置: R2#sh run Building configuration... Cur ...

  9. 三、路由协议——直连路由、静态路由、缺省路由、路由优先级和路由度量、路由冗余和备份(浮动静态路由)

    文章目录 前言 一.直连路由(direct):接口配置好ip地址并up后自动生成的路由 1.查看路由表指令:dis ip routing-table 2.使用dis ip int brief指令查看结 ...

  10. 实验三 静态路由配置

    计算机网络实验 实验三 静态路由配置 一.实验目的 二.实验目的 三.实验步骤 3.1 连接实验拓扑结构 3.2 配置路由器IP地址和掩码 3.3 配置PC机IP地址.网关地址 3.4 配置路由器的路 ...

最新文章

  1. Udacity机器人软件工程师课程笔记(二十一) - 对点云进行集群可视化 - 聚类的分割 - K-means|K均值聚类, DBSCAN算法
  2. MATLAB【五】———— matlab 调用C++生成exe文件,高斯核函数
  3. 命令行参数tail c语言,osg学习笔记2, 命令行参数解析器ArgumentParser
  4. 课后作业-结对编程项目总结
  5. java矩阵连乘_算法设计与分析——矩阵连乘问题(动态规划)
  6. web浏览器_vs2019使用webview2开发web浏览器 - 左正
  7. leetcode1033. 移动石子直到连续
  8. PowerCMD——cmd的命令行工具
  9. python基础教程免费下载-《Python机器学习基础教程》高清版免费PDF下载
  10. UCOS II怎么查找当前就绪表中,优先级最高的任务
  11. Altuim Designer 21学习笔记
  12. codeblocks安装包和主题及中文语言包百度云下载
  13. xLua(一)——介绍
  14. 个人信贷不良资产管理 难题亟待解决
  15. java生成chk文件_java web实现在线编辑word,并将word导出(一)
  16. 【LeetCode】86. 分隔链表
  17. [转]NLP关键词提取方法总结及实现
  18. JS字符串和数字相加结果是什么?
  19. 有什么方法可以制作二寸照片
  20. 蓝桥杯 提高题 母牛的故事

热门文章

  1. Kali对网站进行DDOS攻击
  2. 厂级监控系统镜像服务器,厂级监控信息系统(SIS).PDF
  3. ABAP SPLITTER技术总结及使用技巧
  4. MATLAB导入LTspice RAW格式文件教程(绘制波特图)
  5. ubuntu下使用Passenger配置redmine
  6. 009 Ubuntu安装Google浏览器
  7. 知乎8.5k赞的回答:自学编程需要注意什么?
  8. 团购幸存者:团购是个苦生意
  9. 腾讯云-语音指定模板-电话告警通知
  10. 关于MySQL数据类型定义的几个细节-INT(N)/VARCHAR(N)/DECIMAL(M,N)