Object grouping: This config look right?

Answered Question
Mar 1st, 2007

Alright...powering through ASA 101. I just want to confirm THIS will work.

I need to create a object-group with some IP's so I can make my ACL list more readable.

Here it is:

conf t

object-group network VENDOR

descriptiong Vendor IP Address range

network object host 192.16.5.1

network object host 192.16.5.2

and so forth. I have 7 IP addresses to add.

At the end, when I put all the IP address in,

write terminal?

Thanks.

I have this problem too.
0 votes
Correct Answer by joe-martin about 9 years 7 months ago

the "host" keyword tells it that you are defining a specific host rather than a subnet.

So you could essentially configure it as:

network-object 104.50.255.5 255.255.255.255

or the shorter/better way:

network-object host 104.50.255.5

HTH,

Joe Martin

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
Jon Marshall Thu, 03/01/2007 - 13:28

Hi

Yes it looks fine. You can use it as such

access-list acl_in permit tcp object-group VENDOR host 172.16.5.1 eq 23

HTH

Jon

thecoffeeguy Thu, 03/01/2007 - 13:52

Thanks Jon.

Just wanted to be sure, so i didn't blow something up on the ASA. :)

This may sound silly, but once I make the changes, to they automatically get written to RAM?

Would I need to do a "write" to get into NVRAM?

Lastly, even though I am creating this object now, it is not going to be applied just yet. Is that ok? Will it not go into effect until I put it into a ACL?

Thanks.

joe-martin Thu, 03/01/2007 - 15:28

two quick things...

yes, you need to write mem to save the object-group into the config and...

no, it will not affect the ACL...assuming that you have actuallt created a new, unused object-group... i only say that because I have seen people think they were creating a new object group bu they were actually changing an existing object group...

Just check a head of time that the object group name that you want to use is not already being used...

thecoffeeguy Thu, 03/01/2007 - 15:35

Got it.

'write mem' best way to save?

For the object-group, I made sure the name was not being used previously. All set and GTG there.

Thanks!

thecoffeeguy Thu, 03/01/2007 - 16:18

One other thing I forgot to mention.

When looking at the config, after I entered the objects, I am wondering if I forgot to put the netmask.

I see:

network-object host 104.50.25.5

Should it be:

network-object host 104.50.25.5 255.255.255.255

to match that IP explicitly?

I would think so.

What is the best way to correct this? Thanks.

Jas

Correct Answer
joe-martin Thu, 03/01/2007 - 17:20

the "host" keyword tells it that you are defining a specific host rather than a subnet.

So you could essentially configure it as:

network-object 104.50.255.5 255.255.255.255

or the shorter/better way:

network-object host 104.50.255.5

HTH,

Joe Martin

Actions

This Discussion