2022年HC路由学习笔记-静态路由复习进程 .pdf
《2022年HC路由学习笔记-静态路由复习进程 .pdf》由会员分享,可在线阅读,更多相关《2022年HC路由学习笔记-静态路由复习进程 .pdf(14页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、此文档来源于网络,如有侵权请联系网站删除只供学习交流用H3C 路由(MSR26-30)1、进入系统视图Startup configuration file does not exist.Performing automatic configuration.Press CTRL_D to break.-按 Ctrl+D 键终止设备查找自动配置Automatic configuration attempt:1.Not ready for automatic configuration:no interface available.Waiting for the next.Automatic con
2、figuration is aborted.-按 Ctrl+D 键后放弃自动配置的尝试Line aux0 is available.Press ENTER to get started.-到这里系统启动完毕,按回车键%Aug 22 09:19:53:318 2014 H3C SHELL/5/SHELL_LOGIN:TTY logged in from aux0.-再按一次回车键 system-view H3C 2、修改路由器名称sys H3Csysname 名称如将默认的路由器名称改为RoNetwork_Dept,Ro 表示设备类型为路由器,Network_Dept表示部门名称,以后看到这个名
3、称就知道这是什么设备、在什么位置。建议以后都采用这种方式来给设备命名,以方便管理。H3Csysname RoNetwork_Dept RoNetwork_Dept 如果要恢复默认名称,使用undo sysname 命令:RoNetwork_Deptundo sysname H3C 3、显示路由表(1)IPv4 显示路由表概要信息:RoNetwork_Deptdisplay ip routing-table 显示路由表详细信息:RoNetwork_Deptdisplay ip routing-table verbose 显示某种路由协议的信息:RoNetwork_Deptdisplay ip r
4、outing-table protocol bgp|direct|guard|isis|ospf|rip|static 还有其他信息,可使用?显示帮助以便选择:RoNetwork_Deptdisplay ip routing-table?(2)IPv6 只需将 IPv4 的命令中 ip 替换成 ipv6 即可。4、配置接口sys system-view H3Cint 接口名称名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 14 页 -此文档来源于网络,如有侵权请联系网站删除只供学习交流用如配置 G0/0 接口:RoNetwork_Deptint g0/0 RoNetwork_De
5、pt-GigabitEthernet0/0-进入接口配置视图配置 IP地址:RoNetwork_Dept-GigabitEthernet0/0ip add 12.0.0.1?-后面跟掩码长度也行,跟掩码也行INTEGER IP mask length X.X.X.X IP mask RoNetwork_Dept-GigabitEthernet0/0ip add 12.0.0.1 24-24表示掩码长度为24 位,和 255.255.255.0 等效RoNetwork_Dept-GigabitEthernet0/0undo shutdown-激活接口RoNetwork_Dept-GigabitE
6、thernet0/0dis int g0/0-查看接口信息5、信息回显及tracert 为了防止命令被系统输出的消息打断,可以配置信息回显:RoNetwork_Deptinfo-center synchronous 为防止 tracert 超时,链路两端的设备都要开启以下功能:RoNetwork_Dept ip redirects enable 开启设备的ICMP 重定向报文的发送功能RoNetwork_Dept ip ttl-expires enable 开启设备的ICMP 超时报文的发送功能RoNetwork_Dept ip unreachable enable 开启设备的ICMP 目的不
7、可达报文的发送功能6、配置静态路由拓扑图:RoNetwork_Dept 端:sys System View:return to User View with Ctrl+Z.H3Csys RoNetwork_Dept RoNetwork_Deptinfo sync Info-center synchronous output is on.RoNetwork_Deptint lo0 RoNetwork_Dept-LoopBack0ip add 192.168.1.1 24 RoNetwork_Dept-LoopBack0int g0/0 RoNetwork_Dept-GigabitEthernet
8、0/0ip add 12.0.0.1 24 RoNetwork_Dept-GigabitEthernet0/0undo sh RoNetwork_Dept-GigabitEthernet0/0ip route 192.168.2.2 255.255.255.255 12.0.0.2 RoNetwork_Dept%Aug 22 11:45:32:415 2014 RoNetwork_Dept IFNET/3/PHY_UPDOWN:Physical state on the interface GigabitEthernet0/0 changed to up.%Aug 22 11:45:32:41
9、6 2014 RoNetwork_Dept IFNET/5/LINK_UPDOWN:Line protocol state on the interface GigabitEthernet0/0 changed to up.-系统发出的消息,g0/0 接口已经up 了名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 14 页 -此文档来源于网络,如有侵权请联系网站删除只供学习交流用RoNetwork_Deptdis ip ro Destinations:17 Routes:17 Destination/Mask Proto Pre Cost NextHop Interface 0.
10、0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.0/24 Direct 0 0 12.0.0.1 GE0/0 12.0.0.0/32 Direct 0 0 12.0.0.1 GE0/0 12.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.255/32 Direct 0 0 12.0.0.1 GE0/0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0
11、0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.1 Loop0 192.168.1.0/32 Direct 0 0 192.168.1.1 Loop0 192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.1 Loop0 192.168.2.2/32 Static 60 0 12.0.0.2 GE0/0 224.0.0.0/4
12、Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 RoNetwork_Deptping 192.168.2.2-使用 ping 命令测试路由是否配置正确Ping 192.168.2.2(192.168.2.2):56 data bytes,press CTRL_C to break 56 bytes from 192.168.2.2:icmp_seq=0 ttl=255 time=1.457 ms 56 bytes from
13、 192.168.2.2:icmp_seq=1 ttl=255 time=1.113 ms 56 bytes from 192.168.2.2:icmp_seq=2 ttl=255 time=1.168 ms 56 bytes from 192.168.2.2:icmp_seq=3 ttl=255 time=1.189 ms 56 bytes from 192.168.2.2:icmp_seq=4 ttl=255 time=1.049 ms-Ping statistics for 192.168.2.2-5 packets transmitted,5 packets received,0.0%
14、packet loss round-trip min/avg/max/std-dev=1.049/1.195/1.457/0.140 ms RoNetwork_Dept%Aug 22 11:49:29:304 2014 RoNetwork_Dept PING/6/PING_STATISTICS:Ping statistics for 192.168.2.2:5 packets transmitted,5 packets received,0.0%packet loss,round-trip min/avg/max/std-dev=1.049/1.195/1.457/0.140 ms.RoNet
15、work_Dept RoNetCenter端:sys System View:return to User View with Ctrl+Z.H3Csys RoNetCenter RoNetCenterinfo sync Info-center synchronous output is on.RoNetCenterint lo0 RoNetCenter-LoopBack0ip add 192.168.2.2 32 名师资料总结-精品资料欢迎下载-名师精心整理-第 3 页,共 14 页 -此文档来源于网络,如有侵权请联系网站删除只供学习交流用RoNetCenter-LoopBack0int g
16、0/0 RoNetCenter-GigabitEthernet0/0ip add 12.0.0.2 24 RoNetCenter-GigabitEthernet0/0undo sh RoNetCenter-GigabitEthernet0/0quit RoNetCenterip ro 192.168.1.1 255.255.255.255 12.0.0.1 RoNetCenterdis ip ro Destinations:14 Routes:14 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 1
17、27.0.0.1 InLoop0 12.0.0.0/24 Direct 0 0 12.0.0.2 GE0/0 12.0.0.0/32 Direct 0 0 12.0.0.2 GE0/0 12.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.255/32 Direct 0 0 12.0.0.2 GE0/0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 1
18、27.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.1/32 Static 60 0 12.0.0.1 GE0/0 192.168.2.2/32 Direct 0 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 RoNetCenter 配置等价静态路由RoNetwork_Dept 端:RoNetwo
19、rk_Deptint g0/1 RoNetwork_Dept-GigabitEthernet0/1ip add 21.0.0.1 24 RoNetwork_Dept-GigabitEthernet0/1undo sh RoNetwork_Dept-GigabitEthernet0/1quit RoNetwork_Deptip ro 192.168.2.2 255.255.255.255 21.0.0.2 RoNetwork_Deptdis ip ro Destinations:21 Routes:22 名师资料总结-精品资料欢迎下载-名师精心整理-第 4 页,共 14 页 -此文档来源于网络,
20、如有侵权请联系网站删除只供学习交流用Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.0/24 Direct 0 0 12.0.0.1 GE0/0 12.0.0.0/32 Direct 0 0 12.0.0.1 GE0/0 12.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.255/32 Direct 0 0 12.0.0.1 GE0/0 21.0.0.0/24 Direct 0 0 21.0.0.1 GE0
21、/1 21.0.0.0/32 Direct 0 0 21.0.0.1 GE0/1 21.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 21.0.0.255/32 Direct 0 0 21.0.0.1 GE0/1 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.1
22、68.1.0/24 Direct 0 0 192.168.1.1 Loop0 192.168.1.0/32 Direct 0 0 192.168.1.1 Loop0 192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.1 Loop0 192.168.2.2/32 Static 60 0 12.0.0.2 GE0/0 21.0.0.2 GE0/1 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 N
23、ULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 RoNetCenter端:RoNetCenterint g0/1 RoNetCenter-GigabitEthernet0/1ip add 21.0.0.2 24 RoNetCenter-GigabitEthernet0/1undo sh RoNetCenter-GigabitEthernet0/1quit RoNetCenterip ro 192.168.1.1 255.255.255.255 21.0.0.1 RoNetCenterdis ip ro Destinations:18 R
24、outes:19 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.0/24 Direct 0 0 12.0.0.2 GE0/0 12.0.0.0/32 Direct 0 0 12.0.0.2 GE0/0 12.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 12.0.0.255/32 Direct 0 0 12.0.0.2 GE0/0 21.0.0.0/24 Direct 0 0 21.0.0.2 GE0/1 21.0.0
25、.0/32 Direct 0 0 21.0.0.2 GE0/1 21.0.0.2/32 Direct 0 0 127.0.0.1 InLoop0 21.0.0.255/32 Direct 0 0 21.0.0.2 GE0/1 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 名师资料总结-精品资料欢迎下载-名师精心整理-第 5 页,共 14 页 -此文档来源于网络,如有侵权请联系网站删除只供学习交
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年HC路由学习笔记-静态路由复习进程 2022 HC 路由 学习 笔记 静态 复习 进程
限制150内