ipv4-default-gateway

This command designates the default IPv4 gateway for the Ethernet interface.

Syntax

Designates the default IPv4 gateway
ipv4-default-gateway address
Deletes the default IPv4 gateway
no ipv4-default-gateway

Parameters

address
Specifies the IP address of the default IPv4 gateway.

Guidelines

The ipv4-default-gateway command designates the default IPv4 gateway that the interface can reach. If the interface supports both IP families, use the ipv6-default-gateway command to designate the default IPv6 gateway.

Use the no ipv4-default-gateway command to delete the default IPv4 gateway.

This command is meaningful except in the following situations:
  • You use the link-aggregation-mode command to make the interface part of an aggregate interface.
  • You use the ip-config-mode command to identify autoconfiguration with DHCP or SLAAC.