WEBVTT

1
00:00.000 --> 00:03.200
In this section, we are going to create the tags.

2
00:03.200 --> 00:06.200
Let's do a quick reminder about how these could be useful.

3
00:06.200 --> 00:10.640
Think about going into a library and wanting to get a book regarding

4
00:10.640 --> 00:13.600
self-help or science fiction or anything else for that matter.

5
00:13.600 --> 00:16.840
You go to that section of the library and in that section,

6
00:16.840 --> 00:17.920
there's going to be all those books.

7
00:17.920 --> 00:20.000
Well, very similar in the world of NSX,

8
00:20.000 --> 00:21.400
if we have various tags,

9
00:21.400 --> 00:23.200
thinking of them like categories or groups,

10
00:23.200 --> 00:25.480
that we've assigned to individual VMs,

11
00:25.480 --> 00:27.760
we can then, based on those tags,

12
00:27.760 --> 00:30.560
logically create groupings of those VMs.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

12
00:27.760 --> 00:30.560
logically create groupings of those VMs.

13
00:30.560 --> 00:31.960
And then with those groups in place,

14
00:31.960 --> 00:33.960
we can set up our security policy rules

15
00:33.960 --> 00:35.880
as part of our distributed firewall.

16
00:35.880 --> 00:38.040
So as far as which VMs are going to go to tags,

17
00:38.040 --> 00:39.120
let's go ahead and color code those.

18
00:39.120 --> 00:41.640
So for the web tag, we're going to create that tag

19
00:41.640 --> 00:43.440
and associate it with this web VM.

20
00:43.440 --> 00:44.760
So I'll put a blue there.

21
00:44.760 --> 00:46.680
Then for the tag called db-tag,

22
00:46.680 --> 00:49.920
let's associate that with the VM-db server right here.

23
00:49.920 --> 00:51.880
So I'll put a little color representing that tag.

24
00:51.880 --> 00:53.200
And then for the even tag,

25
00:53.200 --> 00:56.240
we'll assign that tag to any of our VMs that are even,

26
00:56.240 --> 00:59.840
that'd be even a and even b.

27
00:59.840 --> 01:03.040
And then for the odd tag, we'll go ahead and use green there.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

27
00:59.840 --> 01:03.040
And then for the odd tag, we'll go ahead and use green there.

28
01:03.040 --> 01:05.360
We'll associate that one with VM-odd a

29
01:05.360 --> 01:07.480
and VM-odd b.

30
01:07.480 --> 01:09.280
And then for our tag called client tag,

31
01:09.280 --> 01:11.080
we'll associate that with all of our clients,

32
01:11.080 --> 01:13.960
our odd and even clients, just like that.

33
01:13.960 --> 01:15.400
So again, the benefit of using tags,

34
01:15.400 --> 01:17.320
think of it as a way to identify

35
01:17.320 --> 01:21.040
and put into a group various VMs based on a tag.

36
01:21.040 --> 01:22.160
So with that plan in mind,

37
01:22.160 --> 01:23.840
let's go to the NSX manager,

38
01:23.840 --> 01:24.960
we'll create these tags.

39
01:24.960 --> 01:27.280
And as we create them, we'll also associate them

40
01:27.280 --> 01:28.720
with the respective VMs.

41
01:28.720 --> 01:30.360
So here in the NSX manager,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

41
01:28.720 --> 01:30.360
So here in the NSX manager,

42
01:30.360 --> 01:32.760
to create and associate the tags with VMs,

43
01:32.760 --> 01:34.400
we're gonna go to inventory.

44
01:34.400 --> 01:36.480
And with inventory selected up here on the top,

45
01:36.480 --> 01:39.400
on the left, we're gonna go down to tags and select tags.

46
01:39.400 --> 01:43.400
So there's already one default tag called edge_nsgroup.

47
01:43.400 --> 01:45.040
And over here in the assigned to column,

48
01:45.040 --> 01:47.240
if we click on this hyperlink of two,

49
01:47.240 --> 01:48.560
it's gonna show us the two VMs

50
01:48.560 --> 01:51.120
that are currently associated with that tag,

51
01:51.120 --> 01:52.760
edge one and edge two.

52
01:52.760 --> 01:54.440
So that's done for us by default.

53
01:54.440 --> 01:57.160
So what we're gonna do is we are gonna create our five new tags.

54
01:57.160 --> 01:59.040
So we'll click here on ab tag,

55
01:59.040 --> 02:00.840
and let's create our web tag first,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

55
01:59.040 --> 02:00.840
and let's create our web tag first,

56
02:00.840 --> 02:02.160
and we'll call it web-tag.

57
02:02.160 --> 02:04.680
So if we had 20 or 30 web server VMs,

58
02:04.680 --> 02:06.600
we could associate this tag with all of them,

59
02:06.600 --> 02:08.960
and logically, we could later than use this tag

60
02:08.960 --> 02:11.400
as an identifier for all those VMs

61
02:11.400 --> 02:13.960
that are associated with this tag to be in a security group.

62
02:13.960 --> 02:15.920
And in our case, we just have one web server

63
02:15.920 --> 02:17.160
that's gonna be receiving that tag.

64
02:17.160 --> 02:19.440
So the tag is called web-tag.

65
02:19.440 --> 02:21.600
And then over here, where it says assigned to,

66
02:21.600 --> 02:23.960
I'm gonna click on where it says select virtual machines.

67
02:23.960 --> 02:27.400
And so for this tag, we wanna associate it with our VM server,

68
02:27.400 --> 02:28.240
which is right here.

69
02:28.240 --> 02:29.880
So let's select just that one server,

70
02:29.880 --> 02:31.320
and then click on apply.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

70
02:29.880 --> 02:31.320
and then click on apply.

71
02:31.320 --> 02:32.760
And then we'll click on save.

72
02:32.760 --> 02:33.880
And with another refresh,

73
02:33.880 --> 02:35.960
it's now showing under the assigned to column.

74
02:35.960 --> 02:37.880
We have a one there, so if we clicked on that,

75
02:37.880 --> 02:42.040
it would show us which VM or VMs are associated with that tag.

76
02:42.040 --> 02:43.120
All right, that looks great.

77
02:43.120 --> 02:46.640
Let's continue on, and let's create our database tag.

78
02:46.640 --> 02:48.680
So we'll go ahead and click right here on add tag.

79
02:48.680 --> 02:50.360
We'll call this DB-tag,

80
02:50.360 --> 02:51.960
and over here in the assigned to column,

81
02:51.960 --> 02:54.120
we'll click here on select virtual machines.

82
02:54.120 --> 02:56.800
And then we wanna assign this to the VM-DB,

83
02:56.800 --> 03:00.000
that one server, and so we'll select it and click on apply.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

84
03:00.000 --> 03:02.520
And again, if we had lots of different database servers,

85
03:02.520 --> 03:05.840
we could associate this DB tag with all of them,

86
03:05.840 --> 03:07.000
simply by selecting them.

87
03:07.000 --> 03:09.000
So we'll go ahead and click on save,

88
03:09.000 --> 03:09.960
and that looks great.

89
03:09.960 --> 03:12.360
So we have our DB tag, we have our web tag.

90
03:12.360 --> 03:14.080
Our next tag is our even tag.

91
03:14.080 --> 03:16.160
So we'll click on add for add tag,

92
03:16.160 --> 03:17.920
and we'll call this even tag.

93
03:17.920 --> 03:19.160
And then regarding assigned to,

94
03:19.160 --> 03:21.360
we'll click on select virtual machines,

95
03:21.360 --> 03:23.640
and we'll go ahead and grab all of our even machines,

96
03:23.640 --> 03:26.000
which are even A and even B.

97
03:26.000 --> 03:28.400
And with those two selected, we'll click on apply,

98
03:28.400 --> 03:30.800
and click on save, and that looks good.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

98
03:28.400 --> 03:30.800
and click on save, and that looks good.

99
03:30.800 --> 03:32.120
So we'll click on add tag,

100
03:32.120 --> 03:34.280
and we'll make a tag called odd tag.

101
03:34.280 --> 03:35.360
And for that odd tag,

102
03:35.360 --> 03:37.120
we'll click on select virtual machines,

103
03:37.120 --> 03:39.320
and we'll choose both of our odd VMs.

104
03:39.320 --> 03:41.200
So VM-odd A and VM-odd B,

105
03:41.200 --> 03:42.240
we'll select both of those,

106
03:42.240 --> 03:44.720
and click on apply, and click on save.

107
03:44.720 --> 03:46.440
So I don't see that in the list,

108
03:46.440 --> 03:48.280
so we'll go ahead and click on refresh,

109
03:48.280 --> 03:50.760
and there it is right there, fantastic.

110
03:50.760 --> 03:53.440
And so our last tag is the client tag.

111
03:53.440 --> 03:54.960
So we'll click on add tag,

112
03:54.960 --> 03:57.320
type in client tag as the name,

113
03:57.320 --> 03:59.440
and then we'll click on select virtual machines,

114
03:59.440 --> 04:01.960
and for this one, we'll put all of our client VMs,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

114
03:59.440 --> 04:01.960
and for this one, we'll put all of our client VMs,

115
04:01.960 --> 04:04.480
and that would include A and B,

116
04:04.480 --> 04:07.440
and A and B for odd and evens,

117
04:07.440 --> 04:09.240
so those four, right here it shows four

118
04:09.240 --> 04:12.040
as four currently selected, and we'll click on apply.

119
04:12.040 --> 04:13.440
And then we'll click on save,

120
04:13.440 --> 04:15.760
and then right here, where it says assigned to zero,

121
04:15.760 --> 04:17.800
we'll give it a moment, click on refresh,

122
04:17.800 --> 04:19.520
and that should change to a four,

123
04:19.520 --> 04:22.600
and again, to see which VMs are associated with that tag,

124
04:22.600 --> 04:24.000
we can click on that number,

125
04:24.000 --> 04:26.560
and that will show us those four VMs right there.
