您好,请知:
1、OSPF的MD5认证,可参考如下配置:
SW1的OSPF配置如下:
router id 1.1.1.1
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.0.0.1 0.0.0.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
ip address 10.0.0.1 255.255.255.252
ospf authentication-mode md5 1 cipher $c$3$J1O4Tlh1daSdYI3IGz2fp2DfYAIWwI3/Bg==
#
SW2的配置如下:
router id 2.2.2.2
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.0.0.2 0.0.0.0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface GigabitEthernet1/0/1
port link-mode route
combo enable fiber
ip address 10.0.0.2 255.255.255.252
ospf authentication-mode md5 1 cipher $c$3$Nc4DqjIVzI168QNMT1aCPw7bUJ9LmWBNQg==
#
2、BGP MD5认证的配置案例如下: