In this section, we are going to create the tags.
Let's do a quick reminder about how these could be useful.
Think about going into a library and wanting to get a book regarding
self-help or science fiction or anything else for that matter.
You go to that section of the library and in that section,
there's going to be all those books.
Well, very similar in the world of NSX,
if we have various tags,
thinking of them like categories or groups,
that we've assigned to individual VMs,
we can then, based on those tags,
logically create groupings of those VMs. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
logically create groupings of those VMs.
And then with those groups in place,
we can set up our security policy rules
as part of our distributed firewall.
So as far as which VMs are going to go to tags,
let's go ahead and color code those.
So for the web tag, we're going to create that tag
and associate it with this web VM.
So I'll put a blue there.
Then for the tag called db-tag,
let's associate that with the VM-db server right here.
So I'll put a little color representing that tag.
And then for the even tag,
we'll assign that tag to any of our VMs that are even,
that'd be even a and even b.
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
And then for the odd tag, we'll go ahead and use green there.
We'll associate that one with VM-odd a
and VM-odd b.
And then for our tag called client tag,
we'll associate that with all of our clients,
our odd and even clients, just like that.
So again, the benefit of using tags,
think of it as a way to identify
and put into a group various VMs based on a tag.
So with that plan in mind,
let's go to the NSX manager,
we'll create these tags.
And as we create them, we'll also associate them
with the respective VMs.
So here in the NSX manager, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So here in the NSX manager,
to create and associate the tags with VMs,
we're gonna go to inventory.
And with inventory selected up here on the top,
on the left, we're gonna go down to tags and select tags.
So there's already one default tag called edge_nsgroup.
And over here in the assigned to column,
if we click on this hyperlink of two,
it's gonna show us the two VMs
that are currently associated with that tag,
edge one and edge two.
So that's done for us by default.
So what we're gonna do is we are gonna create our five new tags.
So we'll click here on ab tag,
and let's create our web tag first, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
and let's create our web tag first,
and we'll call it web-tag.
So if we had 20 or 30 web server VMs,
we could associate this tag with all of them,
and logically, we could later than use this tag
as an identifier for all those VMs
that are associated with this tag to be in a security group.
And in our case, we just have one web server
that's gonna be receiving that tag.
So the tag is called web-tag.
And then over here, where it says assigned to,
I'm gonna click on where it says select virtual machines.
And so for this tag, we wanna associate it with our VM server,
which is right here.
So let's select just that one server,
and then click on apply. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
and then click on apply.
And then we'll click on save.
And with another refresh,
it's now showing under the assigned to column.
We have a one there, so if we clicked on that,
it would show us which VM or VMs are associated with that tag.
All right, that looks great.
Let's continue on, and let's create our database tag.
So we'll go ahead and click right here on add tag.
We'll call this DB-tag,
and over here in the assigned to column,
we'll click here on select virtual machines.
And then we wanna assign this to the VM-DB,
that one server, and so we'll select it and click on apply. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And again, if we had lots of different database servers,
we could associate this DB tag with all of them,
simply by selecting them.
So we'll go ahead and click on save,
and that looks great.
So we have our DB tag, we have our web tag.
Our next tag is our even tag.
So we'll click on add for add tag,
and we'll call this even tag.
And then regarding assigned to,
we'll click on select virtual machines,
and we'll go ahead and grab all of our even machines,
which are even A and even B.
And with those two selected, we'll click on apply,
and click on save, and that looks good. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
and click on save, and that looks good.
So we'll click on add tag,
and we'll make a tag called odd tag.
And for that odd tag,
we'll click on select virtual machines,
and we'll choose both of our odd VMs.
So VM-odd A and VM-odd B,
we'll select both of those,
and click on apply, and click on save.
So I don't see that in the list,
so we'll go ahead and click on refresh,
and there it is right there, fantastic.
And so our last tag is the client tag.
So we'll click on add tag,
type in client tag as the name,
and then we'll click on select virtual machines,
and for this one, we'll put all of our client VMs, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
and for this one, we'll put all of our client VMs,
and that would include A and B,
and A and B for odd and evens,
so those four, right here it shows four
as four currently selected, and we'll click on apply.
And then we'll click on save,
and then right here, where it says assigned to zero,
we'll give it a moment, click on refresh,
and that should change to a four,
and again, to see which VMs are associated with that tag,
we can click on that number,
and that will show us those four VMs right there.