DHCP and BootP Relay Commands
Use these commands to configure BootP/DHCP Relay on the switch.
A DHCP relay agent operates at Layer 3 and forwards DHCP requests and replies between clients and servers when they are not on the same physical subnet.
bootpdhcprelay cidoptmode
M4250
M4350
This command enables the circuit ID option mode for BootP/DHCP Relay on the system.
| Default | disabled |
| Format | bootpdhcprelay cidoptmode |
| Mode | Global Config |
no bootpdhcprelay cidoptmode
This command disables the circuit ID option mode for BootP/DHCP Relay on the system.
| Format | no bootpdhcprelay cidoptmode |
| Mode | Global Config |
bootpdhcprelay maxhopcount
M4250
M4350
This command configures the maximum allowable relay agent hops for BootP/DHCP Relay on the system. The hops parameter has a range of 1 to 16.
| Default | 4 |
| Format | bootpdhcprelay maxhopcount hops |
| Mode | Global Config |
no bootpdhcprelay maxhopcount
This command configures the default maximum allowable relay agent hops for BootP/DHCP Relay on the system.
| Format | no bootpdhcprelay maxhopcount |
| Mode | Global Config |
bootpdhcprelay minwaittime
M4250
M4350
This command configures the minimum wait time in seconds for the BootP/DHCP Relay on the switch. When the BootP relay agent receives a BOOTREQUEST message, it can use the seconds-since-client-began-booting field of the request as a factor in deciding whether to relay the request or not. The minwaittime seconds parameter has a range of 0 to 100 seconds.
| Default | 0 |
| Format | bootpdhcprelay minwaittime seconds |
| Mode | Global Config |
no bootpdhcprelay minwaittime
This command resets the minimum wait time to the default for the BootP/DHCP Relay on the switch.
| Format | no bootpdhcprelay minwaittime |
| Mode | Global Config |
bootpdhcprelay server-override
M4250
M4350
This command enables the addition of suboption 5 (link selection) and suboption 11 (server ID override) in option 82 of the DHCP packet that is received from a DHCP client. You can use the command in both Global Config mode and Interface Config mode.
When you enter the command in Global Config mode, the server override is globally enabled, and the feature is then enabled on all routing interfaces. A DHCP packet that is received from a DHCP client has suboption 5 and suboption 11 for option 82 added to the packet.
When this command is issued in Interface Config mode, server-override is enabled for that interface only.
| Default | Disabled globally and on all interfaces |
| Format | bootpdhcprelay server-override |
| Mode |
Global Config Interface Config |
Command example:
(NETGEAR Switch) (Config)# bootpdhcprelay server-override
Command example:
(NETGEAR Switch) (Config)#interface 0/26
(NETGEAR Switch) (Interface 0/26)#bootpdhcprelay server-override
no bootpdhcprelay server-override
This command disables the server-override feature.
| Format | no bootpdhcprelay server-override |
| Mode |
Global Config Interface Config |
bootpdhcprelay source-interface
M4250
M4350
This command sets the source interface for a routing interface, and uses the interface to get the relay agent IP address. You can use this command to specify an interface for which the IP address is passed as a relay agent IP address. In Global Config mode, the source interface is set globally. In Interface Config mode, the source interface is set for the specified interface.
If the source interface is set in Interface Config mode, that value takes precedence over the globally set value.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Default | Disabled globally and on all interfaces |
| Format | bootpdhcprelay source-interface interface {unit/slot/port | vlan vlanid | loopback loopbackid} |
| Mode |
Global Config Interface Config |
Command example:
(NETGEAR Switch) (Config)# bootpdhcprelay source-interface interface vlan 10
Command example:
(NETGEAR Switch) (Config)#interface 0/26
(NETGEAR Switch) (Interface 0/26)#bootpdhcprelay source-interface interface vlan 10
no bootpdhcprelay source-interface
This command disables the source interface feature globally and clears all source interface entries.
| Format | no bootpdhcprelay source-interface |
| Mode |
Global Config Interface Config |
show bootpdhcprelay
M4250
M4350
This command displays all BootP/DHCP relay information, or the BootP/DHCP relay information for a specific interface. To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show bootpdhcprelay [interface unit/slot/port] |
| Modes |
Privileged EXEC User EXEC |
| Term | Definition |
|---|---|
| Maximum Hop Count | The maximum allowable relay agent hops. |
| Minimum Wait Time (Seconds) | The minimum wait time. |
| Admin Mode | Indicates whether the relaying of requests is enabled or disabled. |
| Circuit Id Option Mode | The DHCP circuit Id option, which can be enabled or disabled. |
| Server Override Mode | The DHCP server override mode, which can be enabled or disabled. |
| Source Interface | The DHCP source interface, which can be enabled or disabled. |
Command example:
(NETGEAR Switch)#show bootpdhcprelay
Maximum Hop Count.............................. 4
Minimum Wait Time(Seconds)..................... 0
Admin Mode..................................... Disable
Circuit Id option mode......................... Disable
Server Override Mode........................... Disable
Source Interface............................... Disable