To specify the type of authentication used in Enhanced Interior Gateway Routing Protocol (EIGRP) address-family or service-family packets for an EIGRP instance, use the
authentication
mode command in address family interface configuration mode or service family interface configuration mode. To disable a configured authentication type, use the
no form of this command.
Command Modes
Address family interface configuration (config-router-af-interface)
Service family interface configuration (config-router-sf-interface)
Usage Guidelines
You can configure authentication to prevent unapproved sources from introducing unauthorized or false service messages.
When the
authentication
mode(EIGRP)command is used in conjunction with the
authentication
key-chain command, an MD5 keyed digest is added to each EIGRP packet.
To configure basic HMAC-SHA-256 authentication, use the
authentication
mode
hmac-sha-256 command on each interface of each router that should use authentication.
Examples
The following example shows how to configure the interface to use MD5 authentication in address-family packets:
Router(config)# router eigrp virtual-name
Router(config-router)# address-family ipv4 autonomous-system 1
Router(config-router-af)# af-interface ethernet0/0
Router(config-router-af-interface)# authentication key-chain TEST1
Router(config-router-af-interface)# authentication mode md5
The following example shows how to configure the interface to use MD5 authentication in service-family packets:
Router(config)# router eigrp virtual-name
Router(config-router)# service-family ipv4 autonomous-system 1
Router(config-router-sf)# sf-interface ethernet0/0
Router(config-router-sf-interface)# authentication key-chain TEST1
Router(config-router-sf-interface)# authentication mode md5
The following example shows how to configure the interface to use basic HMAC SHA authentication with password password1 in address-family packets:
Router(config)# router eigrp virtual-name
Router(config-router)# address-family ipv6 autonomous-system 4453
Router(config-router-af)# af-interface ethernet 0
Router(config-router-af-interface)# authentication mode hmac-sha-256 7 password1
The following example shows how to configure an interface to use basic HMAC SHA authentication with password password1 in service-family packets:
Router(config)# router eigrp virtual-name
Router(config-router)# service-family ipv4 autonomous-system 6473
Router(config-router-sf)# sf-interface ethernet 0
Router(config-router-sf-interface)# authentication mode hmac-sha-256 7 password1