Start a conversation

Exinda CLI: Network Object

Overview

 

This article provides information regarding the Exinda CLI command network-object.

You can use the network-object command to create a new network object or modify the properties of an existing network object.

A network-object is a logical definition created and stored in the Exinda library, which can represent any network component.

 


Information

 

NOTE:  The following syntax convention is used:
  • {}: Options are enclosed in braces and are separated by '|'
  • []: Optional keywords are enclosed in brackets
  • <>: User input is required where variables are enclosed in greater-than and less-than symbols

 

The following table describes the commands used for performing common actions related to network-objects:

 

Action Description Command

Parameter Description

To create a new network object [no] network-object <name>

This creates a network object if it does not already exist

To add a subnet to a network object network-object <name> subnet <ip-address> <netmask or mask length>
  • <name> - The name of the network object
  • <ip-address> - The IPv4 or IPv6 address
  • <netmask or mask length> - The IPv4 netmask or mask length. E.g. 255.255.255.0 or /24
To set the location of the network object with respect to the appliance network-object <name> location {internal, external, inherit}
  • location internal - Specify that IP addresses in this network object are on the internal (LAN) side of the appliance
  • location external - Specify that IP addresses in this network object are on the external (WAN) side of the appliance.
  • location inherit - Specify that the location is automatically inherited from parent network objects. For, if all subnets in this network object fall within an existing network object that is has a location of internal, this network object will also be internal.

To include this network object in the subnet report

network-object <name> subnet-report Not Applicable 

To see whether inherit resolved to internal or external

show network-object <name> Not Applicable 

 

Example

 

  • Create a network object called 'localServer' that is an internal host on 192.168.1.1/255.255.255.255, and enable subnet reporting:

    network-object localServer subnet 192.168.1.1 /32
    network-object localServer location internal
    network-object localServer subnet-report

     

  • Create a network object called 'IPv6 Server' that is an external host on 2001:db8::1234:5678/128

    network-object "IPv6 Server" subnet 2001:db8::1234:5678 /128
    network-object "IPv6 Server" location external

 

Find more CLI commands.

Back to Top

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments