Figure 28-3 Example of configuring OSPF authentication
Concrete Configuration of Devices
The authentication configuration of the OSPF involves two parts:
2. Specifying the authentication mode of the area in the routing configuration mode;
3. Configuring the authentication method and key in the interface.
If both the area authentication and interface authentication are configured, the interface
authentication shall be applied.
Configuration of Device A:
#Configuring Ethernet interface
interface FastEthernet0/0
ip address 192.168.12.1 255.255.255.0
ip ospf message-digest-key 1 md5 hello
#Configuring OSPF routing protocol
router ospf 1
network 192.168.12.0 0.0.0.255 area 0
area 0 authentication message-digest
Configuration of Device B:
#Configuring Ethernet interface
interface FastEthernet0/0
ip address 192.168.12.2 255.255.255.0
ip ospf message-digest-key 1 md5 hello
#Configuring OSPF routing protocol
router ospf 1
network 192.168.12.0 0.0.0.255 area 0
area 0 authentication message-digest
28.4.4 Example of configuring route
summary
Configuration requirements: