Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure DHCP server on Ruijie switch via CLI? Reply

GTAC-Sophia

Level 5

Ruijie Staff

How to configure DHCP server on Ruijie switch via CLI?
7200 0 2022-11-17 12:34:52
Original
Step 1. Enable the DHCP feature on device
Ruijie>en
Ruijie#config ter
Ruijie(config)#service  dhcp      ------> This command is not enabled by default, and the switch must be configured
Step 2. Create the gateway IP address of DHCP clients
Ruijie(config)#interface  vlan 10
Ruijie(config-if-VLAN 10)#ip address 192.168.1.254   255.255.255.0
Ruijie(config-if-VLAN 10 )#exit
Step 3. create the DHCP pool for clients in device
Ruijie(config)#ip dhcp pool vlan10
Ruijie(dhcp-config)#network  192.168.1.0 255.255.255.0   
Ruijie(dhcp-config)#dns-server   218.85.157.99                    ------>Configure the DNS server addresses assigned to clients
Ruijie(dhcp-config)#default-router   192.168.1.254               ------>Configure the gateway address assigned to the clients, which should be consistent with the IP address set on this switch, 192.168.1.254   
Ruijie(dhcp-config)#end  
Ruijie#wr  
RG-S5300-24GT2SFP2XS-P-E

Specification Switch
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd