Get the App
SLTechnology News&Howtos  ›  Network Security  › 

3. Route injection in EIGRP configuration experiment

Shulou Source: shulou.com Published: 2022-06-01 06:12:54 10月03日 Update

1. Experimental Topology

2. Basic configuration

R1

Interface Serial0/0

Ip address 12.1.1.1 255.255.255.0

R2

Interface Serial0/0

Ip address 12.1.1.2 255.255.255.0

Interface Serial0/1

Ip address 23.1.1.2 255.255.255.0

Router eigrp 90

Network 23.1.1.0 0.0.0.255

No auto-summary

R3

Interface Serial0/0

Ip address 34.1.1.3 255.255.255.0

Serial restart-delay 0

Interface Serial0/1

Ip address 23.1.1.3 255.255.255.0

Serial restart-delay 0

Router eigrp 90

Network 23.1.1.0 0.0.0.255

Network 34.1.1.0 0.0.0.255

Auto-summary

R4

Interface Serial0/0

Ip address 34.1.1.4 255.255.255.0

Router eigrp 90

Network 34.1.1.0 0.0.0.255

Auto-summary

3. Three kinds of route injection methods

Redistribution: add a 0.0.0.0 default route to redistribute the default route in the EIGRP routing process

Notice: add a 0.0.0.0 default route that network advertises during the EIGRP routing process

Ip default-network:

First of all, the network behind the ip default-network must be the main network of the network segment where the outer network port is located.

Second, network advertises the main type of network during the EIGRP routing process

Finally, there must be a route to the primary network. If not, you can add it manually.

4. Redistribution configuration

R2 (config) # ip route 0.0.0.0 0.0.0.0 s0max 0

R2 (config) # router eigrp 90

R2 (config-router) # redistribute static

R3#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 23.1.1.2 to network 0.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

C 23.1.1.0 is directly connected, Serial0/1

D*EX 0.0.0.0/0 [170/2681856] via 23.1.1.2, 00:00:04, Serial0/1

R3#

R4#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 34.1.1.3 to network 0.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

D 23.1.1.0 [90/2681856] via 34.1.1.3, 00:01:51, Serial0/0

D*EX 0.0.0.0/0 [170/3193856] via 34.1.1.3, 00:00:12, Serial0/0

R4#

The redistributed static route is an external route, so its AD is 170,

5. Advertisement configuration

R2 (config) # ip route 0.0.0.0 0.0.0.0 s0max 0

R2 (config) # router eigrp 90

R2 (config-router) # network 0.0.0.0

R3#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 23.1.1.2 to network 0.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

C 23.1.1.0 is directly connected, Serial0/1

12.0.0.0/24 is subnetted, 1 subnets

D 12.1.1.0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1

D* 0.0.0.0 via 0 [90Acer 2681856] 23.1.1.2, 00:00:02, Serial0/1

R3#

R4#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 34.1.1.3 to network 0.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

D 23.1.1.0 [90/2681856] via 34.1.1.3, 00:03:29, Serial0/0

12.0.0.0/24 is subnetted, 1 subnets

D 12.1.1.0 [90/3193856] via 34.1.1.3, 00:00:28, Serial0/0

D* 0.0.0.0 via 0 [90Acer 3193856] 34.1.1.3, 00:00:28, Serial0/0

R4#

The static route advertised by network is internal, so its AD is 90

6. Ip default-network configuration

R2 (config) # ip default-network 12.0.0.0

R2 (config) # router eigrp 90

R2 (config-router) # network 12.0.0.0 0.255.255.255

R2 (config-router) # exit

R2 (config) # ip route 12.0.0.0 255.0.0.0 null 0

R3#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 23.1.1.2 to network 12.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

C 23.1.1.0 is directly connected, Serial0/1

12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D 12.1.1.0/24 [90/2681856] via 23.1.1.2, 00:01:28, Serial0/1

D* 12.0.0.0 via 8 [90Acer 2169856] 23.1.1.2, 00:00:35, Serial0/1

R3#

R4#show ip route

Codes: C-connected, S-static, R-RIP, M-mobile, B-BGP

D-EIGRP, EX-EIGRP external, O-OSPF, IA-OSPF inter area

N1-OSPF NSSA external type 1, N2-OSPF NSSA external type 2

E1-OSPF external type 1, E2-OSPF external type 2

I-IS-IS, su-IS-IS summary, L1-IS-IS level-1, L2-IS-IS level-2

Ia-IS-IS inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route

Gateway of last resort is 34.1.1.3 to network 12.0.0.0

34.0.0.0/24 is subnetted, 1 subnets

C 34.1.1.0 is directly connected, Serial0/0

23.0.0.0/24 is subnetted, 1 subnets

D 23.1.1.0 [90/2681856] via 34.1.1.3, 00:06:38, Serial0/0

12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D 12.1.1.0/24 [90/3193856] via 34.1.1.3, 00:01:59, Serial0/0

D* 12.0.0.0 via 8 [90Acer 2681856] 34.1.1.3, 00:01:07, Serial0/0

R4#

Tags: Routing configuration network advertisement process method static plus one lab foundation location manual topology network port network segment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Huawei Linux Shulou Technology MySQL