-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRouter-Configuration-and-Inter-LAN-Routing.cfg
More file actions
100 lines (80 loc) · 1.86 KB
/
Copy pathRouter-Configuration-and-Inter-LAN-Routing.cfg
File metadata and controls
100 lines (80 loc) · 1.86 KB
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
95
96
97
98
99
100
--Router Congiguration.
Router0
enable
configure terminal
interface g0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
interface g0/1
ip address 10.0.0.1 255.255.255.0
no shutdown
exit
Route to PC1’s network
ip route 192.168.2.0 255.255.255.0 10.0.0.2
Router1
interface g0/0
ip address 10.0.0.2 255.255.255.0
no shutdown
exit
interface g0/1
ip address 20.0.0.1 255.255.255.0
no shutdown
exit
Route to PC0’s network
ip route 192.168.1.0 255.255.255.0 10.0.0.1
Route to PC1’s network
ip route 192.168.2.0 255.255.255.0 20.0.0.2
Router2
interface g0/0
ip address 20.0.0.2 255.255.255.0
no shutdown
exit
interface g0/1
ip address 30.0.0.1 255.255.255.0
no shutdown
exit
Route to PC0’s network
ip route 192.168.1.0 255.255.255.0 20.0.0.1
Route to PC1’s network
ip route 192.168.2.0 255.255.255.0 30.0.0.2
Router3
interface g0/0
ip address 30.0.0.2 255.255.255.0
no shutdown
exit
interface g0/1
ip address 192.168.2.1 255.255.255.0
no shutdown
exit
Route to PC0’s network
ip route 192.168.1.0 255.255.255.0 30.0.0.1
--Static Routing
R0 (toward R1, R2, R3/PC1)
enable
configure terminal
--Static Route to PC1 network
ip route 192.168.2.0 255.255.255.0 10.0.0.2
end
R1 (toward R0, R2, R3/PC1)
enable
configure terminal
--Static Route back to PC0 network
ip route 192.168.1.0 255.255.255.0 10.0.0.1
--Static Route forward to PC1 network via R2
ip route 192.168.2.0 255.255.255.0 20.0.0.2
end
R2 (toward R1, R3/PC1, R0/PC0)
enable
configure terminal
--Static Route back to PC0 network via R1
ip route 192.168.1.0 255.255.255.0 20.0.0.1
--Static Route forward to PC1 network via R3
ip route 192.168.2.0 255.255.255.0 30.0.0.2
end
R3 (toward PC1 and back to PC0)
enable
configure terminal
--Static Route back to PC0 network via R2
ip route 192.168.1.0 255.255.255.0 30.0.0.1
end