-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07Summary_Static_Routing.txt
94 lines (80 loc) · 3.85 KB
/
07Summary_Static_Routing.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Router Connections
-------------------
Here, for connecting two routers each other we have to use Serial DTE cable. Generally router's do not have Serial DTE cable ports. So, we need to plugin a module for router's to connect Serial DTE cable.
1. Turn off your Router's
2. Select HWIC-2T module from the MODULES sidebar
3. Drag and drop the HWIC-2T module to the router
4. Turn on your router
Branch-1 Router Configuration
-------------------------------
Branch-1 Router>enable
Branch-1 Router#configure terminal
Branch-1 Router(config)#hostname Branch-1
Branch-1 Branch-1(config)#interface f0/0
Branch-1 Branch-1(config-if)#description Admin
Branch-1 Branch-1(config-if)#ip address 172.16.10.2 255.255.255.248
Branch-1 Branch-1(config-if)#no shutdown
Branch-1 Branch-1(config-if)#exit
Branch-1 Branch-1(config)#interface f0/1
Branch-1 Branch-1(config-if)#description Sales
Branch-1 Branch-1(config-if)#ip address 172.16.1.2 255.255.255.0
Branch-1 Branch-1(config-if)#no shutdown
Branch-1 Branch-1(config-if)#exit
Branch-1 Branch-1(config)#interface s0/3/0
Branch-1 Branch-1(config-if)#description Branch-1
Branch-1 Branch-1(config-if)#ip address 12.12.12.1 255.255.255.252
Branch-1 Branch-1(config-if)#no shutdown
Branch-1 Branch-1(config-if)#exit
Brach-2 Router Configuration
-----------------------------
Branch-2 Router>enable
Branch-2 Router#configure terminal
Branch-2 Router(config)#hostname Branch-2
Branch-2 Branch-2(config)#interface g0/0
Branch-2 Branch-2(config-if)#description Marketing
Branch-2 Branch-2(config-if)#ip address 172.16.3.2 255.255.255.192
Branch-2 Branch-2(config-if)#no shutdown
Branch-2 Branch-2(config-if)#exit
Branch-2 Branch-2(config)#interface g0/1
Branch-2 Branch-2(config-if)#description IT
Branch-2 Branch-2(config-if)#ip address 172
Branch-2 Branch-2(config-if)#ip address 172.16.2.2 255.255.255.128
Branch-2 Branch-2(config-if)#no shutdown
Branch-2 Branch-2(config-if)#exit
Branch-2 Branch-2(config)#interface g0/2
Branch-2 Branch-2(config-if)#description HR
Branch-2 Branch-2(config-if)#ip address 172.16.5.2 255.255.255.240
Branch-2 Branch-2(config-if)#no shutdown
Branch-2 Branch-2(config-if)#exit
Branch-2 Branch-2(config)#interface s0/3/1
Branch-2 Branch-2(config-if)#description Branch-2
Branch-2 Branch-2(config-if)#ip address 12.12.12.2 255.255.255.252
Branch-2 Branch-2(config-if)#no shutdown
Branch-2 Branch-2(config-if)#exit
Summary Network Configuration in Branch-1 Router
--------------------------------------------------
Branch-1 Branch-1>enable
Branch-1 Branch-1#configure terminal
Branch-1 Branch-1(config)#ip route 172.16.0.0 255.255.248.0 12.12.12.2
Summary Network Configuration in Branch-2 Router
--------------------------------------------------
Branch-2 Branch-2>enable
Branch-2 Branch-2#configure terminal
Branch-2 Branch-2(config)#ip route 172.16.0.0 255.255.240.0 12.12.12.1
# Summary Network and Subnet-Mask Calculation
==============================================
*** By using the summary static routing we can discover a whole local area network.
Here, Sales Department Network: 172.16.1.0/24
Admin Department Network: 172.16.10.0/29
Sales: 10101100.00010000.00000001.00000000
Admin: 10101100.00010000.00001010.00000000
Summary: 10101100.00010000.00000000.00000000
So, for configuring the summary network we need to change the bits of an octet as zero(0) when the bits will mismatched in two or more networks.
Here, the summary network will be : 172.16.0.0/20
So the Subnet-Mask will be : 255.255.240.0
Note: During the configuration of Summary Static Routing we need to use this Subnet-Mask.
Configuration
---------------
ip route [Summary Network Address] [Subnet-Mask] [Exit-Interface/Next Hop Address]
Example: Branch-2(config)#ip route 172.16.0.0 255.255.240.0 12.12.12.1
Here, 12.12.12.1 is the Next Hop Ip Address