Parameter
Description
dest-udp-port
A destination UDP port number from 0 to 65535.
port-name
The destination UDP port may be optionally specified by its name. Whether a port is specified by its
number or its name has no effect on behavior. The names recognized are as follows:
•
dhcp (port 67)
•
domain (port 53)
•
isakmp (port 500)
•
mobile-ip (port 434)
•
nameserver (port 42)
•
netbios-dgm (port 138)
•
netbios-ns (port 137)
•
ntp (port 123)
•
pim-auto-rp (port 496)
•
rip (port 520)
•
tacacs (port 49)
•
tftp (port 69)
•
time (port 37)
Other ports must be specified by number.
Command example:
The following example relays DHCP packets that are received on interface 1/0/2 to two
DHCP servers, 192.168.10.1 and 192.168.20.1:
(NETGEAR Switch)#config
(NETGEAR Switch)(config)#interface 1/0/2
(NETGEAR Switch)(interface 1/0/2)#ip helper-address 192.168.10.1 dhcp
(NETGEAR Switch)(interface 1/0/2)#ip helper-address 192.168.20.1 dhcp
Command example:
The following example relays DHCP and DNS packets to 192.168.30.1:
(NETGEAR Switch)#config
(NETGEAR Switch)(config)#interface 1/0/2
(NETGEAR Switch)(interface 1/0/2)#ip helper-address 192.168.30.1 dhcp
(NETGEAR Switch)(interface 1/0/2)#ip helper-address 192.168.30.1 dns
Command example:
The following example takes precedence over the ip helper-address command that you
enter in global configuration mode. With the following configuration, the relay agent relays
DHCP packets that are received on any interface other than 1/0/2 and 1/0/17 to
192.168.40.1, relays DHCP and DNS packets that are received on 1/0/2 to 192.168.40.2,
relays SNMP traps (port 162) that are received on interface 1/0/17 to 192.168.23.1, and
drops DHCP packets that are received on 1/0/17:
(NETGEAR Switch)#config
(NETGEAR Switch)(config)#ip helper-address 192.168.40.1 dhcp
M6100 Series Switches
Routing Commands
698