About Static routing~
[x.x.x.x = Next hop ip]
ip route 0.0.0.0 0.0.0.0 x.x.x.x
ip route 0.0.0.0 0.0.0.0 Ethernet0
ip route 0.0.0.0 0.0.0.0 Ethernet0 x.x.x.x
[Introduction]
There are 3 ways to configure static as above.
A router sets the next hop of a network it does not know to a network it knows.
That is, in order for a path to be set in the routing table,
The router must know the network of the next hop ip x.x.x.x .
If the network of x.x.x.x goes down,
Routing settings for x.x.x.x are removed from the routing table.
[Main subject]
This is a question.
in the picture below
on R1
ip route 0.0.0.0 0.0.0.0 Serial3/0
ip route 172.31.10.0 255.255.255.0 10.10.10.2
ip route 172.31.10.0 255.255.255.0 192.168.20.2 250
on R2
ip route 0.0.0.0 0.0.0.0 10.10.10.1
ip route 0.0.0.0 0.0.0.0 192.168.20.1 250
Configure static routing.
While James was passing by, he fell down on the T1 line [10.10.10.0/30]. :(
(Let's put aside the financial problem that James has to make good for here)
T1 line has a problem,
R1 s3/2 port and R2 s0 port are down.
Can you ping from the 172.31.10.0/24 network, to 192.168.30.1 network?
[Answer is on page 944?.....]
The answer is ..... :(
Apply AD value to static routing
[10.10.10.0/30] If the network goes down,
56K of backup paths are available, but ping doesn't work.
The reason is that even if R1 network[10.10.10.0/30] goes down,
the T1 side static routing is not removed on R1 routing table.
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, Serial3/0
192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, Serial3/3
172.31.0.0/24 is subnetted, 1 subnets
S 172.31.10.0 [1/0] via 10.10.10.2
S* 0.0.0.0/0 is directly connected, Serial3/0
It is true. :o
It has become a situation where the router routes to a network that it does not know.
Why the router thinks like this
ip route 0.0.0.0 0.0.0.0 Serial3/0
Because there is this routing.
The router think to be directly connected to all destinations via Serial3/0.
That is, because router think that I can go to the [172.31.10.0] network via Serial3/0,
S 172.31.10.0 [1/0] via 10.10.10.2
a situation has happen where the routing is not being removed.
The router think that I can go to any destination via Serial3/0.
So even if you set a nonsensical route to R1, it will all be registered in the routing table.
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800ef7b2.shtml
On the Cisco page, because of this problem
ip route 0.0.0.0 0.0.0.0 Interface
This routing configuration is not recommended.
If possible,
ip route 0.0.0.0 0.0.0.0 Interface x.x.x.x
They recommend that you set it up like this and use it,
and, the example shows that the above problem is also solved by using this way.
[Conclusion]
A router routes a network it does not know to a network it knows, except in special cases.
That is, in order for a route to be set in the routing table,
the router must know the network of the next hop ip x.x.x.x.
If the network of x.x.x.x goes down,
the routing settings for x.x.x.x are removed from the routing table.
If two or more routes are configured for the same destination, the priority is
First, longest prefix matching
Second, AD(Administrative Distance)
Third, cost (hop count etc...)
I mainly set up only static routing in the form of numbers.
ip route 0.0.0.0 0.0.0.0 Ethernet0 x.x.x.x
Why would they use this type of routing table?
It was the last theorem of static routing that started with the question of.
In the end, it didn't deviate from the basic concept, and the router stayed true to the basic concept!!
But, James just ran away...
'Network' 카테고리의 다른 글
[cisco asa5505 TEST] (0) | 2021.12.01 |
---|---|
[SNMP_OID 값이 무엇인가?] (0) | 2021.11.26 |
[cisco 의 휴지통. squeeze 명령어] (0) | 2021.11.21 |
[CF 카드와 6509 부팅 이미지에 관한 Test] (0) | 2021.11.20 |
[스태틱 라우팅 좀 더 이해하기] (0) | 2021.11.14 |