您的位置:首页 > 其它

Cisco Router and switch 配置命令(三)

2009-08-06 09:02 447 查看
一、静态路由协议设置
router(config)#ip route network submask(要到达的网络号掩码)ip address(下一跳或出口ip地址)
router(config)#ip route 0.0.0.0 s0(出口端口或下一跳IP地址)

二、rip设置
router(config)#router rip
router(config-router)#network network-number
router#show ip protocol查看RIP信息
router#show ip route 查看路由表
router#debug ip rip查看RIP更新信息
router(config-router)#passive-interface e0(阻止发出作息)
router(config-router)#ip rip receive version 1 2接收1、2RIP版本信息

三、igrp设置
router(config)#router igrp as number
router(config-router)#network network number
router#show ip route 查看路由表
router#debug ip igrp events 查看IGRP路由更新大概信息
router#debug ip igrp transaction 查看IGRP路由更新详细信息
Router(config-router)#variance multiplier 控制 IGRP load balancing
Router(config-router)#traffic-share {balanced | min}控制load-balanced traffic 的分布
四、eigrp设置
router(config)#router eigrp as number
router(config-router)#network network number
router(config)#no auto-summry 关闭自动汇总
router(config)# auto-summry 打开自动汇总(默认是打开的)
router#show ip route eigrp 显示当前的路由表里的EIGRP条目
router#show ip protocol 显示活动的路由协议进程的参数和当前的状态
router#show ip eigrp neighbors 显示被EIGRP发现的邻居
router#show ip eigrp traffic 显示发出和收到的IP EIGRP 包的数量
router#show ip eigrp topology 显示IP EIGRP的拓扑表
   Router#debug ip eigrp

五、ospf设置
1. Router(config)#router ospf process-id

Router(config-router)#network address(可以是网络号也可以是Ip地址 mask(通配掩码 )area area-id

Router(config-if)# ip ospf priority numbe 配置OSPF的优先级
Router#show ip protocols 验证OSPF的配置

Router#show ip route 显示路由器学到的所有路由

Router#show ip ospf interface type number 显示 area-ID 和邻接信息

Router#show ip ospf neighbor 基于每接口显示OSPF邻居信息

Router#debug ip ospf events

Router#debug ip ospf packet
2. Router(config)# interface loopback number(lookback回路配置)

Router(config-if)# ip address ip-address subnet-mask
Router(config-if)# ip ospf cost cost-numbe 修改OSPF 的Cost数值

Router(config-if)# ip ospf authentication-key key 配置明文口令

Router(config-if)# ip ospf messge-digest-key keyid md5 key 配置MD5口令

(keyid和key必须配对一致,两邻居才可以通信)

Router(config-route)# area area-id authentication [message-digest]

message-digest为可选 项,使用后路由器只传送口令消息的摘要(或散列) 配置OSPF区域的验证:
3. Router(config-if)# ip ospf hello-interval seconds 配置hello间隔:

Router(config-if)# ip ospf dead-interval seconds配置down机判断间隔
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: