Searching...
Filters
SmallMediumLarge
Home Print Show Topic URL Previous Next

Main > Network > Gateway

Velocity Help

Use this command to add or delete routing information.

SYNOPSIS

Gateway Add GatewayIPAddress [TargetNetworkIPAddress] [Netmask] [InterfaceName]
Gateway Delete TargetNetworkIPAddress
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 9ffe::3 6ffe:: 64 eth1.

OPTIONS

Gateway Add GatewayIPAddress [TargetNetworkIPAddress] [Netmask] [InterfaceName]

    Use this command to 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, and InterfaceName 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

    Use this command to delete the route from the kernel routing table.

    Where TargetNetworkIPAddress is the target network address.

Gateway Show [IPVersion]

    Use to 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