Configuring a UDP port forward entry

Configure a UDP port forward entry to add or remove a port forward entry.

Procedure

  1. Enter either Global Configuration mode or VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Configure a UDP port forward entry:

    ip forward-protocol udp portfwd <1–65535> {A.B.C.D}

  3. Confirm your configuration:

    show ip forward-protocol udp portfwd [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

Configure a UDP port forward entry:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#ip forward-protocol udp portfwd 150 192.0.2.10

Variable definitions

Use the data in the following table to use the ip forward-protocol udp portfwd command.

Variable

Value

<1-65535> {A.B.C.D}

Adds a UDP protocol port to the specified port forwarding list.

1-65535 is a UDP protocol port in the range of 1–65535.

A.B.C.D is an IP address in a.b.c.d format.

Use the no operator to remove a protocol port forwarding entry and IP address from the list: no ip forward-protocol udp portfwd <1-65535> <A.B.C.D>.

To configure this option to the default value, use the default operator with this command.

vrf WORD<1-16>

Specifies the name of the VRF.

vrfids WORD<0-512>

Specifies the ID of the VRF.