手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网络知识>Cisco技术>列表

Cisco IOS Cookbook 中文精简版第十六章路由器接口

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

16.1. 查看接口状态

提问 查看当前路由器接口状态

回答

Router1#show interfaces

Router1#show interfaces FastEthernet0/1

Router1#show ip interface brief

Router1#show ip interface FastEthernet0/1

注释 show interface命令得输出有很多得信息,网上一些中文文档详细介绍输出得含义,这里不翻译了。Txloadrxload这两个测量值得周期缺省是5分钟,可以使用load-interval 60 命令来修改其为60秒,必须是30得倍数,最长10分钟。再来一个隐藏命令

Router1#show interfaces FastEthernet0/1 stats

FastEthernet0/1

Switching path Pkts In Chars In Pkts Out Chars Out

Processor 294567 18704930 239526 22219870

Route cache 7758 681257 48303 6129834

Total 302325 19386187 287829 28349704

Processorprocess switchingRoute cacheFast Switching

16.2. 配置串行接口

提问 为广域网连接配置串行接口

回答

Router3#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router3(config)#interface Serial1

Router3(config-if)#description WAN Connection to Chicago

Router3(config-if)#ip address 192.168.99.5 255.255.255.252

Router3(config-if)#encapsulation hdlc

Router3(config-if)#clock rate 56000

Router3(config-if)#no shutdown

Router3(config-if)#exit

Router3(config)#end

Router3#

注释 DCE侧需要配置clock rate,如果是DTE配置了clock rate路由器会忽略此配置。通过show controller serial 命令来判断连接线缆得类型。缺省情况路由器会认为串口为1.544M带宽,而实际可能不是,为了准确进行路由协议度量值计算,需要人工

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!