--- title: "ip default-gateway vrf" slug: "ip-default-gateway-vrf" tags: ["Reference", "CMS 11.x", "EX 11.x", "HX 10.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-08-04T17:22:58Z published: 2026-08-04T17:22:58Z canonical: "docs.trellix.com/ip-default-gateway-vrf" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # ip default-gateway vrf 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] > 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