Unless you have a software or hardware bug which actually prevents stub router functionality, the most common problems with stub routing are prefix advertisement. As stated previously, stub router will advertise only connected and summary routes by default. This happens regardless of whether or not any other routes, e.g. static routes, are included in the configurednetwork statement on the stub router. Consider the topology illustrated in Figure 5-5:
Fig. 5-5. EIGRP Stub Routing
Referencing Figure 5-5, R2 has some directly connected interfaces in the 10.1.1.0/24, 10.1.2.0/24, and 10.1.3.0/24 as well as some static routes: 192.168.1.0/24, 192.168.2.0/24, and 192.168.3.0/24. The router has been configured as an EIGRP stub router as follows:
| R2(config)#router eigrp 150 R2(config-router)#network 10.1.0.0 0.0.255.255 R2(config-router)#network 192.168.0.0 0.0.255.255 R2(config-router)#eigrp stub R2(config-router)#no auto-summary R2(config-router)#exit |
Following this configuration, R1 (the hub) shows the following entries in its routing table:
| R1#show ip route eigrp 10.0.0.0/24 is subnetted, 5 subnets D 10.1.3.0 [90/156160] via 172.16.1.2, 00:09:51, FastEthernet0/0 D 10.3.0.0 [90/2297856] via 172.16.0.2, 00:43:49, Serial0/0 D 10.1.2.0 [90/156160] via 172.16.1.2, 00:09:51, FastEthernet0/0 D 10.1.1.0 [90/156160] via 172.16.1.2, 00:09:51, FastEthernet0/0 |
To resolve this, the stub router must be reconfigured to advertise statics as follows:
| R2(config)#router eigrp 150 R2(config-router)#eigrp stub connected static R2(config-router)#exit |
NOTE: If you omit the connected keyword, then only the static routes will be advertised.
Following this configuration change, the routing table of R1 shows the following:
| R1#show ip route eigrp 10.0.0.0/24 is subnetted, 5 subnets D 10.1.3.0 [90/156160] via 172.16.1.2, 00:00:07, FastEthernet0/0 D 10.3.0.0 [90/2297856] via 172.16.0.2, 00:47:04, Serial0/0 D 10.1.2.0 [90/156160] via 172.16.1.2, 00:00:07, FastEthernet0/0 D 10.1.1.0 [90/156160] via 172.16.1.2, 00:00:07, FastEthernet0/0 D 192.168.1.0/24 [90/28160] via 172.16.1.2, 00:00:07, FastEthernet0/0 D 192.168.2.0/24 [90/28160] via 172.16.1.2, 00:00:07, FastEthernet0/0 D 192.168.3.0/24 [90/28160] via 172.16.1.2, 00:00:07, FastEthernet0/0 |
