cisco ospf命令总结.docx
《cisco ospf命令总结.docx》由会员分享,可在线阅读,更多相关《cisco ospf命令总结.docx(6页珍藏版)》请在三一办公上搜索。
1、cisco ospf命令总结今天花了一天时间把ospf的基本命令都总结了.绝对心血啊. OSPF配置命令 Router(config)#router ospf 10 进程号只在本地有效 Router(config)#network 192.168.10.0 0.0.0.255 area 0 正反掩码均可 Show ip protocols Show ip route 查看路由表 Show ip route ospf 查看路由表中的OSPF路由项 Show ip ospf neighbors detail 显示OSPF邻居 Show ip ospf 显示OSPF路由器的各项信息 Show ip
2、ospf interface f0/1 brief 显示接口的OSPF信息 Show ip ospf database router 显示各类LSA Show ip ospf database router 192.168.20.2 Debug ip ospf adj 显示邻居关系的建立 Show ip ospf border-routers 可以看到ASBR和ABR,但不能看到自已的角色,只能看到其它路由器的角色 Show ip ospf database-summary LSDB的汇总信息 查看各类LSA的方法: Show ip ospf database router 查看一类LSA 域
3、内 Show ip ospf database network 查看二类LSA MA网络 Show ip ospf database summary 查看三类LSA 域间 Show ip ospf database asbr-summary 查看四类LSA Show ip ospf database external 查看五类LSA 域外 Show ip ospf database nssa-external 查看七类LSA 指定RID、修改路由器优先级、修改hello间隔、dead时间、接口带宽、ospf接口的cost值,修改cost计算公式的分子 Router(config-router)
4、#router-id 1.1.1.1 指定RID Router(config-if)#ip ospf priority 0-255 注意在接口下改 Router(config-router)#clear ip ospf process 重新启动OSPF路由选择进程,如果希望本路由器成为DR,则在更改优先级后用这一命令重新启动进程才能成为DR Router(config-if)#ip ospf hello-interval 10 Router(config-if)#ip ospf dead-interval 40默认是hello间隔的四倍 Router(config-if)#bandwidth
5、5000 修改带宽,可通过修改带宽实现修改cost值的目的,这个属性是接口本身的属性。不起OSPF也能进行修改,且对其它路由进程同时产生效果 Router(config-if)#ip ospf cost 30 直接修改本接口在OSPF中的cost值 Router(config-router)#auto-cost reference-bandwidth 1000 修改COST计算公式的分子,单位是Mbps,即十的六次方 路由汇总: Router(config-router)#area 0 range 172.16.32.0 255.255.254.0 域间汇总,area 0 是被汇总的区域,建议
6、在本区域所有ABR上都做 Router(config-router)#summary-address 10.0.0.0 255.0.0.0 域 *总,在ASBR的进程中做 下发默认路由:有两种方法 Router(config)#ip route 0.0.0.0 0.0.0.0 serial 0 Router(config-router)#default-information originate 如果没有写默认路由,用下面这种: Router(config-router)#default-information originate always metric-type 1 metric 3 实
7、际上这条命令也只能吸引路由,并不能指向一个网关,所以还是要配一个默认网关 配置stub区域区域内的每台路由器都要打上命令 Router(config-router)#area 2 stub 将area2配置为stub区域 Router(config-router)#area 2 default-cost 5 将自动下发的默认路由的cost值改为5,默认情况下是1 配置totally stub区域 Router(config-router)#area 2 stub no-summary 只需在ABR上配 配置NSSA区域 Router(config-router)#area 2 nssa R2(
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- cisco ospf命令总结 ospf 命令 总结
![提示](https://www.31ppt.com/images/bang_tan.gif)
链接地址:https://www.31ppt.com/p-3154759.html