!
intece serial 0
ip address 192.200.10.6 255.255.255.252
ip ospf authentication-key cisco
!
router ospf 200
network 192.200.10.4 0.0.0.3 area 0
network 192.1.0.64 0.0.0.63 area 2
area 0 authentication
!
例2.消息摘要(md5)身份验证:
Router1:
intece ethernet 0
ip address 192.1.0.129 255.255.255.192
!
intece serial 0

ip address 192.200.10.5 255.255.255.252
ip ospf message-digest-key 1 md5 cisco
!
router ospf 100
network 192.200.10.4 0.0.0.3 area 0
network 192.1.0.128 0.0.0.63 area 1
area 0 authentication message-digest
!
Router2:
intece ethernet 0
ip address 192.1.0.65 255.255.255.192
!
intece serial 0
ip address 192.200.10.6 255.255.255.252
ip ospf message-digest-key 1 md5 cisco
!
router ospf 200
network 192.200.10.4 0.0.0.3 area 0
network 192.1.0.64 0.0.0.63 area 2
area 0 authentication message-digest
!
相关调试命令:
debug ip ospf adj
debug ip ospf events
OSPF基本配置命令
配置LOOPBACK接口地址
ROUTER(config)#inteceloopback0
ROUTER(config)#ipaddressIP地址掩码
●ospf区域的配置
routerospf100/*区域号在锐捷低端设备(交换机S3550,路由器R2621)里是不需要指定区域号的*/
network192.168.1.00.0.0.255area0
router-id192.168.2.1手动设置router-id
area1default-cost50手动设置开销
#cleanipospfprocess
●配置ospf明文认证
inteces0
ipospfauthentication
ipospfauthentication-key<;密码>
●配置ospf密文认证
inteces0
ipospfauthentication
ipospfmessage-digest-key1md57<;密码>
●debugipospfadj开启ospf调试
showipprotocols
showipospfinteces0
●手动配置接口花销,带宽,优先级
inters0
ipospfcost200
bandwidth100
ipospfpriority0
●虚链路的配置
routerospf100
area<area-id>virtual-link<router-id>
showipospfvirtual-links
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-39618-2.html
不卡
今天用了十几个小时就没电了