configure iproute add default

configure iproute add default [gateway |ipv6Gateway | ipv6ScopedGateway] {bfd}{metric} {vr vr_name} {multicast |multicast-only |unicast |unicast-only} {vlan vlan_name}

Description

Adds a default gateway to the routing table.

Syntax Description

gateway Specifies a gateway IPv4 address.

ipv6Gateway

Specifies a VLAN gateway IPv6 address.

ipv6ScopedGateway

Specifies a scoped gateway.

bfd Enables Bidirectional Forwarding Detection (BFD) protection for the route.
Note: You must type this keyword before specifying a VLAN.

metric

Specifies a cost metric. If no metric is specified, the default of 1 is used.

vr_name

Specifies the VR or VRF to which the route is added.

Default

If no metric is specified, the default metric of 1 is used. If you do not specify a VR or VRF, the current VR context is used.

Usage Guidelines

Default routes are used when the router has no other dynamic or static route to the requested destination. A default gateway must be located on a configured IPv6 interface. Use the unicast-only or multicast-only options to specify a particular traffic type. If not specified, both unicast and multicast traffic uses the default route.

Example

The following example configures a default route for the switch:

configure iproute add default 2001:db8::1234:5678

History

This command was first available in ExtremeXOS 10.1.

Support for IPv6 was added in ExtremeXOS 11.2.

Platform Availability

This command is available on the platforms listed for the IPv6 unicast routing feature in the ExtremeXOS 32.2 Feature License Requirements document.