PREFERRED_NETWORK option for NetBackup servers
The PREFERRED_NETWORK option replaces the REQUIRED_INTERFACE and REQUIRED_NETWORK entries.
The PREFERRED_NETWORK option is not needed in an environment if NetBackup is configured with appropriate host names. The operating system must resolve to the correct IP addresses and then route the addresses correctly.
When external constraints prevent the environment from being corrected, PREFERRED_NETWORK entries can be useful in the following situations:
To prevent NetBackup from connecting to specific destination addresses.
To cause NetBackup to connect only to specific destination addresses.
To request a subset of local interfaces for source binding when outbound connections are made.
Table: PREFERRED_NETWORK information
Usage | Description |
|---|---|
Where to use | On NetBackup servers or clients. |
How to use | Use the nbgetconfig and the nbsetconfig commands to view, add, or change the option. For information about these commands, see the NetBackup Commands Reference Guide. The option uses the following syntax: PREFERRED_NETWORK = target[/subnet] directive source[/subnet] |
The target[/subnet] is a host name or range of addresses to be compared to the prospective source or destination addresses being evaluated. The following are examples of how to indicate a target or a subnet:
Note: A host or a network name that cannot resolve causes the target to be ignored. However, any associated source is added to the source binding list. | |
The directive (MATCH, ONLY, or PROHIBITED) determines how the target is compared to the source or the destination address that is under evaluation.
| |
Indicating a source[/subnet] is optional. This is a host name or IP address range that is requested to be used as the local interface for outbound connection to addresses in target. The source applies to the directives ONLY and MATCH, but not to the directive PROHIBITED. Notes:
| |
Equivalent Administration Console property | Double-click on server . |
The following Support document contains more information about using the PREFERRED_NETWORK option:
http://www.veritas.com/docs/HOWTO60779
An example that prevents the host from using IPv4 addresses:
PREFERRED_NETWORK = 0.0.0.0 PROHIBITED
An example that prevents the host from using IPv6 addresses:
PREFERRED_NETWORK = 0::0 PROHIBITED
This example prevents the host from using the address of the production_server:
PREFERRED_NETWORK = production_server PROHIBITED
This example prevents NetBackup from using any address between 12.34.0.0 and 12.34.255.255 as the source or destination for a connection. If it matches a local interface, NetBackup provides an ordered list of the remaining interfaces as the source binding list for the outbound interface when other entries do not specify a source. The operating system may always use the first one in the list instead of using the network routing tables to select the best one.
PREFERRED_NETWORK = 12.34.56.78/16 PROHIBITED
This example instructs the host to use only IPv6 addresses in that subnet range:
PREFERRED_NETWORK = 2001:1234:1efc::/48 ONLY
This example prevents NetBackup from connecting to any destination address outside the range of 12.34.56.0 to 12.34.56.255. The entry does not affect outbound interface selection.
PREFERRED_NETWORK = 12.34.56.78/24 ONLY
This example prevents NetBackup from connecting to any destination address outside the range of 12.34.56.0 to 12.34.56.255. The entry requests that the operating system use 98.76.54.32 as the outbound interface.
PREFERRED_NETWORK = 12.34.56.78/24 ONLY 98.76.54.32
This example instructs the host to use the interface IPs of Host_A for all IPv4 and IPv6 addresses. The entry can appear multiple times in the configuration file.
PREFERRED_NETWORK = 0/0 MATCH Host_A
This example allows connectivity to the host names that resolve to 12.34.0.0 to 12.23.255.255. The entry does not affect outbound interface selection:
PREFERRED_NETWORK = 12.34.0.0/16 MATCH
This example allows connectivity to the host name that resolves to 12.34.56.78, and requests that the operating system use 98.76.54.32 as the outbound interface:
PREFERRED_NETWORK = 12.34.56.78 MATCH 98.76.54.32