5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
727
This command takes precedence over an ip helper-address command given in global configuration mode.
With the following configuration, the relay agent relays DHCP packets received on any interface other
than 0/2 and 0/17 to 192.168.40.1, relays DHCP and DNS packets received on 0/2 to 192.168.40.2,
relays SNMP traps (port 162) received on interface 0/17 to 192.168.23.1, and drops DHCP packets
received on 0/17.
(Routing)#config
(Routing)(Config)#ip helper-address 192.168.40.1 dhcp
(Routing)(Config)#interface 0/2
(Routing)(Interface 0/2)#ip helper-address 192.168.40.2 dhcp
(Routing)(Interface 0/2)#ip helper-address 192.168.40.2 domain
(Routing)(Interface 0/2)#exit
(Routing)(Config)#interface 0/17
(Routing)(Interface 0/17)#ip helper-address 192.168.23.1 162
(Routing)(Interface 0/17)#ip helper-address discard dhcp
7-115 ip helper enable
Enable relay of UDP packets. This command can be used to temporarily disable IP helper without
deleting all IP helper addresses. This command replaces the
bootpdhcprelay enable
command, and
affects not only relay of DHCP packets, but also relay of any other protocols for which an IP helper
address has been configured.
No
command disables relay of all UDP packets.
ip helper enable
no ip helper enable
Parameters
None
Default
The default is Disabled.
Command Mode
•
Global Config
•
Virtual Router Config
Example
The following shows an example of the command.
(Routing)(Config)#ip helper enable
7-116 show ip helper-address
Содержание 5000 Series
Страница 1: ...Draft 1 2 1 ...
Страница 141: ...5000 Series Layer 2 3 Managed Data Center Switch CLI Reference Guide 135 ...