Cisco Static Routes

Source: Internet
Author: User

1.1 Static Routing Basic Configuration

1. 1.1 Experimental purposes:

Configure a static route for the router to understand the process of routing the hair.

1.1.2 Experimental Topology:

650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201112/105513326.jpg "/>

1.1.3 Experimental configuration:

R2 the configuration:

Interface Loopback0

IP address 2.2.2.2 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.2 255.255.255.0

IP Route 3.3.3.0 255.255.255.0 26.26.26.6

IP Route 6.6.6.0 255.255.255.0 26.26.26.6

IP Route 36.36.36.0 255.255.255.0 26.26.26.6

R6 the configuration:

Interface Loopback0

IP address 6.6.6.6 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.6 255.255.255.0

Interface SERIAL0/3

IP address 36.36.36.6 255.255.255.0

IP Route 2.2.2.0 255.255.255.0 26.26.26.2

IP Route 3.3.3.0 255.255.255.0 36.36.36.3

R3 the configuration:

Interface Loopback0

IP address 3.3.3.3 255.255.255.0

Interface SERIAL0/3

IP address 36.36.36.3 255.255.255.0

IP Route 2.2.2.0 255.255.255.0 36.36.36.6

IP Route 6.6.6.0 255.255.255.0 36.36.36.6

IP Route 26.26.26.0 255.255.255.0 36.36.36.6

1.1.4 Verification:

View the routing table, and PING loopback interface for each router.

R2

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

2.0.0.0/24 is subnetted, 1 subnets

C 2.2.2.0 is directly connected, Loopback0

3.0.0.0/24 is subnetted, 1 subnets

S 3.3.3.0 [1/0] via 26.26.26.6

36.0.0.0/24 is subnetted, 1 subnets

S 36.36.36.0 [1/0] via 26.26.26.6

6.0.0.0/24 is subnetted, 1 subnets

S 6.6.6.0 [1/0] via 26.26.26.6

26.0.0.0/24 is subnetted, 1 subnets

C 26.26.26.0 is directly connected, SERIAL0/2

r2# : Ping 6.6.6.6

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 28/53/132 ms

R2#ping 3.3.3.3

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 68/92/144 ms

R6

R6#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 are not set

2.0.0.0/24 is subnetted, 1 subnets

S 2.2.2.0 [1/0] via 26.26.26.2

3.0.0.0/24 is subnetted, 1 subnets

S 3.3.3.0 [1/0] via 36.36.36.3

36.0.0.0/24 is subnetted, 1 subnets

C 36.36.36.0 is directly connected, SERIAL0/3

6.0.0.0/24 is subnetted, 1 subnets

C 6.6.6.0 is directly connected, Loopback0

26.0.0.0/24 is subnetted, 1 subnets

C 26.26.26.0 is directly connected, SERIAL0/2

R6#ping 2.2.2.2

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 8/46/92 ms

R6#ping 3.3.3.3

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 32/61/116 ms

R3

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

2.0.0.0/24 is subnetted, 1 subnets

S 2.2.2.0 [1/0] via 36.36.36.0

3.0.0.0/24 is subnetted, 1 subnets

C 3.3.3.0 is directly connected, Loopback0

36.0.0.0/24 is subnetted, 1 subnets

C 36.36.36.0 is directly connected, SERIAL0/3

6.0.0.0/24 is subnetted, 1 subnets

S 6.6.6.0 [1/0] via 36.36.36.6

26.0.0.0/24 is subnetted, 1 subnets

S 26.26.26.0 [1/0] via 36.36.36.0

R3#ping 2.2.2.2

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 28/78/136 ms

R3#ping 6.6.6.6

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 16/57/140 ms

1.2 Static routes (2)

1.2.1 Experiment Objective:

On the basis of the exchange of the whole network, the realization of R2 2.2.2.2 can access the R3 3.3.3.3. But R2 's 26.26.26.2 can not access the R3 3.3.3.3.

1.2.2 Experimental topology:

1.2.3 Experimental configuration:

Configuration of the R2:

Interface Loopback0

IP address 2.2.2.2 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.2 255.255.255.0

IP Route 3.3.3.0 255.255.255.0 26.26.26.6

IP Route 6.6.6.0 255.255.255.0 26.26.26.6

IP Route 36.36.36.0 255.255.255.0 26.26.26.6

R6 the configuration:

Interface Loopback0

IP address 6.6.6.6 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.6 255.255.255.0

Interface SERIAL0/3

IP address 36.36.36.6 255.255.255.0

IP Route 2.2.2.0 255.255.255.0 26.26.26.2

IP Route 3.3.3.0 255.255.255.0 36.36.36.3

R3 the configuration:

Interface Loopback0

IP address 3.3.3.3 255.255.255.0

Interface SERIAL0/3

IP address 36.36.36.3 255.255.255.0

IP Route 2.2.2.0 255.255.255.0 36.36.36.6

IP Route 6.6.6.0 255.255.255.0 36.36.36.6

IP route2 6.26.26.6 255.255.255.255 36.36.36.6

1.2.4 Verification:

R2#ping 3.3.3.3

Type escape sequence to abort.

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

.....

Success rate is 0 percent (0/5)

R2#ping 3.3.3.3 Sou

r2#ping 3.3.3.3 Source 2.2.2.2

Type escape sequence to abort.

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

Packet sent with a source address of 2.2.2.2

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 56/81/124 ms

1.3 Floating static routes

1.3.1 Experiment Objective:

Use floating static routes to implement routing backups.

Observe the transition between the dynamic route eigrp and the static route.

1.3.2 Experimental topology:

1.3.3 Experimental configuration:

Configuration of the R2:

Interface Loopback0

IP address 2.2.2.2 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.2 255.255.255.0

Interface ETHERNET1/1

IP address 62.62.62.2 255.255.255.0

Router EIGRP 90

Network 2.0.0.0

Network 26.0.0.0

No auto-summary

IP route 6.6.6.0 255.255.255.0 62.62.62.6 100

R6 the configuration:

Interface Loopback0

IP address 6.6.6.6 255.255.255.0

Interface SERIAL0/2

IP address 26.26.26.6 255.255.255.0

Interface ETHERNET1/1

IP address 62.62.62.6 255.255.255.0

Router EIGRP 90

Network 6.0.0.0

Network 26.0.0.0

No auto-summary

IP route 2.2.2.0 255.255.255.0 62.62.62.2 100

1.3.4 Experimental Validation:

R6#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 are not set

2.0.0.0/24 is subnetted, 1 subnets

D 2.2.2.0 [90/2297856] via 26.26.26.2, 00:00:20, SERIAL0/2

6.0.0.0/24 is subnetted, 1 subnets

C 6.6.6.0 is directly connected, Loopback0

26.0.0.0/24 is subnetted, 1 subnets

C 26.26.26.0 is directly connected, SERIAL0/2

62.0.0.0/24 is subnetted, 1 subnets

C 62.62.62.0 is directly connected, ETHERNET1/1

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

2.0.0.0/24 is subnetted, 1 subnets

C 2.2.2.0 is directly connected, Loopback0

6.0.0.0/24 is subnetted, 1 subnets

D 6.6.6.0 [90/2297856] via 26.26.26.6, 00:00:32, SERIAL0/2

26.0.0.0/24 is subnetted, 1 subnets

C 26.26.26.0 is directly connected, SERIAL0/2

62.0.0.0/24 is subnetted, 1 subnets

C 62.62.62.0 is directly connected, ETHERNET1/1

R6#traceroute 2.2.2.2

Type escape sequence to abort.

Tracing the route to 2.2.2.2

1 26.26.26.2 msec msec *

when the S0/2 Interface shutdown :

R6#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 are not set

2.0.0.0/24 is subnetted, 1 subnets

S 2.2.2.0 [100/0] via 62.62.62.2

6.0.0.0/24 is subnetted, 1 subnets

C 6.6.6.0 is directly connected, Loopback0

62.0.0.0/24 is subnetted, 1 subnets

C 62.62.62.0 is directly connected, ETHERNET1/1

R6#ping 2.2.2.2

Type escape sequence to abort.

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

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 44/74/164 ms

When the interface S0/2 no shutdown:

routing table again with EIGRP learned routes

R6#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 are not set

2.0.0.0/24 is subnetted, 1 subnets

D 2.2.2.0 [90/2297856] via 26.26.26.2, 00:00:08, SERIAL0/2

6.0.0.0/24 is subnetted, 1 subnets

C 6.6.6.0 is directly connected, Loopback0

26.0.0.0/24 is subnetted, 1 subnets

C 26.26.26.0 is directly connected, SERIAL0/2

62.0.0.0/24 is subnetted, 1 subnets

C 62.62.62.0 is directly connected, ETHERNET1/1

This article is from the "high-tech blog" blog, please be sure to keep this source http://gpj1997.blog.51cto.com/12830710/1940994

Cisco Static Routes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.