Ruijie Community

Title: How to configure DHCP in Ruijie Switch? [Print this page]

Author: GTAC-Sophia    Time: 2023-7-14 10:30
Title: How to configure DHCP in Ruijie Switch?
Method one: Configuration on device eweb
Addinga DHCP address pool
The steps for adding a DHCP address pool are as follows:
1) Click Add DHCP.
2) Configure Pool Name, Type, Segment, Default Gateway, and Lease Time.
Pool Name, Type, Address Range, Default Gateway, and Lease Time are required fields.
3) After configuration, click Done. The message "Operation Succeeded" is displayed. The added DHCP address pool is displayed in the DHCP list




Method two: configuration in device CLI




Configuration:
switch acts as DHCP server
1. Enable DHCP service
Ruijie(config)#service dhcp
2. Manually Assign IP address to vlan 1 which is usergateway
Ruijie(config)#interface vlan 1
Ruijie(config-if-VLAN 1)#ip address 192.168.1.254255.255.255.0
Ruijie(config-if-VLAN 1)#exit
3. Create DHCP IP address pool
Ruijie(config)#ip dhcp pool vlan1
Ruijie(dhcp-config)#network 192.168.1.0255.255.255.0 ------>network subnet
Ruijie(dhcp-config)#dns-server 218.85.157.99------>DNS Server
Ruijie(dhcp-config)#default-router 192.168.1.254------>specify user gateway
Ruijie(dhcp-config)#end
Ruijie#wr





Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2