Cisco CCNP 642-901 BSCI Exam Tutorial: EIGRP Adjacencies And Secondary Addresses

Jan 11
18:19

2007

Chris Bryant

Chris Bryant

  • Share this article on Facebook
  • Share this article on Twitter
  • Share this article on Linkedin

In contrast to what some CCNP documentation states, you can form an EIGRP adjacency with secondary addresses - but you have to be careful! Learn the details from Chris Bryant, CCIE #12933.

mediaimage

I've read some non-Cisco documentation that EIGRP will not allow adjacencies to form when secondary addresses are used.  This is incorrect,Cisco CCNP 642-901 BSCI Exam Tutorial:  EIGRP Adjacencies And Secondary Addresses Articles but there is one common error that can result if both addresses are not secondary.  To fully prepare for the 642-901 BSCI exam, you should know about this error.  Let's take a look at R2 and R3, which will be using secondary addresses to form an EIGRP adjacency across an ethernet segment.

R2(config)#interface ethernet0

R2(config-if)#ip address 172.12.23.2 255.255.255.0

R2(config-if)#ip address 23.23.23.2 255.255.255.0 secondary

R2(config)#router eigrp 100

R2(config-router)#no auto-summary

R2(config-router)#network 23.23.23.0 0.0.0.255

R3(config)#interface ethernet0

R3(config-if)#ip address 172.12.23.3 255.255.255.0

R3(config-if)#ip address 23.23.23.3 255.255.255.0 secondary

R3(config)#router eigrp 100

R3(config-router)#no auto-summary

R3(config-router)#network 23.23.23.0 0.0.0.255

Here's the partial output of show ip eigrp neighbor on R3:

R3#show ip eigrp neighbor

IP-EIGRP neighbors for process 100

H   Address                 Interface

0   172.12.23.2             Et0

The adjacency has formed!  Note the address is actually the primary IP address on the interface, even though we used the secondary network number in the EIGRP network command.  Personally, I stay away from secondary network numbers if at all possible, but you should know that secondary IP addresses can be used to create EIGRP adjacencies.

What's the common error with using secondary addresses, you asked?  It's when an address from the same subnet is the primary interface address on one neighbor and the secondary interface address on another. Let's say we had configured R2 and R3 as follows:

R2(config)#int e0

R2(config-if)#ip address 23.23.23.2 255.255.255.0

R3(config)#interface ethernet0

R3(config-if)#ip address 172.12.23.3 255.255.255.0

R3(config-if)#ip address 23.23.23.3 255.255.255.0 secondary

On R2, we get this message:

01:54:05: IP-EIGRP: Neighbor 172.12.23.3 not on common subnet for Ethernet0 (23.23.23.2 255.255.255.0)

Since we configured 23.23.23.2 as a primary interface address on R2, the EIGRP process is looking at the primary interface address on potential neighbors.  R3's primary ethernet0 address is 172.12.23.2, so you get the "not on common subnet" error message - and what you don't get is an adjacency! That's something to be aware of on your 642-901 BSCI exam as well as when working with EIGRP in production networks.