Configuring UDP protocols

About this task

Configure UDP protocols to determine which UDP broadcasts are forwarded.

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 protocol:

    ip forward-protocol udp <1–65535> WORD<1–15>

  3. Confirm your configuration:

    show ip forward-protocol udp interface [vrf WORD<1-16>]|[vrfids WORD<0-512>] portfwd [vrf WORD<1-16>]| [vrfids WORD<0-512>] portfwdlist <1–1000>[vrf WORD<1-16>]|[vrfids WORD<0-512>] vrf WORD<1-16> vrfids WORD<0-512>

Example

Configure a UDP protocol and confirm your configuration.

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#ip forward-protocol udp 53 DNS
Switch:1(config)#show ip forward-protocol udp

================================================================================
                        Udp Protocol Tbl - GlobalRouter
================================================================================
UDP_PORT PROTOCOL_NAME
--------------------------------------------------------------------------------
37       Time Service
49       TACACS Service
53       DNS
69       TFTP
137      NetBIOS NameSrv
138      NetBIOS DataSrv

Variable definitions

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

Variable

Value

<1-65535> WORD<1-15>  

Creates a new UDP protocol.

<1-65535> WORD<1-15> is the UDP protocol name as a string.

Use the no operator to delete a UDP protocol no ip forward-protocol udp <1-65535>.

portfwd

Displays portfwd information.

portfwdlist

Displays port forward list information.

vrf WORD<1-16>

Specifies the name of the VRF.

vrfids WORD<0-512>

Specifies the ID of the VRF.