Veritas NetBackup™ Appliance Commands Reference Guide
- Overview
- Appendix A. Main > Appliance commands
- Appendix B. Main > Manage > FibreChannel commands
- Appendix C. Main > Manage > HighAvailability commands
- Appendix D. Main > Manage > Libraries commands
- Appendix E. Main > Manage > Libraries > Advanced > ACS commands
- Appendix F. Main > Manage > License commands
- Appendix G. Main > Manage > MountPoints commands
- Appendix H. Main > Manage > NetBackup CLI commands
- Appendix I. Main > Manage > OpenStorage commands
- Appendix J. Main > Manage > Software commands
- Appendix K. Main > Manage > Storage commands
- Appendix L. Main > Manage > Tapes commands
- Appendix M. Main > Manage > Certificates commands
- Appendix N. Main > Monitor commands
- Appendix O. Main > Network commands
- Appendix P. Main > Network > Security commands (IPsec)
- Appendix Q. Main > Reports commands
- Appendix R. Main > Settings commands
- Appendix S. Main > Settings > Alerts commands
- Appendix T. Main > Settings > Notifications view commands
- Appendix U. Main > Settings > Security commands
- Appendix V. Main > Support commands
Name
Main > Network > Gateway — Add or delete routing information.
SYNOPSIS
Gateway Add GatewayIPAddress [TargetNetworkIPAddress] [Netmask] [InterfaceName]
Gateway Delete TargetNetworkIPAddress [Netmask]
Gateway Show IPVersion
DESCRIPTION
Use this command to add or delete a route from the kernel routing table. With this command you can also view the kernel routing table. Refer to Linux route man page for more advanced use cases.
With this command you can define the IPv4 or IPv6 address that you plan to add or delete as well as display the current gateway information. If multiple networks are added to the appliance configuration, you can use the Gateway Add command to add the gateway to all of the destination networks.
Remember that you should not use both IPv4 and IPv6 address in the same command. For example, you cannot use Gateway Add 9ffe::3 255.255.255.0 eth1. You should use Gateway Add 6ffe::3 6ffe:: 64 eth1.
OPTIONS
- Gateway Add GatewayIPAddress [TargetNetworkIPAddress] [Netmask] [InterfaceName]
Add a route to a kernel routing table.
Where the GatewayIPAddress variable is the new IPv4 or IPv6 gateway address. The TargetNetworkIPAddress is the target network IPv4 or IPv6 address. The Netmask variable is the target network netmask, and InterfaceName is the interface name. The
TargetNetworkIPAddress
,Netmask
, andInterfaceName
are optional when you set up the default gateway. After the default gateway has been added, you must use these fields to add any additional gateways.
- Gateway Delete TargetNetworkIPAddress [Netmask]
Delete the route from the kernel routing table.
Where TargetNetworkIPAddress is the target network address. The Netmask variable is the target network netmask.
- Gateway Show [IPVersion]
Display the gateway and the route information. Here, [IPVersion] parameter is an optional parameter. It defines the IP protocols - IPv4 and IPv6. If you do not enter a value for the [IPVersion] parameter, the information is displayed for IPv4.
To know the gateway information for a VLAN interface, enter the VLAN interface ID for the [IPVersion] parameter.
EXAMPLES
Use the following example to set the default gateway.
Gateway Add 10.180.1.1
Use the following example to add a route to the destination network 192.168.2.0.
Gateway Add 191.168.2.1 192.168.2.0 255.255.255.0
Gateway Add 6ffe::3 6ffe:: 64 eth1
Use the following example to delete the default gateway.
Gateway Del default
Use the following example to delete a route to the destination network, 10.180.0.0 or 6ffe:: 64.
Gateway Delete 10.180.0.0
Gateway Delete 6ffe:: 64