Chapter 25 Addresses

25.2.1.1 Address Object Command Examples

The following example creates three address objects and then deletes one.

Router# configure terminal

 

 

Router(config)#

address-object A0 10.1.1.1

 

Router(config)#

address-object A1

10.1.1.1-10.1.1.20

Router(config)#

address-object A2

10.1.1.0/24

 

Router(config)#

show address-object

Address

Object name

Type

Note

Ref.

 

 

===========================================================================

====

INTERFACE SUBNET

192.168.1.0/24

LAN_SUBNET

vlan0

0

10.1.1.1

A0

HOST

A1

0

10.1.1.1-10.1.1.20

RANGE

A2

0

10.1.1.0/24

SUBNET

Router(config)#

0

 

no address-object A2

 

Router(config)#

show address-object

Address

Object name

Type

Note

Ref.

 

===========================================================================

====

LAN_SUBNET

INTERFACE SUBNET

192.168.1.0/24

vlan0

0

10.1.1.1

A0

HOST

A1

0

10.1.1.1-10.1.1.20

RANGE

Router(config)#

0

 

 

 

25.2.2 Address Group Commands

This table lists the commands for address groups.

Table 104 object-group Commands: Address Groups

COMMAND

DESCRIPTION

show object-group address [group_name]

Displays information about the specified address

 

group or about all address groups.

[no] object-group address group_name

Creates the specified address group if necessary

 

and enters sub-command mode. The no command

 

deletes the specified address group.

[no] address-object object_name

Adds the specified address to the specified

 

address group. The no command removes the

 

specified address from the specified group.

[no] object-group group_name

Adds the specified address group (second

 

group_name) to the specified address group (first

 

group_name). The no command removes the

 

specified address group from the specified address

 

group.

 

 

 

179

NXC CLI Reference Guide