Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Floating route

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

"Network and Technology Application"

Chapter (8)-Experimental report

Real

Check

Ren

Business

Floating route

Detailed

Fine

Real

Check

Step

Sudden

1. Basic configuration

R1 (config) # no ip domain-lo

R1 (config) # line con 0

R1 (config-line) # no exec-t

R1 (config-line) # logg s

R1 (config-line) #

R1 (config-line) #

R1 (config-line) # exit

R1 (config) # int E1 Lacer 0

R1 (config-if) # ip add 12.0.0.1 255.255.255.0

R1 (config-if) # no sh

R1 (config-if) # int E1 Action2

R1 (config-if) # ip add 12.0.1.1 255.255.255.0

R1 (config-if) # no sh

R1 (config) # int E1 Placement 1

R1 (config-if) # ip add 14.0.0.1 255.255.255.0

R1 (config-if) # no sh

R1 (config-if) # router rip

R1 (config-router) # version 2

R1 (config-router) # net 12.0.0.0

R1 (config-router) # net 12.0.1.0

R1 (config-router) # net 14.0.0.0

R1 (config-router) # exit

R1 (config-if) # ^ Z

R2 (config) # no ip domain-lo

R2 (config) # line con 0

R2 (config-line) # no exec-t

R2 (config-line) # logg s

R2 (config-line) #

R2 (config-line) # exit

R2 (config) # int e2ap0

R2 (config-if) # ip add 12.0.0.2 255.255.255.0

R2 (config-if) # no sh

R2 (config-if) # int e2Plat1

R2 (config-if) # ip add 12.0.1.2 255.255.255.0

R2 (config-if) # no sh

R2 (config-if) # int e2ap3

R2 (config-if) # ip add 23.0.0.2 255.255.255.0

R2 (config-if) # no sh

R2 (config-if) # router rip

R2 (config-router) # version 2

R2 (config-router) # net 12.0.0.0

R2 (config-router) # net 12.0.1.0

R2 (config-router) # net 23.0.0.

R2 (config-router) # net 23.0.0.0

R2 (config-router) # ^ Z

R2#

R3 (config) # no ip domain-lo

R3 (config) # line con 0

R3 (config-line) # no exec-t

R3 (config-line) # logg s

R3 (config-line) # exit

R3 (config) # no ip routing-turn off the routing function and simulate it as a host

R3 (config) # int e3pet2

R3 (config-if) # ip add 23.0.0.3 255.255.255.0

R3 (config-if) # no sh

R4 (config) # no ip domain-lo

R4 (config) # line con 0

R4 (config-line) # no exec-t

R4 (config-line) # logg s

R4 (config-line) # exit

R4 (config) # int e0Let0

R4 (config-if) # ip add 14.0.0.4 255.255.255.0

R4 (config-if) # no sh

R4 (config) # no ip routing

R4 (config) #

2. View the routing table

R1#show ip rout

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 not set

R 23.0.0.0/8 [120/1] via 12.0.1.2, 00:00:04, Ethernet1/2

[120/1] via 12.0.0.2, 00:00:18, Ethernet1/0

12.0.0.0/24 is subnetted, 2 subnets

C 12.0.0.0 is directly connected, Ethernet1/0

C 12.0.1.0 is directly connected, Ethernet1/2

14.0.0.0/24 is subnetted, 1 subnets

C 14.0.0.0 is directly connected, Ethernet1/1

R2#show ip rout

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 not set

23.0.0.0/24 is subnetted, 1 subnets

C 23.0.0.0 is directly connected, Ethernet2/3

12.0.0.0/24 is subnetted, 2 subnets

C 12.0.0.0 is directly connected, Ethernet2/0

C 12.0.1.0 is directly connected, Ethernet2/1

R 14.0.0.0/8 [120/1] via 12.0.1.1, 00:00:18, Ethernet2/1

[120/1] via 12.0.0.1, 00:00:00, Ethernet2/0

R2#conf t

3. Test connectivity

R3#ping 14.0.0.4

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 14.0.0.4, timeout is 2 seconds:

!

Success rate is 100 percent (5Compact 5), round-trip min/avg/max = 52 Universe 80 ms

R4#ping 23.0.0.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 23.0.0.3, timeout is 2 seconds:

.!

Success rate is 80 percent (4amp 5), round-trip min/avg/max = 40-65-84 ms

4. Configure floating routing

R1 (config) # ip route 23.0.0.0 255.255.255.0 12.0.0.2 100

R2 (config) # ip route 14.0.0.0 255.255.255.0 12.0.0.1 100

Pay attention to the configuration command of the floating route and add an administrative distance of 0,255 after the static route.

5. View the routing table

R1#clear ip route *-clear the routing table

R1#show ip rout

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 not set

R 23.0.0.0/8 [120/1] via 12.0.1.2, 00:00:02, Ethernet1/2

[120/1] via 12.0.0.2, 00:00:00, Ethernet1/0

12.0.0.0/24 is subnetted, 2 subnets

C 12.0.0.0 is directly connected, Ethernet1/0

C 12.0.1.0 is directly connected, Ethernet1/2

14.0.0.0/24 is subnetted, 1 subnets

C 14.0.0.0 is directly connected, Ethernet1/1

R2#clear ip route *-clear the routing table

R2#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 not set

23.0.0.0/24 is subnetted, 1 subnets

C 23.0.0.0 is directly connected, Ethernet2/3

12.0.0.0/24 is subnetted, 2 subnets

C 12.0.0.0 is directly connected, Ethernet2/0

C 12.0.1.0 is directly connected, Ethernet2/1

R 14.0.0.0/8 [120/1] via 12.0.1.1, 00:00:02, Ethernet2/1

[120/1] via 12.0.0.1, 00:00:02, Ethernet2/0

You will find that there is no floating route just written on R1 and R2. Only when the rip protocol is down, can you see a static route in the routing table.

6. Close rip

R1 (config) # no router rip

R1#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 not set

23.0.0.0/24 is subnetted, 1 subnets

S 23.0.0.0 [100/0] via 12.0.0.2

[100/0] via 12.0.0.0

12.0.0.0/24 is subnetted, 2 subnets

C 12.0.0.0 is directly connected, Ethernet1/0

C 12.0.1.0 is directly connected, Ethernet1/2

14.0.0.0/24 is subnetted, 1 subnets

C 14.0.0.0 is directly connected, Ethernet1/1

R1#

1)

Knot

Fruit

Check

Syndrome

Screenshots are attached to all the test results.

Ask

Title

And

Points

Analysis

No problems were found in the operation and verification during the test.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report