Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
Here’s my local PC
2
if I type ip config I can see my PCs IP address
3
and I can see the default gateway
4
my PC will send traffic to the default gateway
5
for any IP addresses not in the 192.168.56.0 subnet.
6
so as an example, if I ping google.com
7
that traffic is going via my default gateway
8
in the same way, I could telnet to a router.
9
here’s a Cisco router that I’ve got in my lab.
10
And if I type the command sh ip route
11
I can see the routing table of the router.
12
The router has directly connected networks.
13
So C is directly connected networks
14
as an example 192.168.56.0/24 is directly connected on this interface F0/0
15
so if I ping 192.168.56.1 that traffic is going to be sent out F0/0
16
because that network is directly connected to this interface.
17
Packets will traffic to 192.168.58.0 will be forwarded out of interface 0/1
18
notice this route S and * this is a candidate default route
19
in other words this static route is the default route that a router gonna use.
20
If I look at the running configuration of this router
21
and then include only lines that have IP router in them.
22
I can see this command was added to the router
23
so I type IP router 0.0.0.0 0.0.0.0 and then 192.168.56.1
24
This portion is saying that we are adding a default route
25
to the IP routing table of the router
26
with the gateway of last resort being 192.168.56.1
27
so basically this router will forward traffic to 192.168.56.1
28
for any networks not in it's routing table.
29
So once again sh ip route
30
shows me I have the 3 network 192.168.58, 192.68.56 192.168.97 in the routing table
31
but I don’t have as an example a route for google.com.
32
Google’s IP address is 216.58.213.100 that’s not in the routing table
33
but I was able to ping that address because of this entry in the routing table.
34
In other words, the local router forwarded traffic to 192.168.56.1
35
to firstly get to the DNS server 8.8.8.8
36
and secondly, to ping Google.com we can see that by using the traceroute command.
37
So let's trace route to Google.com
38
notice the first hop is 192.168.56.1 the local gateway of last resort
39
traffic is then sent out into the internet to get to google.com
40
so my traffic is being forwarded from router to router
41
until it gets to 216.58.213.100
42
this stars or * indicates that the router is not replying back
43
to the ICMP messages sent to it.
44
So ICMP maybe drop as an example
45
but the point to take note of is based on the IP routing table
46
on this router, the gateway of last resort or the default gateway is 192.168.56.1
47
this static route has been added to the routing table
48
and I could remove that by typing no ip route
49
Selecting the route so now when I type sh ip route
50
notice the static route that was their previously has now been removed
51
so now if try and ping google.com
52
the DNS resolution is failing and we won't be able to ping google.com
53
because we can't resolve the DNS name to IP address of Google.com
54
in this case, it's re-using the cache entry
55
and is sending traffic to 216.58.213.100
56
but notice the pings fail, we had a 0 success rate.
57
If I add this static route back again
58
and type sh ip route static route is back
59
and now when we ping Google.com the ping succeeds.
60
So static routes are still used quite heavily
61
especially on routers at remotes site or small sites.
62
Here’s my router at home.
63
This is the 192.168.56.1 router
64
that’s my Cisco router had as it's default gateway
65
and this router will also have a default gateway connecting it to the Internet.
66
So I'll log in if I look at the broadband connection
67
notice my local router has this IP address
68
and the default gateway is set to the IP address, primary DNS and secondary DNS
69
are set to these values, so my home broadband router
70
or DSL router has its own default gateway.
71
This Cisco router is forwarding traffic to the BTDSL router using this static route
72
and the BT router is forwarding traffic to this default gateway.
73
Every router makes its own decision on where to forward traffic to
74
hence following the hop by hop paradigm.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.