When the supported appliance is operating in layer 3 mode, this command configures or removes a default gateway for the specified VRF instance. This command is supported on Network Security virtual appliances in layer 3 mode.
Note
The following Network Security virtual appliances support layer 3 mode: NX 2500V, NX 2501V, NX 2550V, NX 4500V, and NX 6500V.
Syntax
ip default-gateway vrf <netNameSpace> <ipAddress> [portName]
no ip default-gateway vrf <netNameSpace>
Parameters
<netNameSpace>
The network namespace for the VRF instance:
vrfA―Maps to monitoring port pairs pether3 and pether4.vrfB―Maps to monitoring port pairs pether5 and pether6.vrfC―Maps to monitoring port pairs pether7 and pether8.vrfD―Maps to monitoring port pairs pether9 and pether10.
<ipAddress>
The IPv4 address of the next-hop interface.
<portName>
(Optional) The monitoring port name, such as pether3.
By default, egress interfaces are on pether4, pether6, pether8, and pether10. You can use this optional parameter to configure pether3, pether5, pether7, or pether9 to be the egress interface.
no
Removes the current default gateway from the specified VRF instance.
Examples
The following example defines a default gateway for the VRF instance vrfD.
hostname (config) # ip default-gateway vrf vrfD 192.168.227.5 pether9
The following example removes the default gateway for the VRF instance vrfD.
hostname (config) # ip default-gateway vrf
User role
Admin or Operator
Command mode
Config
Supported appliances
This command is supported on the following appliances running the specified releases or later:
Network Security: Release 9.0