-
Notifications
You must be signed in to change notification settings - Fork 0
/
class task 6 (static routing).txt
100 lines (71 loc) · 2.33 KB
/
class task 6 (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
95
96
97
98
99
100
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to up
Router(config-if)#
Router#
========================================================
Router 2 (on right group)
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0/0
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state to up
Router(config-if)#
=======================================================
again router0
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0/1
Router(config-if)#ip add 120.160.1.3 255.0.0.0
Router(config-if)#no sh
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
Router(config-if)#
here subnet mask like that because 120 octet so 3 host
=======================================================
again for router1
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0/1
Router(config-if)#ip add 120.160.1.8 255.0.0.0
Router(config-if)#no sh
===============
sh ip int br
===============
now unreachable still
ip route destination_networkID Dest_NID subnetmask port_IP_address
===============================================================
router0
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.2.0 255.255.255.0 120.160.1.8
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#wr (save changes)
Building configuration...
[OK]
Router#
===========================================================
router 1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.1.0 255.255.255.0 120.160.1.3
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]
Router#