User Guide for QUANTUM NETWORKS models including: QN-SW225-24P Network Switch, QN-SW225-24P, Network Switch, Switch

Admin

Network Switch CLI Guide

Feb 2, 2025 — User Guideline. The operational status of DHCP Relay on an interface is active if one of the following conditions exist: DHCP Relay is globally enabled, ...


File Info : application/pdf, 8 Pages, 358.40KB

PDF preview unavailable. Download the PDF instead.

Network Switch CLI Guide
DHCP Relay Commands

Contents
DHCP Relay Commands ....................................................................................................... 3 ip dhcp relay enable (Global)..................................................................................................... 3 ip dhcp relay enable(Interface) ................................................................................................ 4 ip dhcp relay address (Global) .................................................................................................. 5 ip dhcp relay address(Interface) ............................................................................................. 6 show ip dhcp relay ......................................................................................................................... 7
2 | www.qntmnet.com

DHCP Relay Commands
ip dhcp relay enable (Global)

Syntax

ip dhcp relay enable no ip dhcp relay enable

Parameters

N/A.

Default Configuration

DHCP relay feature is disabled.

Command Mode Global configuration mode.

Usage

Use the ip dhcp relay enable Global Configuration mode command to enable the DHCP relay feature on the device. Use the no form of this command to disable the DHCP relay feature.

Example

The following example enables the DHCP relay feature on the device.
switchxxxxxx(config)# ip dhcp relay enable

User Guideline

The TFTP or SCP protocol is used to download/upload a configuration file.

3 | www.qntmnet.com

ip dhcp relay enable(Interface)

Syntax

ip dhcp relay enable no ip dhcp relay enable

Parameters

N/A.

Default Configuration

Disabled.

Command Mode Interface Configuration mode.

Usage

Use the ip dhcp relay enable Interface Configuration mode command to enable the DHCP relay feature on an interface. Use the no form of this command to disable the DHCP relay agent feature on an interface.

Example

The following example enables DHCP Relay on VLAN 21.
switchxxxxxx(config)# interface vlan 21 switchxxxxxx(config-if)#ipdhcprelayenable

User Guideline

The operational status of DHCP Relay on an interface is active if one of the following conditions exist: DHCP Relay is globally enabled, and there is an IP address defined on the interface. Or DHCP Relay is globally enabled, there is no IP address defined on the interface, the interface is a VLAN, and option 82 is enabled.

4 | www.qntmnet.com

ip dhcp relay address (Global)

Syntax

ip dhcp relay address ip-address no ip dhcp relay address [ip-address]

Parameters

ip-address--Specifies the DHCP server IP address. Up to 8 servers can be defined.

Default Configuration

No server is defined.

Command Mode Global Configuration mode.

Usage

Use the ip dhcp relay address Global Configuration mode command to define the DHCP servers available for the DHCP relay. Use the no form of this command to remove the server from the list.

Example

The following example defines the DHCP server on the device. switchxxxxxx(config)# ip dhcp relay address 176.16.1.1

User Guideline

Use the ip dhcp relay address command to define a global DHCP Server IP address. To define a few DHCP Servers, use the command a few times. To remove a DHCP Server, use the no form of the command with the ip-address argument. The no form of the command without the ip-address argument deletes all global defined DHCP servers.

5 | www.qntmnet.com

ip dhcp relay address(Interface)

Syntax

ip dhcp relay address ip-address no ip dhcp relay address [ip-address]

Parameters

ip-address--Specifies the DHCP server's IP address. Up to 8 servers can be defined.

Default Configuration

No server is defined.

Command Mode Interface Configuration mode.

Usage

Use the ip dhcp relay address Interface Configuration (VLAN, Ethernet,Port-channel) command to define the DHCP servers available by the DHCP relay for DHCP clients connected to the interface. Use the no form of this command to remove the server from the list.

Example

The following example defines the DHCP server on the device.
switchxxxxxx(config)# interface vlan 21 switchxxxxxx(config-if)#ipdhcprelayaddress176.16.1.1

User Guideline

Use the ip dhcp relay address command to define a DHCP Server IP address per the interface. To define multiple DHCP Servers, use the command multiple times. To remove a DHCP server, use the no form of the command with the ip-address argument. The no form of the command without the ip-address argument deletes all DHCP servers.

6 | www.qntmnet.com

show ip dhcp relay

Syntax

show ip dhcp relay

Parameters

-

Default Configuration

No file name.

Command Mode User EXEC mode.

Usage

Use the show ip dhcp relay EXEC mode command to display the DHCP relay information.

Example

The following example gives an example of the command output:
switchxxxxxx# show ip dhcp relay
DHCP relay is globally enabled DHCPrelayisenabledonPorts: Inactive: po1-2 DHCP relay is enabled on VLANs: 1, 2, 4, 5 Active:1,2, 4,5Inactive: Global Servers: 1.1.1.1 , 2.2.2.2 VLAN 1: 1.1.1.1, 100.10.1.1 VLAN 2: 3.3.3.3, 4.4.4.4, 5.5.5.5 VLAN 10: 6.6.6.6

User Guideline -

7 | www.qntmnet.com

8 | www.qntmnet.com



References

Microsoft Word 2019