Veritas Access Appliance Command Reference Guide
- Overview
- Appendix A. Main > Appliance
- Appendix B. Main > Manage > Cluster
- Appendix C. Main > Manage > Software
- Appendix D. Main > Manage > Storage
- Appendix E. Main > Network
- Appendix F. Main > Monitor
- Appendix G. Main > Settings
- Appendix H. Main > Support
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.
OPTIONS
- Gateway Add GatewayIPAddress [TargetNetworkIPAddress] [Netmask] [InterfaceName]
Add a route to a kernel routing table.
- 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 9ffe::49 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