Example of defining a default gateway

Last Updated : Apr 26, 2023 |

The Branch Gateway uses a default gateway to connect to outside networks that are not listed on the Branch Gateway’s routing table. To define a default gateway, use the ip default-gateway command, followed by either the IP address or name (type and number) of the interface you want to define as the default gateway.

The following example shows how to configure the IP address 132.55.4.45 as the default gateway:

ip default-gateway 132.55.4.45

To define a default gateway with IPv6 address 2001:db8:2179::2

Gxxx-001(super)# ipv6 default-gateway 2001:db8:2179::2