key chain Bruce
key 1
key-string Hkey1
interface serial 0/0.1
ip authentication key-chain eigrp 15 Bruce
ip authentication mode eigrp 15 md5
#show ip route
#show ip eigrp neighbors
#debug eigrp packets
#debug ip eigrp neighbor 75 192.168.16.19 //EIGRP 75并且邻居是192.168.16.19
#debug eigrp neighbors
#debug eigrp packets
(config)#interface fastethernet 0/0
(config-if)#ip access-group 150 in
access-list 150 permit tcp any any established
access-list 150 permit icmp any any
access-list 150 permit eigrp 192.168.16.16 0.0.0.15 any //允许EIGRP数据包
#show ip ospf neighbor
#show ip ospf interface Serial 1/1.738
#show ip ospf neighbor 10.7.0.1
#debug ip ospf adj
#show ip ospf database
#show ip ospf database database-summary
#show ip ospf database router 192.168.30.10
#show ip ospf database network 192.168.17.18
#show ip ospf database summary 172.16.121.0
#show ip ospf database asbr-summary
#show ip ospf database external
#show ip ospf database external 10.83.10.0
#show ip ospf database nssa-external
#show ip route
#show ip ospf border-routers
(config)#router ospf 10
(config-router)#network 192.168.30.0 0.0.0.255 area 0
#show ip ospf database
#debug ip ospf adj
#show logging
#show ip ospf database database-summary
#show ip ospf border-routers
#show ip ospf neighbor
#show ip route
#show ip ospf interface serial 0/0
----------------------------------------------------------------------
命令 | 描述
----------------------------------------------------------------------
area area-id authentication[message-digest] | 使一个区域的类型1或者类型2的认证有效
area area-id default-cost cost | 为ABR路由器发送到一个末梢区域的缺省
| 路由指定一个代价值
area area-id filter-list prefix prefix_list_name [out|in] | 定义一个类型3LSA的过滤列表
area area-id nssa [no-redistribution][default-information-originate][no-summary]
[translate type 7 suppress-fa] | 配置一个区域为非纯末梢区域(NSSA)
area area-id range address mask [advertise|not-advertise][cost] | 汇总地址进入或离开
| 一个区域,并可以指定汇总地址的代价
area area-id stub [no-summary] | 配置一个区域作为末梢区域或完全末梢区域
area area-id virtual-link router-id | 在ABR路由器之间定义一条虚链路
debug ip ospf adj | 显示有关一个OSPF邻接关系的创建或中断的事件
[no] discard-route {internal|external} | no discard-route去除了自动创建静态路由到Null接口
ip ospf authentication-key password | 使用类型1的认证方式分配一个口令给一个OSPF接口
ip ospf cost cost | 在一个OSPF接口上指定出站接口的代价大小
ip ospf dead-interval seconds | 在一个接口上指定OSPF的RouterDeadinterval大小
ip ospf demand-circuit | 配置一个接口作为OSPF按需链路
ip ospf hello-interval seconds | 为一个接口指定OSPF的HelloInterval的值
ip ospf message-digest-key key-id md5 key | 使用类型2的认证方式指定一个接口的密钥(口令)
ip ospf name-lookup | 使域名的反向DNS域名查找有效,以便在某些show
| 命令匹配路由器ID
ip ospf network [broadcast][nonbroadcast][point-to-multipoint] | 配置OSPF网络类型
ip ospf priority number | 设置一个接口的路由器优先级,以便用来
| 选取DR和BDR路由器
ip ospf retransmit-nterval seconds | 设置一个接口的OSPF RxmtInterval值
ip ospf transmit-delay seconds | 设置一个接口的OSPF InfTransDelay值
ip prefix-list prefix_list_name [seq num]{deny|permit} address/length
| 定义一个前缀列表,指定那些地址被允许或拒绝
log-adjacency-changes [detail] | 记录邻居状态的变化
maximum-paths | 设置OSPF执行负载均衡的最大路径数量
neighbor ip-address [priority number][poll-intervl seconds][cost cost]
| 在一个非广播网络上手工配置邻居路由器
network address inverse-mask area area-id | 指定运行OSPF协议的接口,并指定这些接
| 口相连的OSPF区域
ospf auto-cost reference-bandwidth reference-bandwidth | 为计算链路的代价,改变缺省
| 的OSPF参考带宽
router ospf process-id | 启动一个OSPF路由选择进程
show ip ospf [process-id] | 显示有关OSPF路由选择进程的一般信息
show ip ospf border-routers | 显示一台路由器的内部OSPF路由表
show ip ospf [process-id area-id] database | 显示OSPF链路状态数据库的所有条目
show ip ospf [process-id area-id] database router [link state-id]
| 显示OSPF链路状态数据库中类型1的LSA
show ip ospf [process-id area-id] database network [link state-id]
| 显示OSPF链路状态数据库中类型2的LSA
show ip ospf [process-id area-id] database summary [link state-id]
| 显示OSPF链路状态数据库中类型3的LSA
show ip ospf [process-id area-id] database asbr-summary [link state-id]
| 显示OSPF链路状态数据库中类型4的LSA
show ip ospf [process-id area-id] database nssa-external [link state-id]
| 显示OSPF链路状态数据库中类型7的LSA
show ip ospf [process-id] database external [link state-id]
| 显示OSPF链路状态数据库中类型5的LSA
show ip ospf [process-id area-id] database database-summary | 根据类型和区域ID
| 显示OSPF链路状态数据库中LSA的数量
show ip ospf interface [type number] | 显示一个接口具体的OSPF信息
show ip ospf neighbor [type number][neighbor-id][detail] | 显示OSPF邻居表的信息
show ip ospf virtual-links | 显示有关OSPF虚链路的信息
timer lsa-group-pacing seconds 或 timer pacing lsa-group seconds | 在重刷新计时器
| 超时的两组LSA之间设定的最小步调时间
---------------------------------------------------------------------------------
9. OPSFv3
----------------------------------------------------------------------
(config)#interface serial 0/0
(config-if)#ipv6 address 2001:db8:0:8::1/64
(config-if)#ipv6 ospf 1 area 1
(config)#interface fastethernet 0/0
(config-if)#ipv6 address 2001:db8:0:4::1/64
(config-if)#ipv6 ospf 1 area 0