Thay đổi chi phí cho một giá trị là năm 1564. Chú ý: Chi phí của một liên kết được xác định bằng cách chia băng thông tham khảo băng thông giao diện. Các băng thông của giao diện là một con số từ 1 đến . Các đơn vị đo lường là kilobits. Chi phí là một số từ 1 đến . Chi phí không có đơn vị đo lường, nó chỉ là một số. | Configuring OSPF Optional Commands 95 Modifying Cost Metrics Router config interface serial 0 0 Changes the router to interface configuration mode. Router config-if bandwidth 128 If you change the bandwidth OSPF recalculates the cost of the link. Or Router config-if ip ospf cost 1564 Changes the cost to a value of 1564. NOTE The cost of a link is determined by dividing the reference bandwidth by the interface bandwidth. The bandwidth of the interface is a number between 1 and 10 000 000. The unit of measurement is kilobits. The cost is a number between 1 and 65 535. The cost has no unit of measurement it is just a number. Authentication Simple Router config router ospf 1 Starts OSPF process 1. Router config-router area 0 authentication Enables simple authentication password will be sent in clear text. Router config-router exit Returns to global configuration mode. Router config interface fastethernet 0 0 Moves to interface configuration mode. Router config-if ip ospf authentication-key fred Sets key password to fred. NOTE The password can be any continuous string of characters that can be entered from the keyboard up to 8 bytes in length. To be able to exchange OSPF information all neighboring routers on the same network must have the same password. 96 Configuring OSPF Optional Commands Authentication Using MD5 Encryption Router config router ospf 1 Starts OSPF process 1. Router config-router area 0 authentication message-digest Enables authentication with MD5 password encryption. Router config-router exit Returns to global configuration mode. Router config interface fastethernet 0 0 Moves to interface configuration mode. Router config-if ip ospf messagedigest-key 1 md5 fred 1 is the key-id. This value must be the same as that of your neighboring router. md5 indicates that the MD5 hash algorithm will be used. fred is the key password and must be the same as that of your neighboring router. NOTE If the service passwordencryption command is not used when implementing