-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTesting.txt
185 lines (144 loc) · 5.71 KB
/
Testing.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
-------------------
dual switch loop testing:
config node L2SW1 interface eth0/2 l2mode access
config node L2SW1 interface eth0/5 l2mode trunk
config node L2SW1 interface eth0/6 l2mode access
config node L2SW1 interface eth0/7 l2mode access
config node L2SW2 interface eth0/9 l2mode access
config node L2SW2 interface eth0/10 l2mode access
config node L2SW2 interface eth0/12 l2mode access
config node L2SW2 interface eth0/7 l2mode trunk
run node H1 resolve-arp 10.1.1.6
root@juniper> $ run node H1 resolve-arp 10.1.1.6
Parse Success.
L2 Frame Accepted on interface: eth0/2 of node: L2SW1
root@juniper> $ L2 Frame Accepted on interface: eth0/7 of node: L2SW2
L2 Frame Accepted on interface: eth0/3 of node: H2
ARP Broadcast req recieved on interface: eth0/3 of node : H2
H2: ARP Broadcast req msg dropped, destination IP: 10.1.1.6 didnt match with interface IP: 10.1.1.2
L2 Frame Accepted on interface: eth0/11 of node: H6
ARP Broadcast req recieved on interface: eth0/11 of node : H6
L2 Frame Accepted on interface: eth0/8 of node: H5
ARP Broadcast req recieved on interface: eth0/8 of node : H5
H5: ARP Broadcast req msg dropped, destination IP: 10.1.1.6 didnt match with interface IP: 10.1.1.5
L2 Frame Accepted on interface: eth0/10 of node: L2SW2
L2 Frame Accepted on interface: eth0/5 of node: L2SW1
L2 Frame Accepted on interface: eth0/1 of node: H1
ARP reply recieved on interface: eth0/1 of node: H1
root@juniper> $
-------------------
root@juniper> $ show node H1 arp
Parse Success.
IP: 10.1.1.6, SRC MAC: 43:214:172:28:0:0, OIF: eth0/1
root@juniper> $ show node L2SW1 mac
Parse Success.
Interface: eth0/5, MAC 43:214:172:28:0:0
Interface: eth0/2, MAC 128:79:78:79:0:0
root@juniper> $ show node L2SW2 mac
Parse Success.
Interface: eth0/10, MAC 43:214:172:28:0:0
Interface: eth0/7, MAC 128:79:78:79:0:0
*************
linear L3 router topology
root@juniper> $ config node R1 route 122.1.1.3 32 10.1.1.2 eth0/1
Parse Success.
root@juniper> $ show node R1 rt
Parse Success.
Routing table
Dest IP: | Mask | is_Direct | IP | Interface
122.1.1.3 32 1 10.1.1.2 eth0/1
10.1.1.0 24 1
122.1.1.1 32 1
root@juniper> $
root@juniper> $ config node R2 route 122.1.1.3 32 11.1.1.1 eth0/3
Parse Success.
root@juniper> $ show node R2 rt
Parse Success.
Routing table
Dest IP: | Mask | is_Direct | IP | Interface
122.1.1.3 32 1 11.1.1.1 eth0/3
11.1.1.0 24 1
10.1.1.0 24 1
122.1.1.2 32 1
root@juniper> $
-------------------
Topology for ARP Assumption
config node R1 route 122.1.1.3 32 10.1.1.2 eth0/1
config node R2 route 122.1.1.3 32 11.1.1.1 eth0/3
run node R1 resolve-arp 10.1.1.2
run node R2 resolve-arp 11.1.1.1
1. Check forward route condition.
run node R1 ping 122.1.1.3
2. Lets see if router R1 can do a self ping.
run node R1 ping 122.1.1.1
3. Check direct route reachablity condition.
run node R1 ping 10.1.1.2
Logs:
root@juniper> $ config node R1 route 122.1.1.3 32 10.1.1.2 eth0/1
config node R2 route 122.1.1.3 32 11.1.1.1 eth0/3
run node R1 resolve-arp 10.1.1.2
run node R2 resolve-arp 11.1.1.1Parse Success.
root@juniper> $ Parse Success.
root@juniper> $ Parse Success.
L2 Frame Accepted on interface: eth0/2 of node: R2
ARP Broadcast req recieved on interface: eth0/2 of node : R2
root@juniper> $ L2 Frame Accepted on interface: eth0/1 of node: R1
ARP reply recieved on interface: eth0/1 of node: R1
Parse Success.
L2 Frame Accepted on interface: eth0/4 of node: R3
ARP Broadcast req recieved on interface: eth0/4 of node : R3
root@juniper> $ L2 Frame Accepted on interface: eth0/3 of node: R2
ARP reply recieved on interface: eth0/3 of node: R2
root@juniper> $
root@juniper> $
root@juniper> $ run node R1 ping 122.1.1.3
Parse Success.
Src node : R1, Ping ip : 122.1.1.3
L2 Frame Accepted on interface: eth0/2 of node: R2
Node: R2, There is a route present for IP: 122.1.1.3
root@juniper> $ L2 Frame Accepted on interface: eth0/4 of node: R3
Node: R3, There is a route present for IP: 122.1.1.3
Its a direct route
Desstination IP: 122.1.1.3
IP hdr protocol: 1
Ping sucess for IP address: 122.1.1.3
root@juniper> $
-------------------
ON DEMAND ARP RESOLUTION - SQUARE BUILD TOPOLOGY
[root@tdnasrv10198 tcpip_stack]# ./exec
run - 'show help' cmd to learn more
root@juniper> $ config node R1 route /
122.1.1.2 32 10.1.1.2 eth0/0
122.1.1.3 32 10.1.1.2 eth0/0
122.1.1.4 32 40.1.1.1 eth0/7
cd
conf node R2 route 122.1.1.3 32 20.1.1.2 eth0/2
run node R1 ping 122.1.1.3Parse Success.
root@juniper> config-node-R1-route $ Parse Success.
root@juniper> config-node-R1-route $ Parse Success.
root@juniper> config-node-R1-route $ Parse Success.
root@juniper> config-node-R1-route $
root@juniper> $ Parse Success.
root@juniper> $
Parse Success.
LAYER5: Src node : R1, Intiate ping, ip : 122.1.1.3
LAYER3: Packet recieved on layer 3 from upper layer
LAYER2: Packet recieved on layer 2
L2 Frame Accepted on interface: eth0/1 of node: R2
ARP Broadcast req recieved on interface: eth0/1 of node : R2
root@juniper> $ L2 Frame Accepted on interface: eth0/0 of node: R1
ARP reply recieved on interface: eth0/0 of node: R1
L2 Frame Accepted on interface: eth0/1 of node: R2
LAYER3: Packet recieved from layer 2
Node: R2, There is a route present for IP: 122.1.1.3
LAYER2: Packet recieved on layer 2
L2 Frame Accepted on interface: eth0/3 of node: R3
ARP Broadcast req recieved on interface: eth0/3 of node : R3
L2 Frame Accepted on interface: eth0/2 of node: R2
ARP reply recieved on interface: eth0/2 of node: R2
L2 Frame Accepted on interface: eth0/3 of node: R3
LAYER3: Packet recieved from layer 2
Node: R3, There is a route present for IP: 122.1.1.3
Ping sucess for IP address: 122.1.1.3
root@juniper> $
root@juniper> $