You are here: Home > CLI Commands > Just_CLI_Topics > ip default-gateway

ip default-gateway

ip default-gateway

import {cell|cell-cost <cost>|dhcp|dhcp-cost <cost>|pppoe|pppoe-cost <cost>}

mgmt <nexthop>

<nexthop> [<cost>]

Description

This command configures the default gatewayGateway is a network node that allows traffic to flow in and out of the network. for Mobility Master or the managed device.

Syntax

Parameter

Description

import

Use a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address obtained through the cell interface, DHCPDynamic Host Configuration Protocol. A network protocol that enables a server to automatically assign an IP address to an IP-enabled device from a defined range of numbers configured for a given network.  or PPPoEPoint-to-Point Protocol over Ethernet. PPPoE is a method of connecting to the Internet, typically used with DSL services, where the client connects to the DSL modem.. The default gatewayGateway is a network node that allows traffic to flow in and out of the network. is imported into the routing table and removed when the uplink is no longer active.

cell

Use a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address obtained through the cell interface.

cell-cost <cost>

Use the cost for cell interface.

dhcp

Use a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address obtained DHCPDynamic Host Configuration Protocol. A network protocol that enables a server to automatically assign an IP address to an IP-enabled device from a defined range of numbers configured for a given network. .

dhcp-cost <cost>

Use the cost for DHCPDynamic Host Configuration Protocol. A network protocol that enables a server to automatically assign an IP address to an IP-enabled device from a defined range of numbers configured for a given network.  interface.

pppoe

Use a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address obtained through PPPoEPoint-to-Point Protocol over Ethernet. PPPoE is a method of connecting to the Internet, typically used with DSL services, where the client connects to the DSL modem..

pppoe-cost <cost>

Use the cost for PPPoEPoint-to-Point Protocol over Ethernet. PPPoE is a method of connecting to the Internet, typically used with DSL services, where the client connects to the DSL modem. interface

mgmt <nexthop>

Set the default gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address as the management interface IP address.

<nexthop> [<cost>]

IP address of the default gatewayGateway is a network node that allows traffic to flow in and out of the network. and the distance metric of this route.

Usage Guidelines

You can use this command to set the default gatewayGateway is a network node that allows traffic to flow in and out of the network. to the IP address of the interface on the upstream router or switch to which you connect Mobility Master or the managed device. If you define more than one dynamic gatewayGateway is a network node that allows traffic to flow in and out of the network. type, you must also define a cost for the route to each gatewayGateway is a network node that allows traffic to flow in and out of the network.. Mobility Master or the managed device will first attempt to obtain a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address using the option with the lowest cost. If Mobility Master and the managed device are unable to obtain a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address, they will then attempt to obtain a gatewayGateway is a network node that allows traffic to flow in and out of the network. IP address using the option with the next-lowest path cost.

Example

The following command configures the default gatewayGateway is a network node that allows traffic to flow in and out of the network. for the Mobility Master:

(host) [mynode] (config) #ip default-gateway 10.1.1.1

Command History

Release

Modification

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platform

License

Command Mode

All platforms

Base operating system.

Config mode on Mobility Master.

/*]]>*/