I discussed the EIGRP “network” command in the EIGEP Network Command – The Easy Way Out post, as well as the EIGRP Route Advertising post, and I’m about to discuss it again in this post. Who knew one command would be the source of so many posts! :)

If given incomplete information, the EIGRP “network” command will do its best to help you complete the command, however, unfortunately it doesn’t always guess correctly.

For example, if you wanted to activate EIGRP on a single interface on your router which had the IP address, you’d use the following commands:

R3(config-router)#router ei 10

You could then use the “do” command which I discussed previously to verify that the router took your configuration entry correctly, as per the below:

```R3(config-router)#do sh run | begin router eigrp router eigrp 10 network

However, if you were to accidentally forget to add the wildcard mask to the end of the command and you instead entered:

R3(config-router)#router ei 10 R3(config-router)#network

The router would, incorrectly, take a guess at what you really meant to type, as per the output below:

R3(config-router)#do sh run | begin router eigrp router eigrp 10 network

As you did not specify a wildcard mask, the router identified the IP as a Class B address and therefore only kept the Class B portion of your entry. This is why you need to be very careful when using the **"network"** command and why it is also a good idea to double check your configuration before closing your session.

**Note:** A similar thing occurs when you do not use the [**no auto-summary**](/eigrp-no-auto-summary-command-part-1/ "EIGRP No Auto Summary Command, Part 1") command.

The next EIGRP **"network"** command topic I'd like to discuss is the use of subnet masks. Throughout all of my [**EIGRP posts**](/tags/#eigrp), I have been using wildcard masks in my configuration examples as this is what EIGRP uses to determine which networks and interfaces it should advertise or use. However, you can actually use a subnet mask instead of a wildcard mask and the IOS will automatically convert it to a wildcard mask and add it to the running configuration. Here is an example:

R3(config-router)# network R3(config-router)#do sh run | begin router eigrp router eigrp 10 network ```

As some might find this an easy way of doing things, I recommend manually calculating the wildcard mask yourself as it is not only good practice but may be required for exams that you sit in the future.

As always, if you have any questions or have a topic that you would like me to discuss, please feel free to post a comment at the bottom of this blog entry, e-mail at will@oznetnerd.com, or drop me a message on Reddit (OzNetNerd).

Note: The opinions expressed in this blog are my own and not those of my employer.

Leave a comment