欢迎来到天天文库
浏览记录
ID:51688954
大小:46.00 KB
页数:2页
时间:2020-03-15
《H3C路由器静态路由配置综合实例.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、静态路由配置案例。 路由器A配置: [routeA]interfacee0 [routeA-e0]ipaddress192.168.0.1255.255.255.0 [routeA]interfaces0 [routeA-s0]ipaddress192.168.1.1255.255.255.0 [routeA-s0]link-protocolppp [配置封装协议] [routeA]iproute-static192.168.3.0255.255.255.0192.168.1.2 preference60 [设置静态路由,优先级为60] 路由器B配
2、置: [routeB]interfacee0 [routeB-e0]ipaddress192.168.3.1255.255.255.0 [routeB]interfaces0 [routeB-s0]ipaddress192.168.2.1255.255.255.0 [routeA-s0]link-protocolppp [配置封装协议] [routeA]iproute-static192.168.0.0255.255.255.0192.168.1.1 preference60 [设置静态路由,优先级为60] 使用默认路由配置: 缺省路由也
3、是一种静态路由.简单地说,缺省路由就是在没有找到任保匹配置的路由项情况下,才使用的路由.即只有当无任何合适的路由时,缺省路由才被使用. [rotueA]iproute-statci 0.0.0.00.0.0.0s0 preference60 『注意』 上面命令中用到了Serial0,接口的名字,如串口封装PPP或HDLC协议,这时可以不用指定下一跳地址,只需指定发送接口即可。对于以太口,Serial口封装了非点到点协议比如fr、x25等,必须配置下一跳的ip地址。
此文档下载收益归作者所有