ospf认证
1.明文认证
2.md5认证
0不认证
1明文认证
2md5认证
ip ospf authentication-key mykey
ip ospf authenticion
或
area 0 authentication
1.接口
2.区域
3.虚链路
r2:
int lo0
ip add 2.2.2.2 255.255.255.0
no sh
int f0/0
ip add 10.1.234.2 255.255.255.0
no sh
router ospf 1
router-id 2.2.2.2
net 2.2.2.2 0.0.0.0 aerae 0
net 10.1.234.2 0.0.0.0 area 0
r3:
int lo0
ip add 3.3.3.3 255.255.255.0
int f0/0
ip add 10.1.234.3 255.255.255.0
no sh
router ospf 1
router-id 3.3.3.3
net 10.1.234.3 0.0.0.0 area 0
net 3.3.3.3 0.0.0.0 area 0
r4:
int lo0
ip add 4.4.4.4 255.255.255.0
int f0/0
ip add 10.1.234.4 255.255.255.0
no sh
router ospf 1
router-id 4.4.4.4
net 10.1.234.4 0.0.0.0 aera 0
net 4.4.4.4 0.0.0.0 area 0
r2:
int f0/0
ip ospf authentication-key cisco(接口明文认证)
ip ospf authentication
r3:
int f0/0
ip ospf authentication-key cisco
ip ospf authentication
r4:
int f0/0
ip ospf autehtncation-key cisco
ip ospf authetication
r2:
int f0/0
ip ospf authentication message-digest(启用接口md5认证)
r2:
router ospf 1
area 0 authentication (启用区域明文认证)
r3:
router ospf 1
area 0 authentication
r4:
router ospf 1
area 0 authentication
area 0 au message-digest(启用区域md5认证)
r2:
int f0/0
ip ospf au-key cisco
ip ospf authentication message-digest
r3:
int f0/0
ip ospf au-key cisco
ip ospf authentication message-digest
r4:
int f0/0
ip ospf au-key cisco
ip ospf authentication message-digest
int s1/3
ip add 45.1.1.4 255.255.255.0
router ospf 1
net 45.1.1.3 0.0.0.0 area 45
r5:
int s1/3
no sh
clock rate 64000
ip add 45.1.1.5 255.255.255.0
int lo0
ip add 5.5.5.5 255.255.255.0
router ospf 1
router-id 5.5.5.5
net 45.1.1.5 0.0.0.0 area 45
net 5.5.5.5 0.0.0.0 area 45
r5:
int lo4
ip add 192.168.4.1 255.255.255.255
router ospf 1
net 192.168.4.1 0.0.0.0 area 1
area 45 virtual-link 4.4.4.4
r4:
router ospf 1
area 45 virtual-link 5.5.5.5
区域0做了认证虚链路也需要做认证
r5:
router ospf 1
area 0 authentication message-digest
area 45 virtula-link 4.4.4.4 authentication
area 45 virtula-link 4.4.4.4 authentication-key cisco
r4:
area 45 virtula-link 5.5.5.5 au-key cisco
area 45 virtual-link 5.5.5.5 authen
标签:0.0,area,int,ip,31,authentication,链路,ospf,路由 From: https://www.cnblogs.com/smoke520/p/18362015