811
Configuring IP Unicast Routing
Configuring IP Addressing
DETAILED STEPS
Use the no ip directed-broadcast interface configuration command to disable translation of directed broadcast to
physical broadcasts. Use the no ip forward-protocol global configuration command to remove a protocol or port.
EXAMPLE
The following example enables forwarding of IP directed broadcasts on Ethernet interface 0. The ip forward-protocol
command using the udp keyword without specifying any port numbers allows forwarding of UDP packets on the default
ports.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface ethernet 0
Switch(config-if)# ip directed-broadcast
Switch(config-if)# exit
Switch(config)# ip forward-protocol udp
Switch(config)# end
Command Purpose
1. configure terminal Enter global configuration mode.
2. interface interface-id Enter interface configuration mode, and specify the
interface to configure.
3. no shutdown Enable the interface if necessary. By default, UNIs and ENIs
are disabled and NNIs are enabled.
4. ip directed-broadcast
[access-list-number]
Enable directed broadcast-to-physical broadcast
translation on the interface. You can include an access list to
control which broadcasts are forwarded. When an access
list is specified, only IP packets permitted by the access list
are eligible to be translated.
5. exit Return to global configuration mode.
6. ip forward-protocol {udp [port] | nd |
sdns}
Specify which protocols and ports the router forwards when
forwarding broadcast packets.
udp—Forward UPD datagrams.
port: (Optional) Destination port that controls which
UDP services are forwarded.
nd—Forward ND datagrams.
sdns—Forward SDNS datagrams.
7. end Return to privileged EXEC mode.
8. show ip interface [interface-id]
or
show running-config
Verify the configuration on the interface or all interfaces.
9. copy running-config startup-config (Optional) Save your entries in the configuration file.