1
00:00:09,174 --> 00:00:11,381
- In this video I want to
introduce you to the concept

2
00:00:11,381 --> 00:00:15,376
of connecting your GNS3 simulated network

3
00:00:15,376 --> 00:00:17,821
to an actual live external network

4
00:00:17,821 --> 00:00:19,690
or a live external device.

5
00:00:19,690 --> 00:00:21,156
It' doesn't have to be a network.

6
00:00:21,156 --> 00:00:23,922
Maybe you want to take your GNS3 topology

7
00:00:23,922 --> 00:00:25,759
and you want to practice AAA,

8
00:00:25,759 --> 00:00:27,310
you want to practice radius

9
00:00:27,310 --> 00:00:29,554
but you need a radius server to do that.

10
00:00:29,554 --> 00:00:31,631
Maybe you've actually got another laptop

11
00:00:31,631 --> 00:00:33,993
or a server sitting right on your desk

12
00:00:33,993 --> 00:00:38,025
that actually has a radius
server application running in it

13
00:00:38,025 --> 00:00:39,616
and you want to connect that

14
00:00:39,616 --> 00:00:42,675
to your simulated topology in GNS3.

15
00:00:42,675 --> 00:00:46,419
Or more likely, if you're
like a CCNA or CCNP student,

16
00:00:46,419 --> 00:00:47,497
you probably want to practice

17
00:00:47,497 --> 00:00:48,802
some of those switching commands

18
00:00:48,802 --> 00:00:51,971
that are not available
in the etherswitch module

19
00:00:51,971 --> 00:00:55,797
or in the built in ethernet
switch node within GNS3.

20
00:00:55,797 --> 00:00:58,328
And so you want to once again
connect your virtual topology

21
00:00:58,328 --> 00:01:00,858
to a real, physical switch.

22
00:01:00,858 --> 00:01:02,161
So here I'm gonna start the process

23
00:01:02,161 --> 00:01:04,198
of explaining how that's done.

24
00:01:04,198 --> 00:01:05,992
We're gonna look at it
from the perspective of

25
00:01:05,992 --> 00:01:09,615
connecting my GNS3
topology into a switch port

26
00:01:09,615 --> 00:01:11,449
on a real external switch

27
00:01:11,449 --> 00:01:14,787
and that switch port is
configured as an access port.

28
00:01:14,787 --> 00:01:16,381
So before we actually get into

29
00:01:16,381 --> 00:01:18,619
the actual mechanics of how this works,

30
00:01:18,619 --> 00:01:20,457
let's go ahead and take a look first of at

31
00:01:20,457 --> 00:01:23,727
what I'm actually going to be doing.

32
00:01:23,727 --> 00:01:28,166
So this right here
represents my actual layout.

33
00:01:28,166 --> 00:01:29,612
My topology here.

34
00:01:29,612 --> 00:01:31,279
So this is my laptop

35
00:01:32,619 --> 00:01:35,581
and this right here is
an actual physical switch

36
00:01:35,581 --> 00:01:37,619
I have sitting next to me.

37
00:01:37,619 --> 00:01:39,817
And I've got that physical
switch turned on right now

38
00:01:39,817 --> 00:01:42,261
and I have a real ethernet cable

39
00:01:42,261 --> 00:01:44,862
connecting one of the ports of that switch

40
00:01:44,862 --> 00:01:48,974
into the actual ethernet
NIC card of my laptop.

41
00:01:48,974 --> 00:01:50,317
So that's how I'm doing this.

42
00:01:50,317 --> 00:01:52,526
With GNS3 you actually could even use your

43
00:01:52,526 --> 00:01:54,848
WiFi NIC card and connect it via WiFi.

44
00:01:54,848 --> 00:01:56,167
Now certainly you're not
gonna be able to do that

45
00:01:56,167 --> 00:01:57,827
to connect to a switch,

46
00:01:57,827 --> 00:01:59,743
but if you want to connect
to a physical device

47
00:01:59,743 --> 00:02:01,822
like a switch or a server,

48
00:02:01,822 --> 00:02:05,812
key point is, you take
that physical device,

49
00:02:05,812 --> 00:02:08,083
whatever it is, in this case a switch,

50
00:02:08,083 --> 00:02:11,427
connect it via a real
physical ethernet cable

51
00:02:11,427 --> 00:02:16,198
into the NIC card of whatever
laptop or device it is

52
00:02:16,198 --> 00:02:18,847
where you're actually running GNS3.

53
00:02:18,847 --> 00:02:21,943
Now here within GNS3, I've
got GNS3 up and running

54
00:02:21,943 --> 00:02:24,546
and I've got my virtual topology built.

55
00:02:24,546 --> 00:02:27,762
And here's how we're gonna
connect this all together.

56
00:02:27,762 --> 00:02:31,095
I'm going to use one of the built in nodes

57
00:02:31,095 --> 00:02:33,928
within GNS3 called the Cloud node.

58
00:02:35,642 --> 00:02:36,979
Now let me preface this by saying

59
00:02:36,979 --> 00:02:39,666
I could also select the Host node.

60
00:02:39,666 --> 00:02:41,586
Cloud node, Host node,

61
00:02:41,586 --> 00:02:44,154
they both do the exactly same thing

62
00:02:44,154 --> 00:02:45,693
and in just a moment I'll talk about

63
00:02:45,693 --> 00:02:48,291
why you might want to
use one over the other.

64
00:02:48,291 --> 00:02:50,576
And so once I have the
Cloud node in there,

65
00:02:50,576 --> 00:02:53,227
I'm gonna configure that Cloud node

66
00:02:53,227 --> 00:02:57,028
so that it recognizes that
it should connect externally

67
00:02:57,028 --> 00:02:58,861
to my actual NIC card.

68
00:02:59,944 --> 00:03:01,290
So I'm gonna configure the Cloud node

69
00:03:01,290 --> 00:03:04,984
and also if you were using
the Host node, same thing.

70
00:03:04,984 --> 00:03:06,858
Make it realize it'll be a configuration

71
00:03:06,858 --> 00:03:10,646
that's connecting to your
LAN adapter, your NIC card.

72
00:03:10,646 --> 00:03:12,770
And then after that's done,

73
00:03:12,770 --> 00:03:16,519
using just the regular Add a
Link tool that's within GNS3,

74
00:03:16,519 --> 00:03:17,946
I'm just gonna add a link

75
00:03:17,946 --> 00:03:21,729
between the fast ethernet
port of my router

76
00:03:21,729 --> 00:03:22,979
into the Cloud.

77
00:03:23,891 --> 00:03:25,638
And so by this Cloud node here,

78
00:03:25,638 --> 00:03:27,350
this is gonna be the thing
that's actually gonna

79
00:03:27,350 --> 00:03:29,145
connect my simulated environment

80
00:03:29,145 --> 00:03:32,352
to my real physical
hardware on the outside.

81
00:03:32,352 --> 00:03:34,309
So how do we go ahead and do that?

82
00:03:34,309 --> 00:03:36,871
So like I said, I've already
got the physical piece done.

83
00:03:36,871 --> 00:03:38,580
I've got the switch powered on.

84
00:03:38,580 --> 00:03:40,252
I've got the switch physically cabled

85
00:03:40,252 --> 00:03:43,517
into the ethernet port
on the back of my laptop.

86
00:03:43,517 --> 00:03:45,360
And I've got the switch,
you know, running.

87
00:03:45,360 --> 00:03:48,092
Right now I've changed the
host name to Keith-Switch

88
00:03:48,092 --> 00:03:49,849
just to make it unique.

89
00:03:49,849 --> 00:03:53,357
So at that point I'm gonna go into GNS3

90
00:03:53,357 --> 00:03:54,950
and just to make this super simple

91
00:03:54,950 --> 00:03:56,464
I'm just gonna use a single router.

92
00:03:56,464 --> 00:03:58,299
I don't need to have a real big topology

93
00:03:58,299 --> 00:04:01,433
in order to demonstrate the
fundamental concept here.

94
00:04:01,433 --> 00:04:04,564
And so now I'm gonna click on right here,

95
00:04:04,564 --> 00:04:07,905
this part here which is
the Browse End Devices,

96
00:04:07,905 --> 00:04:10,459
and you'll see I've got Cloud in here.

97
00:04:10,459 --> 00:04:13,394
So just drag and drop
that into your topology.

98
00:04:13,394 --> 00:04:15,467
And now right click on Cloud.

99
00:04:15,467 --> 00:04:18,154
There's no command line
interface for this.

100
00:04:18,154 --> 00:04:21,245
Just like how the ethernet
switch didn't have a command line

101
00:04:21,245 --> 00:04:23,311
and others, the frame relay switch.

102
00:04:23,311 --> 00:04:27,175
So you're just gonna use
the Configure button here.

103
00:04:27,175 --> 00:04:28,175
And now here

104
00:04:29,129 --> 00:04:31,904
under Ethernet you've got various options.

105
00:04:31,904 --> 00:04:33,003
So what this is saying is,

106
00:04:33,003 --> 00:04:36,131
OK, how is the Cloud node gonna connect

107
00:04:36,131 --> 00:04:37,603
to the outside world?

108
00:04:37,603 --> 00:04:39,110
And if you select this drop down box

109
00:04:39,110 --> 00:04:40,744
I could have it connect
to the outside world

110
00:04:40,744 --> 00:04:42,161
via my WiFi card.

111
00:04:43,689 --> 00:04:46,196
In some scenarios it might research online

112
00:04:46,196 --> 00:04:48,556
they recommend configuring
a loop back adapter

113
00:04:48,556 --> 00:04:50,628
and then connecting your Cloud to that.

114
00:04:50,628 --> 00:04:52,218
But in my particular case,

115
00:04:52,218 --> 00:04:54,377
I'm just gonna have my cloud connect

116
00:04:54,377 --> 00:04:56,208
to my Local Area Connection.

117
00:04:56,208 --> 00:04:58,125
This is my LAN adapter.

118
00:04:59,868 --> 00:05:01,868
And then I'll click Add.

119
00:05:03,196 --> 00:05:05,029
And then at that point

120
00:05:05,879 --> 00:05:07,379
I just click Apply

121
00:05:08,644 --> 00:05:09,644
and then OK.

122
00:05:11,413 --> 00:05:13,697
So now my Cloud knows how
it's supposed to connect

123
00:05:13,697 --> 00:05:15,565
external to my laptop.

124
00:05:15,565 --> 00:05:18,454
In other words, what physical NIC card

125
00:05:18,454 --> 00:05:20,239
on my lap top should it be connected to.

126
00:05:20,239 --> 00:05:21,667
So now it's simply a matter of

127
00:05:21,667 --> 00:05:24,228
using the Add a Link tool.

128
00:05:24,228 --> 00:05:28,125
Go to my router, select
his fast ethernet link.

129
00:05:28,125 --> 00:05:29,877
You're gonna have to do this via ethernet.

130
00:05:29,877 --> 00:05:32,443
You can't select a serial
interface or anything.

131
00:05:32,443 --> 00:05:35,816
And connect it to the Local
Area Connection right here

132
00:05:35,816 --> 00:05:38,257
that you see within the Cloud.

133
00:05:38,257 --> 00:05:40,292
Okay, deselect that.

134
00:05:40,292 --> 00:05:42,369
Now at this point,
before I go any further,

135
00:05:42,369 --> 00:05:44,640
I know that this Cloud really represents

136
00:05:44,640 --> 00:05:46,479
a switch that I'm connected to.

137
00:05:46,479 --> 00:05:49,218
So I can actually right click on the Cloud

138
00:05:49,218 --> 00:05:52,750
and click right here where
it says Change Symbol.

139
00:05:52,750 --> 00:05:54,126
Now I'm gonna go ahead and scroll down

140
00:05:54,126 --> 00:05:56,408
and I know that's actually
connected to a multilayer switch.

141
00:05:56,408 --> 00:05:59,424
I've got a 3750 sitting
next to me right here.

142
00:05:59,424 --> 00:06:03,128
So I'll actually change the
icon to be multilayer_switch.

143
00:06:03,128 --> 00:06:04,601
Don't have to do this,

144
00:06:04,601 --> 00:06:05,641
it just makes it so that

145
00:06:05,641 --> 00:06:08,499
when I'm looking at it in the topology,

146
00:06:08,499 --> 00:06:11,601
it looks a little bit better.

147
00:06:11,601 --> 00:06:15,101
So I actually know what
I'm looking at right here.

148
00:06:15,101 --> 00:06:16,369
Now you can't change the name,

149
00:06:16,369 --> 00:06:18,614
it still has to represent as Cloud.

150
00:06:18,614 --> 00:06:20,243
Right now it's saying Cloud 2

151
00:06:20,243 --> 00:06:23,009
because I already created
a Cloud to test this out

152
00:06:23,009 --> 00:06:24,231
before I did the video.

153
00:06:24,231 --> 00:06:25,456
But if this is your first Cloud,

154
00:06:25,456 --> 00:06:28,066
it'll probably say Cloud 1.

155
00:06:28,066 --> 00:06:29,455
Alright, so now I'm done with that.

156
00:06:29,455 --> 00:06:32,955
Go ahead and go in my router and start it.

157
00:06:34,581 --> 00:06:36,252
Now one thing you'll notice,

158
00:06:36,252 --> 00:06:38,654
and the switch might talk about this.

159
00:06:38,654 --> 00:06:40,238
Now my particular case it's not,

160
00:06:40,238 --> 00:06:41,946
but when I did this the first time,

161
00:06:41,946 --> 00:06:43,620
you can see I was getting

162
00:06:43,620 --> 00:06:45,703
duplex mismatch messages.

163
00:06:47,211 --> 00:06:50,344
And that's because by default

164
00:06:50,344 --> 00:06:52,698
the routers interface that's
connecting into the Cloud

165
00:06:52,698 --> 00:06:54,692
is running half-duplex

166
00:06:54,692 --> 00:06:56,886
and the switch was
saying, hey I'm confused.

167
00:06:56,886 --> 00:06:58,069
I'm running full-duplex

168
00:06:58,069 --> 00:07:00,067
the thing I'm connected to is half-duplex

169
00:07:00,067 --> 00:07:01,789
but we can fix that real easily.

170
00:07:01,789 --> 00:07:04,393
So let's just double click in the router

171
00:07:04,393 --> 00:07:07,325
and now we're in that router here.

172
00:07:07,325 --> 00:07:10,570
So we just go into the routers interface.

173
00:07:10,570 --> 00:07:13,174
And whenever you change things at

174
00:07:13,174 --> 00:07:15,458
the physical or the data link layer,

175
00:07:15,458 --> 00:07:19,247
I always recommend that you
shut down the interface first.

176
00:07:19,247 --> 00:07:21,732
You can just have unpredictable
results if you try to change

177
00:07:21,732 --> 00:07:24,175
physical or data link
layered characteristics

178
00:07:24,175 --> 00:07:26,331
of an interface while that interface

179
00:07:26,331 --> 00:07:27,721
is actually up and running.

180
00:07:27,721 --> 00:07:29,806
So I'm gonna shut it down.

181
00:07:29,806 --> 00:07:33,467
And now I'm gonna changed
the duplex to full.

182
00:07:33,467 --> 00:07:35,384
Then I'll do a no shut.

183
00:07:40,919 --> 00:07:41,752
Okay.

184
00:07:43,679 --> 00:07:46,114
And now how do I know
it's actually connected?

185
00:07:46,114 --> 00:07:48,522
Well there's a couple of ways.

186
00:07:48,522 --> 00:07:49,911
One way you can do,

187
00:07:49,911 --> 00:07:52,484
is because my switch is doing CDP

188
00:07:52,484 --> 00:07:54,726
I can just do show cdp neighbor

189
00:07:54,726 --> 00:07:57,736
on my virtual or my emulated router.

190
00:07:57,736 --> 00:07:59,203
And you can see right here,

191
00:07:59,203 --> 00:08:01,980
it's connected to Keith-Switch.

192
00:08:01,980 --> 00:08:03,686
Another way I can tell this,

193
00:08:03,686 --> 00:08:05,480
is on my actual switch.

194
00:08:05,480 --> 00:08:06,752
Now I connected it physically,

195
00:08:06,752 --> 00:08:09,757
let's go back to my drawing right here.

196
00:08:09,757 --> 00:08:13,840
I connected it physically to port 0/2.

197
00:08:16,667 --> 00:08:17,724
That's the port that I'm actually

198
00:08:17,724 --> 00:08:19,229
connected to on the switch.

199
00:08:19,229 --> 00:08:20,328
And on the switch

200
00:08:20,328 --> 00:08:23,548
sh run int fast 0/2

201
00:08:23,548 --> 00:08:26,433
You can see I've just simply
configured it as an access port

202
00:08:26,433 --> 00:08:29,125
and it's defaulting to vlan1.

203
00:08:29,125 --> 00:08:31,891
And then what I also did,

204
00:08:31,891 --> 00:08:35,017
is under my vlan1, under my
switch virtual interface,

205
00:08:35,017 --> 00:08:37,415
I gave an ip address.

206
00:08:37,415 --> 00:08:40,479
And then on my router here.

207
00:08:40,479 --> 00:08:43,484
Nope, still getting a duplex mismatch.

208
00:08:43,484 --> 00:08:45,972
Let's take a look at our interface.

209
00:08:45,972 --> 00:08:49,071
Fast ethernet 0/0.

210
00:08:49,071 --> 00:08:52,400
This might just be an old message.

211
00:08:52,400 --> 00:08:53,233
Let's take a look here,

212
00:08:53,233 --> 00:08:55,400
sh int fast 0/2

213
00:09:01,870 --> 00:09:04,840
and right now this guy is full-duplex.

214
00:09:04,840 --> 00:09:06,347
So we should have parity here.

215
00:09:06,347 --> 00:09:08,497
We should have full-duplex on both sides.

216
00:09:08,497 --> 00:09:10,454
I'm gonna ignore that
message for the moment.

217
00:09:10,454 --> 00:09:13,300
So on the router side you can see,

218
00:09:13,300 --> 00:09:16,426
let's go ahead and configure an ip address

219
00:09:16,426 --> 00:09:17,647
on that router's interface.

220
00:09:17,647 --> 00:09:19,029
This is just gonna give further proof

221
00:09:19,029 --> 00:09:21,714
that I am really connected
to that external device.

222
00:09:21,714 --> 00:09:22,881
Ip add 1.1.1.2

223
00:09:24,247 --> 00:09:26,664
because my switch was 1.1.1.1

224
00:09:28,314 --> 00:09:32,481
I guess I have to go in the
interface first to do that.

225
00:09:34,382 --> 00:09:36,697
OK, so if I'm really connected
to that physical switch,

226
00:09:36,697 --> 00:09:39,030
I should be able to ping it.

227
00:09:41,048 --> 00:09:42,549
And it's gonna ARP.

228
00:09:42,549 --> 00:09:45,677
And then I have a successful ping.

229
00:09:45,677 --> 00:09:47,669
So, that's it.

230
00:09:47,669 --> 00:09:49,940
So to recap everything we did.

231
00:09:49,940 --> 00:09:53,207
Step number 1 was to actually
go to my physical device,

232
00:09:53,207 --> 00:09:56,711
turn it on, configure it
however I wanted to configure it

233
00:09:56,711 --> 00:09:58,869
and then connect a physical ethernet cable

234
00:09:58,869 --> 00:10:01,757
from one of the interfaces
on my physical device

235
00:10:01,757 --> 00:10:05,461
into the ethernet NIC card on my laptop

236
00:10:05,461 --> 00:10:07,547
where I'm running GNS3.

237
00:10:07,547 --> 00:10:10,148
So that completed the
physical configuration.

238
00:10:10,148 --> 00:10:12,838
Step number 2 was I started up GNS3.

239
00:10:12,838 --> 00:10:15,887
I created my topology however I wanted.

240
00:10:15,887 --> 00:10:18,455
And then the key component
to connect these two together

241
00:10:18,455 --> 00:10:21,057
was to use the Cloud node.

242
00:10:21,057 --> 00:10:23,295
And so within the Cloud node

243
00:10:23,295 --> 00:10:27,041
I just right clicked on
it, I selected configure

244
00:10:27,041 --> 00:10:29,318
and under the Ethernet tab right here

245
00:10:29,318 --> 00:10:32,506
I ensured that this drop down box

246
00:10:32,506 --> 00:10:35,351
was selecting my Local Area Connection

247
00:10:35,351 --> 00:10:37,948
which is my LAN adapter.

248
00:10:37,948 --> 00:10:40,365
Now I don't want two of them.

249
00:10:41,808 --> 00:10:45,303
I'm not gonna worry about that for now.

250
00:10:45,303 --> 00:10:47,627
Once I had that selected then
the last piece of the puzzle

251
00:10:47,627 --> 00:10:51,441
was to start up my router
in this particular case.

252
00:10:51,441 --> 00:10:52,274
Add a link.

253
00:10:52,274 --> 00:10:53,768
Actually should do this
before you start the router

254
00:10:53,768 --> 00:10:55,237
while the router was still powered off,

255
00:10:55,237 --> 00:10:57,600
add a link between it and the Cloud.

256
00:10:57,600 --> 00:11:01,428
Optionally you can change
the icon of the Cloud.

257
00:11:01,428 --> 00:11:03,429
And then you start up your router.

258
00:11:03,429 --> 00:11:05,496
Now before I finish, one last
thing I want to talk about.

259
00:11:05,496 --> 00:11:10,181
I mentioned that the Cloud and
the Host are interchangeable.

260
00:11:10,181 --> 00:11:13,691
Let me just drag the Host
in here for just a second.

261
00:11:13,691 --> 00:11:15,691
If I right click on Host

262
00:11:16,624 --> 00:11:19,272
you'll see that it also has the option to

263
00:11:19,272 --> 00:11:21,322
connect to various things here.

264
00:11:21,322 --> 00:11:22,833
It's really no different.

265
00:11:22,833 --> 00:11:25,109
The configuration is exactly the same.

266
00:11:25,109 --> 00:11:28,150
So why would I use one over the other?

267
00:11:28,150 --> 00:11:29,781
Well let's say that here, my actual lab,

268
00:11:29,781 --> 00:11:31,256
right next to me I had,

269
00:11:31,256 --> 00:11:33,574
let's say three physical switches.

270
00:11:33,574 --> 00:11:34,795
I want to test out some things

271
00:11:34,795 --> 00:11:36,959
like multiple spanning tress

272
00:11:36,959 --> 00:11:40,174
and VLAN access lists and
private VLANs and stuff,

273
00:11:40,174 --> 00:11:41,316
and I sort of figure that

274
00:11:41,316 --> 00:11:43,597
I need a minimum of
three physical switches

275
00:11:43,597 --> 00:11:44,942
to do all that stuff.

276
00:11:44,942 --> 00:11:46,370
In that particular case

277
00:11:46,370 --> 00:11:49,371
it would be appropriate for
me to use the Cloud icon,

278
00:11:49,371 --> 00:11:51,615
because my simulated
environment is connecting

279
00:11:51,615 --> 00:11:55,441
to a real world environment
of more than one thing,

280
00:11:55,441 --> 00:11:56,984
multiple devices.

281
00:11:56,984 --> 00:11:58,371
Now on the flip side.

282
00:11:58,371 --> 00:12:01,529
Let's say I really was just gonna

283
00:12:01,529 --> 00:12:03,831
connect to, let's say, a AAA server.

284
00:12:03,831 --> 00:12:05,229
Let's say I had a physical server

285
00:12:05,229 --> 00:12:07,257
sitting on the desk next to me

286
00:12:07,257 --> 00:12:10,699
that was running Windows
2000 or Windows R8

287
00:12:10,699 --> 00:12:11,908
or you know, whatever,

288
00:12:11,908 --> 00:12:14,628
and it had a AAA radius
server inside of it

289
00:12:14,628 --> 00:12:16,095
that I had up and running.

290
00:12:16,095 --> 00:12:18,334
And then I was gonna connect to that.

291
00:12:18,334 --> 00:12:20,169
Well I could still use the Cloud node

292
00:12:20,169 --> 00:12:22,730
but it might be more appropriate
in that particular case

293
00:12:22,730 --> 00:12:25,213
to instead use the Host node.

294
00:12:25,213 --> 00:12:29,047
Because really I am connecting
to a Host, a server.

295
00:12:29,047 --> 00:12:30,593
Really it's completely up to you.

296
00:12:30,593 --> 00:12:33,279
They both do exactly the same thing.

297
00:12:33,279 --> 00:12:34,945
So that concludes this particular video

298
00:12:34,945 --> 00:12:37,795
on how to connect your
GNS3 virtual environment

299
00:12:37,795 --> 00:12:39,545
to a physical device.

