版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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 configuration is aborted.-按C
2、trl + D键后放弃自动配置的尝试Line aux0 is available.Press ENTER to get started.-到这里系统启动完毕,按回车键<H3C>%Aug 22 09:19:53:318 2014 H3C SHELL/5/SHELL_LOGIN: TTY logged in from aux0.-再按一次回车键<H3C><H3C> system-viewH3C2、修改路由器名称<H3C>sysH3Csysname 名称如将默认的路由器名称改为RoNetwork_Dept,Ro表示设备类型为路由器,Network_De
3、pt表示部门名称,以后看到这个名称就知道这是什么设备、在什么位置。建议以后都采用这种方式来给设备命名,以方便管理。H3Csysname RoNetwork_DeptRoNetwork_Dept如果要恢复默认名称,使用undo sysname命令:RoNetwork_Deptundo sysnameH3C3、显示路由表(1)IPv4显示路由表概要信息:RoNetwork_Deptdisplay ip routing-table显示路由表详细信息:RoNetwork_Deptdisplay ip routing-table verbose显示某种路由协议的信息:RoNetwork_Deptdisp
4、lay ip routing-table protocol bgp|direct|guard|isis|ospf|rip|static还有其他信息,可使用?显示帮助以便选择:RoNetwork_Deptdisplay ip routing-table ?(2)IPv6只需将IPv4的命令中ip替换成ipv6即可。4、配置接口<H3C>sys<H3C> system-viewH3Cint 接口名称如配置G0/0接口:RoNetwork_Deptint g0/0RoNetwork_Dept-GigabitEthernet0/0-进入接口配置视图配置IP地址:RoNetwor
5、k_Dept-GigabitEthernet0/0ip add 12.0.0.1 ?-后面跟掩码长度也行,跟掩码也行 INTEGER<1-31> IP mask length X.X.X.X IP maskRoNetwork_Dept-GigabitEthernet0/0ip add 12.0.0.1 24 -24表示掩码长度为24位,和255.255.255.0等效RoNetwork_Dept-GigabitEthernet0/0undo shutdown-激活接口RoNetwork_Dept-GigabitEthernet0/0dis int g0/0-查看接口信息5、信息回显
6、及tracert为了防止命令被系统输出的消息打断,可以配置信息回显:RoNetwork_Deptinfo-center synchronous为防止tracert超时,链路两端的设备都要开启以下功能:RoNetwork_Deptip redirects enable 开启设备的ICMP重定向报文的发送功能RoNetwork_Deptip ttl-expires enable 开启设备的ICMP超时报文的发送功能RoNetwork_Deptip unreachable enable 开启设备的ICMP目的不可达报文的发送功能6、配置静态路由拓扑图:RoNetwork_Dep
7、t端:<H3C>sysSystem View: return to User View with Ctrl+Z.H3Csys RoNetwork_DeptRoNetwork_Deptinfo syncInfo-center synchronous output is on.RoNetwork_Deptint lo0RoNetwork_Dept-LoopBack0ip add 192.168.1.1 24RoNetwork_Dept-LoopBack0int g0/0RoNetwork_Dept-GigabitEthernet0/0ip add 12.0.0.1 24RoNetwor
8、k_Dept-GigabitEthernet0/0undo shRoNetwork_Dept-GigabitEthernet0/0ip route 192.168.2.2 255.255.255.255 12.0.0.2RoNetwork_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:416 2014 RoNetwork_Dept IFNET/5/L
9、INK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to up.-系统发出的消息,g0/0接口已经up了RoNetwork_Deptdis ip roDestinations : 17 Routes : 17Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop012.0.0.0/24 Direct 0 0 12.0.0.1 GE0/012.0.0.0/32 Direct 0
10、0 12.0.0.1 GE0/012.0.0.1/32 Direct 0 0 127.0.0.1 InLoop012.0.0.255/32 Direct 0 0 12.0.0.1 GE0/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.0/24 Direct 0 0 192.168.1.
11、1 Loop0192.168.1.0/32 Direct 0 0 192.168.1.1 Loop0192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.255/32 Direct 0 0 192.168.1.1 Loop0192.168.2.2/32 Static 60 0 12.0.0.2 GE0/0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0R
12、oNetwork_Deptping 192.168.2.2 -使用ping命令测试路由是否配置正确Ping 192.168.2.2 (192.168.2.2): 56 data bytes, press CTRL_C to break56 bytes from 192.168.2.2: icmp_seq=0 ttl=255 time=1.457 ms56 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=1.113 ms56 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=1.168 ms56 byt
13、es from 192.168.2.2: icmp_seq=3 ttl=255 time=1.189 ms56 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% packet lossround-trip min/avg/max/std-dev = 1.049/1.195/1.457/0.140 msRoNetwork_Dept%Aug 22 11:49:29:304
14、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.RoNetwork_DeptRoNetCenter端:<H3C>sysSystem View: return to User View with Ctrl+Z.H3Csys RoNetCent
15、erRoNetCenterinfo syncInfo-center synchronous output is on.RoNetCenterint lo0RoNetCenter-LoopBack0ip add 192.168.2.2 32RoNetCenter-LoopBack0int g0/0RoNetCenter-GigabitEthernet0/0ip add 12.0.0.2 24RoNetCenter-GigabitEthernet0/0undo shRoNetCenter-GigabitEthernet0/0quitRoNetCenterip ro 192.168.1.1 255.
16、255.255.255 12.0.0.1RoNetCenterdis ip roDestinations : 14 Routes : 14Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop012.0.0.0/24 Direct 0 0 12.0.0.2 GE0/012.0.0.0/32 Direct 0 0 12.0.0.2 GE0/012.0.0.2/32 Direct 0 0 127.0.0.1 InLoop012.0.0.255/32 Direct 0 0 12.0
17、.0.2 GE0/0127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.1/32 Static 60 0 12.0.0.1 GE0/0192.168.2.2/32 Direct 0 0 127.0.0.1 InLoop0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL02
18、24.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0RoNetCenter配置等价静态路由RoNetwork_Dept端:RoNetwork_Deptint g0/1RoNetwork_Dept-GigabitEthernet0/1ip add 21.0.0.1 24RoNetwork_Dept-GigabitEthernet0/1undo shRoNetwork_Dept-GigabitEthernet0/1quitRoNetwork_Deptip ro 192.168.2.2
19、255.255.255.255 21.0.0.2RoNetwork_Deptdis ip roDestinations : 21 Routes : 22Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop012.0.0.0/24 Direct 0 0 12.0.0.1 GE0/012.0.0.0/32 Direct 0 0 12.0.0.1 GE0/012.0.0.1/32 Direct 0 0 127.0.0.1 InLoop012.0.0.255/32 Direct 0
20、 0 12.0.0.1 GE0/021.0.0.0/24 Direct 0 0 21.0.0.1 GE0/121.0.0.0/32 Direct 0 0 21.0.0.1 GE0/121.0.0.1/32 Direct 0 0 127.0.0.1 InLoop021.0.0.255/32 Direct 0 0 21.0.0.1 GE0/1127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.
21、255.255/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.0/24 Direct 0 0 192.168.1.1 Loop0192.168.1.0/32 Direct 0 0 192.168.1.1 Loop0192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.255/32 Direct 0 0 192.168.1.1 Loop0192.168.2.2/32 Static 60 0 12.0.0.2 GE0/0 21.0.0.2 GE0/1224.0.0.0/4 Direct 0 0 0.0.0.0
22、NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0RoNetCenter端:RoNetCenterint g0/1RoNetCenter-GigabitEthernet0/1ip add 21.0.0.2 24RoNetCenter-GigabitEthernet0/1undo shRoNetCenter-GigabitEthernet0/1quitRoNetCenterip ro 192.168.1.1 255.255.255.255 21.0.0.1RoNetCe
23、nterdis ip roDestinations : 18 Routes : 19Destination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop012.0.0.0/24 Direct 0 0 12.0.0.2 GE0/012.0.0.0/32 Direct 0 0 12.0.0.2 GE0/012.0.0.2/32 Direct 0 0 127.0.0.1 InLoop012.0.0.255/32 Direct 0 0 12.0.0.2 GE0/021.0.0.0/24 Direc
24、t 0 0 21.0.0.2 GE0/121.0.0.0/32 Direct 0 0 21.0.0.2 GE0/121.0.0.2/32 Direct 0 0 127.0.0.1 InLoop021.0.0.255/32 Direct 0 0 21.0.0.2 GE0/1127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 In
25、Loop0192.168.1.1/32 Static 60 0 12.0.0.1 GE0/0 21.0.0.1 GE0/1192.168.2.2/32 Direct 0 0 127.0.0.1 InLoop0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0测试:RoNetwork_Deptping 192.168.2.2Ping 192.168.2.2 (192.168.2.2): 56 data byt
26、es, press CTRL_C to break56 bytes from 192.168.2.2: icmp_seq=0 ttl=255 time=0.935 ms56 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=1.156 ms56 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=0.732 ms56 bytes from 192.168.2.2: icmp_seq=3 ttl=255 time=1.301 ms56 bytes from 192.168.2.2: icmp_seq=4 t
27、tl=255 time=0.733 ms- Ping statistics for 192.168.2.2 -5 packets transmitted, 5 packets received, 0.0% packet lossround-trip min/avg/max/std-dev = 0.732/0.971/1.301/0.227 msRoNetCenterping -r 192.168.1.1-“-r”表示“Record route”,记录路由Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break56
28、bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.827 msRR: 21.0.0.1 12.0.0.256 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.964 msRR: 12.0.0.1 12.0.0.256 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.895 msRR: 21.0.0.1 12.0.0.256 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.673 msRR:
29、12.0.0.1 12.0.0.256 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.905 msRR: 21.0.0.1 12.0.0.2- Ping statistics for 192.168.1.1 -5 packets transmitted, 5 packets received, 0.0% packet lossround-trip min/avg/max/std-dev = 0.673/1.053/1.895/0.432 ms-数据包被轮流在两条链路上发送,但是奇怪的是,只从一条链路返回,这与GNS3的Cisco路由器不一样
30、,Cisco的是从哪条链路出去就从哪条链路返回:参考:R1#pingProtocol ip:Target IP address: 192.168.2.2Repeat count 5:Datagram size 100:Timeout in seconds 2:Extended commands n: ySource address or interface:Type of service 0:Set DF bit in IP header? no:Validate reply data? no:Data pattern 0xABCD:Loose, Strict, Record, Timesta
31、mp, Verbosenone: rNumber of hops 9 :Loose, Strict, Record, Timestamp, VerboseRV: r% No room for that optionLoose, Strict, Record, Timestamp, VerboseRV: Record% No room for that optionLoose, Strict, Record, Timestamp, VerboseRV:Sweep range of sizes n:Type escape sequence to abort.Sending 5, 100-byte
32、ICMP Echos to 192.168.2.2, timeout is 2 seconds:Packet has IP options: Total option bytes= 39, padded length=40 Record route: <*> (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0)Request 0 timed outRequest 1 timed outReply to request 2 (32 ms). Received
33、packet has options Total option bytes= 40, padded length=40 Record route: (12.0.0.1)出去 (192.168.2.2) (12.0.0.2) (12.0.0.1) <*>回来 (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) End of listReply to request 3 (48 ms). Received packet has options Total option bytes= 40, padded length=40 Record
34、route: (21.0.0.1) (192.168.2.2) (21.0.0.2) (21.0.0.1) <*> (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) End of listReply to request 4 (24 ms). Received packet has options Total option bytes= 40, padded length=40 Record route: (12.0.0.1) (192.168.2.2) (12.0.0.2) (12.0.0.1) <*> (0.0.0.
35、0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) End of listSuccess rate is 60 percent (3/5), round-trip min/avg/max = 24/34/48 ms RoNetwork_Deptint g0/0RoNetwork_Dept-GigabitEthernet0/0sh -关闭G0/0接口,看看还能不能ping通RoNetwork_Dept-GigabitEthernet0/0%Aug 22 12:11:22:912 2014 RoNetwork_Dept IFNET/3/PHY_UPDOWN: Ph
36、ysical state on the interface GigabitEthernet0/0 changed to down.%Aug 22 12:11:22:913 2014 RoNetwork_Dept IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to down.quitRoNetwork_Deptping 192.168.2.2Ping 192.168.2.2 (192.168.2.2): 56 data bytes, press CTRL_C to brea
37、k56 bytes from 192.168.2.2: icmp_seq=0 ttl=255 time=0.676 ms56 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=0.626 ms56 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=0.756 ms56 bytes from 192.168.2.2: icmp_seq=3 ttl=255 time=0.952 ms56 bytes from 192.168.2.2: icmp_seq=4 ttl=255 time=0.740 ms- Pi
38、ng statistics for 192.168.2.2 -5 packets transmitted, 5 packets received, 0.0% packet lossround-trip min/avg/max/std-dev = 0.626/0.750/0.952/0.111 msRoNetwork_Dept%Aug 22 12:11:33:357 2014 RoNetwork_Dept PING/6/PING_STATISTICS: Ping statistics for 192.168.2.2: 5 packets transmitted, 5 packets receiv
39、ed, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.626/0.750/0.952/0.111 ms.可见,当其中一条链路down了之后,数据包可以通过另一条链路发往目的地。配置非等价静态路由:RoNetwork_Deptint g0/0RoNetwork_Dept-GigabitEthernet0/0undo sh -重新激活G0/0接口RoNetwork_Dept-GigabitEthernet0/0quitRoNetwork_Deptundo ip ro 192.168.2.2 255.255.255.255 12.0.0.2
40、 -删除前面配置的路由RoNetwork_Deptundo ip ro 192.168.2.2 255.255.255.255 21.0.0.2-删除前面配置的路由RoNetwork_Deptip ro 192.168.2.2 255.255.255.255 12.0.0.2 preference 1 配置非等价静态路由,指定优先级为1RoNetwork_Deptip ro 192.168.2.2 255.255.255.255 21.0.0.2 -采用默认的优先级60,比上一条的优先级低RoNetwork_Deptdis ip roDestinations : 21 Routes : 21D
41、estination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop012.0.0.0/24 Direct 0 0 12.0.0.1 GE0/012.0.0.0/32 Direct 0 0 12.0.0.1 GE0/012.0.0.1/32 Direct 0 0 127.0.0.1 InLoop012.0.0.255/32 Direct 0 0 12.0.0.1 GE0/021.0.0.0/24 Direct 0 0 21.0.0.1 GE0/121.0.0.0/32 Direct 0 0
42、21.0.0.1 GE0/121.0.0.1/32 Direct 0 0 127.0.0.1 InLoop021.0.0.255/32 Direct 0 0 21.0.0.1 GE0/1127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.0/24 Direct 0 0 192.168.1.1
43、Loop0192.168.1.0/32 Direct 0 0 192.168.1.1 Loop0192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.255/32 Direct 0 0 192.168.1.1 Loop0192.168.2.2/32 Static 1 0 12.0.0.2 GE0/0-只显示高优先级的路由,出口G0/0224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0255.255.255.255/32 Direct 0 0 127
44、.0.0.1 InLoop0RoNetwork_Deptdis ip ro 192.168.2.2Summary Count : 1Destination/Mask Proto Pre Cost NextHop Interface192.168.2.2/32 Static 1 0 12.0.0.2 GE0/0RoNetwork_Deptint g0/0RoNetwork_Dept-GigabitEthernet0/0sh 再次关闭G0/0接口,看看路由表的变化RoNetwork_Dept-GigabitEthernet0/0%Aug 22 12:24:56:174 2014 RoNetwork
45、_Dept IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/0 changed to down.%Aug 22 12:24:56:177 2014 RoNetwork_Dept IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to down.RoNetwork_Dept-GigabitEthernet0/0dis ip roDestinations : 17 Routes : 17De
46、stination/Mask Proto Pre Cost NextHop Interface0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop021.0.0.0/24 Direct 0 0 21.0.0.1 GE0/121.0.0.0/32 Direct 0 0 21.0.0.1 GE0/121.0.0.1/32 Direct 0 0 127.0.0.1 InLoop021.0.0.255/32 Direct 0 0 21.0.0.1 GE0/1127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0192.168.1.0/24 Direct 0 0 192
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 房屋租赁合同范例样式
- 放射治疗试题库与答案
- 电机维修质保合同范例
- 内科考试模拟题(含答案)
- 管理学考试题含答案
- 新房建筑合同范例
- 地产咨询合同范例
- 定制皮质物品合同范例
- 专销低价混凝土合同范例
- 2025年河池货运从业资格证模拟考试题库
- 老年患者围术期ERAS护理
- 2024年合肥百姓公共服务云平台有限公司招聘笔试冲刺题(带答案解析)
- 沙门菌感染的人工智能与机器学习应用
- 电气工程及其自动化大学生职业规划
- 第四单元+和谐与梦想+复习课件 统编版道德与法治九年级上册
- 《公寓运营方案》课件
- Linux配置与管理智慧树知到期末考试答案2024年
- 2024中国华电集团限公司校招+社招高频考题难、易错点模拟试题(共500题)附带答案详解
- 《卫生检疫》期末复习选择题及答案
- 石家庄藁城市2023-2024学年八年级上学期期末数学测试卷(含答案)
- 福建省漳州市2023~2024学年高一上学期期末质量检测地理试题(含答案解析)
评论
0/150
提交评论